/* =========================================================
   ULTRA WHITE — Implantes Dentales (Buenos Aires)
   Mobile-first, zero-build, vanilla CSS3 + custom properties
   ========================================================= */

/* ----------- 1. DESIGN TOKENS ----------- */
:root {
    --color-bg: #FFFFFF;
    --color-bg-soft: #f8fafc;        /* slate-50  */
    --color-text: #0f172a;           /* slate-950 */
    --color-text-soft: #475569;      /* slate-600 */
    --color-muted: #64748b;          /* slate-500 */
    --color-border: #e2e8f0;         /* slate-200 */
    --color-border-strong: #cbd5e1;  /* slate-300 */
    --color-accent: #16A085;         /* teal */
    --color-accent-strong: #117A65;
    --color-accent-soft: #E8F7F3;
    --color-whatsapp: #25D366;
    --color-whatsapp-strong: #1da851;
    --color-white: #FFFFFF;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --shadow-sm: 0 4px 12px rgba(10, 58, 96, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 50px rgba(10, 58, 96, 0.12);
    --shadow-cta: 0 12px 24px rgba(22, 160, 133, 0.25);

    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4rem;
    --space-7: 6rem;

    --container-max: 1180px;
    --header-h: 68px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 180ms;
    --t-med: 320ms;
}

@media (min-width: 768px) { :root { --header-h: 80px; } }
@media (min-width: 1024px) { :root { --header-h: 88px; } }

/* ----------- 2. RESET ----------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; color: var(--color-text); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; color: var(--color-text-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--color-accent); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--color-accent-strong); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
    background: var(--color-accent); color: #fff; padding: 0.6rem 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm); z-index: 200;
    transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ----------- 3. LAYOUT ----------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.section { padding: var(--space-6) 0; }
@media (min-width: 768px) { .section { padding: var(--space-7) 0; } }
.section-soft { background: var(--color-bg-soft); }

.eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-accent); margin-bottom: 0.75rem;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--space-5); padding: 0 1.25rem; }
.section-icon {
    display: flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 1rem;
    background: var(--color-accent-soft); color: var(--color-accent);
    box-shadow: inset 0 0 0 1px rgba(22, 160, 133, 0.12);
}
.section-icon svg { width: 28px; height: 28px; }

.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
.section-title-light { color: var(--color-white); }
.section-lead { font-size: 1.05rem; color: var(--color-text-soft); margin-bottom: 1rem; }
.text-accent { color: var(--color-accent); }

/* ----------- 4. BUTTONS ----------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.85rem 1.5rem; font-size: 0.95rem; font-weight: 600;
    border-radius: var(--radius-pill);
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
                background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
                border-color var(--t-fast) var(--ease);
    white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--color-accent-strong); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(22, 160, 133, 0.3); }

.btn-whatsapp { background: var(--color-whatsapp); color: #fff; box-shadow: 0 12px 24px rgba(37, 211, 102, 0.28); }
.btn-whatsapp:hover { background: var(--color-whatsapp-strong); color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--color-accent); border: 1.5px solid var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #fff; }

.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { color: var(--color-accent); }

.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.ico-wa { width: 20px; height: 20px; flex: none; }

.center-cta { text-align: center; margin-top: var(--space-5); }

/* ----------- 5. HEADER ----------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(15,23,42,0.04),
                0 8px 24px -6px rgba(15,23,42,0.10);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 46px; width: auto; transition: opacity var(--t-fast) var(--ease); }
.brand-logo:hover { opacity: 0.85; }
@media (min-width: 768px) { .brand-logo { height: 46px; } }
@media (min-width: 1024px) { .brand-logo { height: 54px; } }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 1.75rem; }
.primary-nav a { color: var(--color-text); font-size: 0.95rem; font-weight: 500; position: relative; }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--color-accent); transition: width var(--t-fast) var(--ease); }
.primary-nav a:hover, .primary-nav a.is-active { color: var(--color-accent); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { width: 100%; }

.btn-cta-header { display: none; padding: 0.6rem 1.1rem; font-size: 0.9rem; }

.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0; border-radius: 10px; background: var(--color-bg-soft);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text); margin: 0 auto; border-radius: 2px; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 980px) {
    .primary-nav { display: block; }
    .btn-cta-header { display: inline-flex; }
    .nav-toggle { display: none; }
}

.primary-nav.is-open {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--color-white); box-shadow: 0 12px 24px rgba(10, 58, 96, 0.08);
    border-top: 1px solid var(--color-border); padding: 1rem 1.25rem 1.5rem;
}
.primary-nav.is-open ul { flex-direction: column; gap: 1rem; }

/* ----------- 6. HERO ----------- */
.hero {
    position: relative;
    padding: calc(var(--header-h) + var(--space-5)) 0 var(--space-6);
    background:
        radial-gradient(60% 80% at 85% 10%, rgba(22,160,133,0.08) 0%, rgba(22,160,133,0) 60%),
        linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
    overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); } }

