/* ---------- VARIABLES ---------- */
:root {
    --brand: #e2006a;
    --brand-dark: #b70050;
    --text: #232325;
    --text-light: #666;
    --grey: #f2f2f2;
    --radius: 1.2rem;
    --shadow: 0 8px 32px rgba(35,35,37,0.08);
    --transition: 0.3s cubic-bezier(.47,.13,.24,.94);
    --white: #fff;
    --max-width: 1200px;
    --highlight: #e2006a;
}

/* ---------- RESETEO BÁSICO ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html, body {
    padding: 0;
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--grey);
    font-size: 18px;
    line-height: 1.5;
}
body {
    min-height: 100vh;
    transition: background 0.5s;
}
a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover, a:focus {
    color: var(--brand-dark);
}
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 3px 20px rgba(35,35,37,0.04);
    display: block;
}

/* ---------- CONTENEDORES Y SECCIONES ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 1.2rem;
}
section {
    padding: 3.5rem 0;
}

/* ---------- NAVBAR ---------- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(35,35,37,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 1.5rem;
}
.brand img {
    height: 38px;
    width: auto;
    display: block;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    margin: 0;
}
.nav-menu a {
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
    position: relative;
}
.nav-menu a.cta-link {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 16px rgba(226,0,106,.08);
}
.nav-menu a.cta-link:hover {
    background: var(--brand-dark);
}
.nav-menu a:hover:not(.cta-link) {
    background: var(--brand);
    color: #fff;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}
.hamburger {
    width: 24px;
    height: 3px;
    background: var(--brand);
    display: block;
    position: relative;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 3px;
    background: var(--brand);
    transition: var(--transition);
}
.hamburger::before { top: -8px; }
.hamburger::after  { top:  8px; }

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(95deg, #fff 75%, var(--brand) 150%);
    padding: 4.2rem 0 3.2rem 0;
    box-shadow: 0 10px 32px rgba(226,0,106,0.03);
    position: relative;
    text-align: left;
}
.hero-content {
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 1.4rem;
}
.hero .highlight {
    color: var(--highlight);
    font-weight: 900;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.2rem;
}
.hero .btn-primary {
    font-size: 1.15rem;
    padding: 1rem 2.2rem;
}

/* ---------- ABOUT ---------- */
.about {
    display: flex;
    gap: 2.2rem;
    align-items: center;
    justify-content: center;
}
.about-text {
    max-width: 600px;
}
.about h2 {
    font-size: 2rem;
    color: var(--brand);
    margin-bottom: 1rem;
}
.about p {
    color: var(--text-light);
    margin-bottom: 0.9rem;
}

/* ---------- SERVICES GRID ---------- */
.services h2 {
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: 2.2rem;
    font-size: 2.2rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}
.service-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.7rem 1.4rem 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
    box-shadow: 0 6px 32px rgba(226,0,106,0.07);
    transform: translateY(-3px) scale(1.018);
}
.service-card img {
    margin-bottom: 1.1rem;
    width: 100%;
    min-height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 1px 8px rgba(35,35,37,0.07);
}
.service-card h3 {
    margin-bottom: .6rem;
    color: var(--brand);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}
.service-card p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0;
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
    background: linear-gradient(90deg, var(--brand) 70%, #fff 180%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(226,0,106,0.04);
    margin-bottom: 0;
}
.cta-strip h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.6rem;
}
.cta-strip .btn-primary {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    box-shadow: 0 1px 14px rgba(0,0,0,0.07);
}
.cta-strip .btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.1rem;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.07rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 16px rgba(226,0,106,0.11);
    text-decoration: none;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 5px 24px rgba(226,0,106,0.14);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: #232325;
    color: #fff;
    padding: 2.6rem 0 0.9rem 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2rem;
    align-items: flex-start;
}
.footer-col h3 {
    color: var(--brand);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}
.footer-col ul {
    list-style: none;
    margin: 0; padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.6rem;
}
.footer-col ul.social {
    display: flex;
    gap: 1.1rem;
}
.footer-col ul.social a {
    color: #fff;
    font-size: 1.2rem;
}
.footer-col ul.social a:hover {
    color: var(--brand);
}
.footer-col a {
    color: #fff;
    transition: color var(--transition);
}
.footer-col a:hover {
    color: var(--brand);
}
.copyright {
    text-align: center;
    color: #bbb;
    font-size: 1rem;
    margin-top: 1.7rem;
    opacity: .9;
}

/* ---------- WHATSAPP FLOTANTE ---------- */
#whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 30px;
    z-index: 300;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(37,211,102,0.12);
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow .25s;
}
#whatsapp-float img {
    width: 42px;
    height: 42px;
    display: block;
    margin: auto;
}
#whatsapp-float:hover {
    box-shadow: 0 8px 36px rgba(37,211,102,0.21);
    background: #22bb58;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .navbar, .footer-container, .services-grid {
        flex-direction: column;
        gap: 1.2rem;
    }
    .about {
        flex-direction: column;
        text-align: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    html { font-size: 16px; }
    .container { padding-inline: 0.6rem; }
    .hero h1 { font-size: 1.5rem; }
    .cta-strip h2 { font-size: 1.2rem; }
    .services h2, .about h2 { font-size: 1.3rem; }
    section { padding: 2.2rem 0; }
}

/* ---------- MENÚ MÓVIL ---------- */
@media (max-width: 670px) {
    .navbar {
        flex-direction: row;
        gap: 0.6rem;
    }
    .nav-toggle {
        display: block;
        margin-left: auto;
    }
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 3px 24px rgba(35,35,37,0.08);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1.2rem 0;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.33s cubic-bezier(.7,0,.24,1), transform 0.4s cubic-bezier(.7,0,.24,1);
        z-index: 50;
    }
    .nav-menu.open {
        transform: translateY(0%);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem 2.2rem;
        border-radius: 0;
        color: var(--text);
    }
    .nav-menu a.cta-link {
        background: var(--brand);
        color: #fff;
        width: 100%;
    }
}

/* ---------- EFECTO FADE OUT ---------- */
.fade-out {
    opacity: 0 !important;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

/* UNIFORMIDAD DE TARJETAS DE SERVICIOS */
.services-grid {
    align-items: stretch;
}

/* Fuerza todas las tarjetas a igual altura mínima (ajusta el valor si quieres) */
.service-card {
    min-height: 430px;      /* Puedes subir/bajar este valor según tu contenido */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ajusta altura de imágenes y recorta para que se vea igual en todas */
.service-card img {
    width: 100%;
    height: 170px;          /* Altura fija para todas las imágenes */
    object-fit: cover;      /* Recorta la imagen si sobra alto/ancho */
    border-radius: var(--radius);
    margin-bottom: 1.1rem;
    box-shadow: 0 1px 8px rgba(35,35,37,0.07);
}

/* ---- GALERÍA DE TRABAJOS REALIZADOS ---- */
#galeria .services-grid {
    align-items: stretch;
}

#galeria .service-card {
    min-height: 240px;          /* Más bajo que servicios */
    padding: 0.7rem 0.7rem 0.7rem 0.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#galeria .service-card img {
    width: 100%;
    height: 190px;              /* Puedes subir/bajar para ver el corte */
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 0;
    box-shadow: 0 1px 8px rgba(35,35,37,0.07);
    flex: 1 1 auto;
}