.hero-title { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; margin-bottom: 1rem; }
.hero-subtitle { font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 500; color: var(--color-text); margin-bottom: 0.75rem; }
.hero-text { font-size: 1.02rem; color: var(--color-text-soft); max-width: 540px; margin-bottom: 1.5rem; }

.benefits-list { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-bottom: 1.75rem; }
@media (min-width: 560px) { .benefits-list { grid-template-columns: 1fr 1fr; } }
.benefits-list li {
    position: relative; padding-left: 2rem; font-size: 0.95rem; font-weight: 500; color: var(--color-text);
}
.benefits-list li::before {
    content: ''; position: absolute; left: 0; top: 1px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--color-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A085' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(22,160,133,0.18);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-bottom: var(--space-4); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 1.75rem; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.hero-badges li { font-size: 0.85rem; color: var(--color-muted); }
.hero-badges strong { display: block; font-size: 1.55rem; color: var(--color-text); font-weight: 700; margin-bottom: 0.1rem; letter-spacing: -0.01em; }

.hero-media { position: relative; }
.hero-media picture, .hero-media img { display: block; }
.hero-media img {
    width: 100%; height: auto; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); object-fit: cover;
    aspect-ratio: 1 / 1;
}
.hero-media-badge {
    position: absolute; left: -8px; bottom: 18px;
    background: #fff; border-radius: var(--radius-md); padding: 0.7rem 1rem;
    box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 0.1rem;
    border: 1px solid var(--color-border);
}
.hero-media-badge .stars { color: #F4D03F; font-size: 0.95rem; letter-spacing: 0.08em; line-height: 1; }
.hero-media-badge span:last-child { font-size: 0.78rem; color: var(--color-muted); font-weight: 600; }
@media (min-width: 900px) { .hero-media-badge { left: -28px; } }

/* ----------- 7. SPLIT SECTIONS ----------- */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
    .split-reverse .split-text { order: 2; }
    .split-reverse .split-media { order: 1; }
}

.split-text .section-title { margin-bottom: 1.25rem; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; }
.split-media:not(.split-media-portrait):not(.split-media-render) img { aspect-ratio: 4 / 3; }
.split-media-portrait img { aspect-ratio: 3 / 4; max-width: 420px; margin: 0 auto; }

/* Ilustración del implante (render con fondo negro): cuadrada en mobile y, en
   desktop, alineada exactamente al alto del texto de la sección (posición
   absoluta para que el alto lo defina el párrafo, no la imagen) */
.split-media-render img { aspect-ratio: 1 / 1; object-position: center; background: #0b0b0b; }
@media (min-width: 900px) {
    .split-stretch { align-items: stretch; }
    .split-stretch .split-media-render { position: relative; }
    .split-stretch .split-media-render img {
        position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
    }
}

.check-list { display: grid; gap: 0.5rem; margin: 0 0 1.25rem; }
.check-list li { position: relative; padding-left: 1.75rem; color: var(--color-text-soft); }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 0.5rem; width: 9px; height: 9px;
    border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.credentials { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.credentials li {
    display: flex; align-items: center; gap: 1rem;
    background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; box-shadow: var(--shadow-sm);
}
.cred-logo { height: 42px; width: auto; flex: none; }
.cred-text { display: flex; flex-direction: column; gap: 0.05rem; }
.credentials strong { display: block; color: var(--color-text); font-size: 0.98rem; }
.credentials span { font-size: 0.85rem; color: var(--color-muted); }

/* ----------- 8. CASOS ----------- */
.case-card {
    margin: 0; border-radius: var(--radius-lg); overflow: hidden;
    /* Fondo oscuro: las fotos traen fondo negro, así el letterbox del contain se integra */
    background: #0b0b0b; border: 1px solid #0b0b0b;
    box-shadow: var(--shadow-sm); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
/* contain = se ve la imagen completa; aspect-ratio uniforme = todas alineadas entre sí */
.case-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #0b0b0b; }

/* ----------- 9. FAQ ----------- */
.faq-list { display: grid; gap: 0.85rem; }
.faq-item {
    background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden;
    transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.faq-item[open] { border-color: rgba(22,160,133,0.3); box-shadow: var(--shadow-md); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.25rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.02rem; font-weight: 600; color: var(--color-text); }
.faq-icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after {
    content: ''; position: absolute; top: 50%; left: 50%; background: var(--color-accent);
    border-radius: 2px; transform: translate(-50%, -50%); transition: transform var(--t-fast) var(--ease);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer { padding: 0 1.25rem 1.25rem; }
.faq-answer p { margin: 0; color: var(--color-text-soft); }

/* Preguntas adicionales: en el HTML desde el inicio (Google las lee), ocultas
   con CSS hasta que se pulsa "Ver todas". display:contents = los <details>
   fluyen dentro del grid .faq-list con el mismo gap que las visibles. */
.faq-extra { display: none; }
.faq-extra.is-open { display: contents; }

.faq-more { justify-self: center; margin-top: 0.4rem; }

/* ----------- 10. CARRUSEL (reseñas + casos) ----------- */
.carousel { position: relative; }
.carousel-track {
    display: flex; align-items: flex-start; gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 4px 4px 14px; cursor: grab;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: var(--radius-lg); }
.carousel-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.carousel-track.is-animating { scroll-snap-type: none; scroll-behavior: auto; }
.carousel-track > * { scroll-snap-align: start; }

/* Reseñas: 1 / 2 / 3 por vista */
.carousel--reviews .carousel-track > .review-card { flex: 0 0 100%; }
@media (min-width: 640px)  { .carousel--reviews .carousel-track > .review-card { flex-basis: calc((100% - 1.25rem) / 2); } }
@media (min-width: 1000px) { .carousel--reviews .carousel-track > .review-card { flex-basis: calc((100% - 2.5rem) / 3); } }

/* Casos: carrusel (1 por vista, con peek) en mobile; grid de 3 en desktop */
.carousel--casos .carousel-track > .case-card { flex: 0 0 84%; }
@media (min-width: 640px) { .carousel--casos .carousel-track > .case-card { flex-basis: calc((100% - 2.5rem) / 3); } }

.review-card {
    display: flex; flex-direction: column; gap: 0.85rem;
    background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.5rem;
    transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.review-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.google-badge { display: inline-flex; }
.google-g { display: block; flex: none; }
.review-stars { color: #FBBC05; letter-spacing: 0.06em; font-size: 1rem; }

.review-text {
    margin: 0; color: var(--color-text-soft); min-height: 9.6em;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.review-card.is-expanded .review-text { -webkit-line-clamp: unset; overflow: visible; }

.review-toggle {
    align-self: flex-start; padding: 0;
    color: var(--color-accent); font-weight: 600; font-size: 0.88rem;
}
.review-toggle:hover { color: var(--color-accent-strong); text-decoration: underline; }

.review-author {
    margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--color-border);
    display: flex; flex-direction: column; gap: 0.05rem;
}
.review-name { font-weight: 700; color: var(--color-text); font-size: 0.95rem; }
.review-meta { font-size: 0.8rem; color: var(--color-muted); }

.reviews-foot { margin-top: var(--space-5); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.reviews-google { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--color-muted); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.75rem; }
.carousel-controls[hidden] { display: none; }
.carousel-arrow {
    width: 46px; height: 46px; border-radius: 50%; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-white); color: var(--color-accent);
    border: 1.5px solid var(--color-border); box-shadow: var(--shadow-sm);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
                border-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.carousel-arrow:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.carousel-arrow:disabled:hover { background: var(--color-white); color: var(--color-accent); border-color: var(--color-border); }
.carousel-dots { display: inline-flex; align-items: center; gap: 0.5rem; }
.carousel-dot {
    width: 9px; height: 9px; border-radius: 50%; padding: 0;
    background: var(--color-border-strong);
    transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.carousel-dot.is-active { background: var(--color-accent); transform: scale(1.3); }

/* ----------- 11. CONTACTO ----------- */
.section-contact { padding-top: var(--space-6); padding-bottom: var(--space-6); }

.contact-card {
    /* Apilado y contenido al ancho de la foto: panel de CTA arriba + foto abajo */
    display: grid; grid-template-columns: 1fr;
    max-width: 880px; margin: 0 auto;
    background: linear-gradient(140deg, #0f172a 0%, #16A085 150%);
    border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
}

.contact-info { padding: 2.5rem 1.5rem; color: #fff; text-align: center; }
@media (min-width: 768px) { .contact-info { padding: 3rem 2.5rem; } }
.contact-info p { color: rgba(255, 255, 255, 0.85); max-width: 620px; margin-left: auto; margin-right: auto; }

.contact-info .btn { margin-top: 1.5rem; }

/* Mobile (apilado): foto a lo ancho en su proporción natural, sin recorte */
.contact-media img { display: block; width: 100%; height: auto; }

/* Desktop: dos columnas (texto | foto) a la par. La foto queda contenida en su
   columna con object-fit: cover (caras visibles), sin estirarse a todo el ancho. */
@media (min-width: 900px) {
    .contact-card { grid-template-columns: 1.05fr 0.95fr; max-width: 1040px; }
    .contact-info { padding: 3.5rem 3rem; }
    .contact-info p { max-width: none; }
    .contact-media { position: relative; }
    .contact-media img {
        position: absolute; inset: 0; width: 100%; height: 100%;
        /* el recorte cae a los lados: anclamos al borde derecho (la imagen se corre a la
           izquierda) para que la asistente entre completa; el recorte se va del lado izquierdo */
        object-fit: cover; object-position: right center;
    }
}

/* ----------- 12. FOOTER ----------- */
.site-footer { background: var(--color-text); color: rgba(255, 255, 255, 0.7); padding: var(--space-6) 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: var(--space-4); }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-logo { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); max-width: 320px; }
.site-footer h3 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer p, .site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a { text-decoration: none; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.25rem 0; text-align: center; font-size: 0.82rem; }

/* ----------- 13. WHATSAPP FLOATING BUTTON (solo ícono, enlace directo) ----------- */
.wa-fab {
    position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--color-whatsapp); color: #fff;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
    transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
    animation: wa-pulse 2.6s var(--ease) infinite;
}
.wa-fab:hover { background: var(--color-whatsapp-strong); color: #fff; transform: scale(1.06); }
.wa-fab svg { width: 34px; height: 34px; flex: none; }
@media (min-width: 768px) {
    .wa-fab { right: 1.5rem; bottom: 1.5rem; width: 64px; height: 64px; }
    .wa-fab svg { width: 36px; height: 36px; }
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45); }
    70%  { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ----------- 14. SCROLL REVEAL ----------- */
.js [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.js [data-reveal-stagger] > * {
    opacity: 0; transform: translateY(14px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.js [data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }
.js [data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* ----------- 15. ACCESSIBILITY ----------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
    .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
