/**
 * Andrea Blangino — Estilos principales
 * Design tokens y componentes según andrea-blangino-design-brief.md
 */

/* ========== DESIGN TOKENS (Sistema Visual) ========== */
:root {
    /* Tipografía (cargadas vía <link> en cada HTML) */
    --font-heading: 'Gilda Display', Georgia, serif;
    --font-body: 'Montserrat', 'Montserrat Fallback', system-ui, sans-serif;
    --font-accent: 'Gilda Display', Georgia, serif;
    --font-nav: 'Source Sans Pro', system-ui, sans-serif;

    /* Escala tipográfica */
    --text-h1: clamp(2.5rem, 5vw, 4rem);
    --text-h1-lh: 1.1;
    --text-h2: clamp(2rem, 3vw, 2.625rem);
    --text-h2-lh: 1.2;
    --text-h3: clamp(1.5rem, 2vw, 1.75rem);
    --text-body: clamp(1rem, 1.5vw, 1.125rem);
    --text-body-lh: 1.6;
    --text-small: 0.8125rem;

    /* Layout */
    --container-max: 1200px;
    --padding-x-desktop: 80px;
    --padding-x-mobile: 20px;
    --section-py-desktop: 80px;
    --section-py-mobile: 48px;
    --radius-btn: 4px;
    --radius-card: 8px;

    --nav-height: 4rem;
}

body {
    font-family: var(--font-body);
    color: var(--color-neutral-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
    font-size: var(--text-body);
    line-height: var(--text-body-lh);
}

h1, h2, h3, .font-heading {
    font-family: var(--font-heading);
}

h1 { font-size: var(--text-h1); line-height: var(--text-h1-lh); }
h2 { font-size: var(--text-h2); line-height: var(--text-h2-lh); }
h3 { font-size: var(--text-h3); }

/* Compatibilidad con clases existentes */
.serif-font { font-family: var(--font-heading); }

/* ========== BOTONES (variantes del brief) ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-btn);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 144, 147, 0.25);
}
.btn-primary:active {
    background-color: var(--color-primary-active);
    transform: translateY(0);
    box-shadow: none;
}
.btn-primary:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}
.btn-primary:disabled {
    background-color: var(--color-primary-disabled);
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-btn);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-secondary:hover {
    background-color: var(--color-primary-pale);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 144, 147, 0.15);
}
.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-btn);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-accent:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    color: var(--color-white);
    box-shadow: 0 6px 20px rgba(59, 110, 180, 0.25);
}
.btn-accent:active {
    background-color: var(--color-accent-hover);
    transform: translateY(0);
    box-shadow: none;
}

/* Secundario sobre fondo oscuro (borde blanco) */
.btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-btn);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.btn-secondary-dark:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
}
.btn-secondary-dark:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ========== CONTENEDOR Y SECCIONES ========== */
.section-divider-top {
    position: relative;
}
.section-divider-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 144, 147, 0.12) 30%, rgba(0, 144, 147, 0.12) 70%, transparent 100%);
    pointer-events: none;
}

.container-custom {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--padding-x-mobile);
    padding-right: var(--padding-x-mobile);
}
@media (min-width: 1024px) {
    .container-custom {
        padding-left: var(--padding-x-desktop);
        padding-right: var(--padding-x-desktop);
    }
}

.section-py {
    padding-top: var(--section-py-mobile);
    padding-bottom: var(--section-py-mobile);
}
@media (min-width: 1024px) {
    .section-py {
        padding-top: var(--section-py-desktop);
        padding-bottom: var(--section-py-desktop);
    }
}

/* ========== LAYOUT HELPERS ========== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.no-underline { text-decoration: none; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.block { display: block; }
.italic { font-style: italic; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-semibold { font-weight: 600; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.relative { position: relative; }
.absolute { position: absolute; }
.z-10 { z-index: 10; }
.overflow-hidden { overflow: hidden; }
.rounded-lg { border-radius: var(--radius-card); }
.rounded-t-lg { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.rounded { border-radius: var(--radius-btn); }
.rounded-full { border-radius: 9999px; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.ml-1 { margin-left: 0.25rem; }
.leading-relaxed { line-height: 1.625; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 144, 147, 0.12), 0 8px 10px -6px rgba(0, 144, 147, 0.12); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 144, 147, 0.28); }
.border-t { border-top: 1px solid rgba(0, 144, 147, 0.14); }
.border-b { border-bottom: 1px solid rgba(0, 144, 147, 0.14); }
.border-white-10.border-t { border-top-color: rgba(255, 255, 255, 0.1); }
.pb-6 { padding-bottom: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.w-fit { width: fit-content; }
.text-white { color: #fff; }
.text-white-90 { color: rgba(255, 255, 255, 0.9); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.text-white-50 { color: rgba(255, 255, 255, 0.5); }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); }
.bg-white { background-color: #fff; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.inline-block { display: inline-block; }
.min-h-\[320px\] { min-height: 320px; }
.transition-transform { transition: transform 0.3s ease; }
.duration-500 { transition-duration: 0.5s; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.hidden { display: none; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:hidden { display: none; }
    .md\:inline { display: inline; }
    .md\:inline-flex { display: inline-flex; }
    .md\:items-end { align-items: flex-end; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:text-left { text-align: left; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:\!hidden { display: none !important; }
}
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:text-4xl { font-size: 2.25rem; }
}

/* Nav grid: 3 columnas — izquierda | logo | derecha */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--padding-x-mobile);
    padding-right: var(--padding-x-mobile);
    height: 100%;
}
@media (min-width: 1024px) {
    .nav-grid { padding-left: var(--padding-x-desktop); padding-right: var(--padding-x-desktop); }
}
.nav-grid .nav-left { justify-self: start; }
.nav-grid .nav-right { justify-self: end; }
.nav-grid .nav-logo { justify-self: center; }

/* ========== NAVBAR (logo centrado, links izquierda/derecha) ========== */
@media (min-width: 768px) {
    :root { --nav-height: 4.5rem; }
}

.nav-bar {
    background: var(--color-primary-active) !important;
    color: var(--color-white);
    transition: box-shadow 0.3s ease, background-color 0.2s ease;
}
.nav-bar.nav-bar-scrolled {
    box-shadow: 0 2px 20px rgba(0, 144, 147, 0.14);
}

/* Navbar elements (dark theme overrides) */
.nav-bar .nav-cta {
    background: var(--color-white) !important;
    color: var(--color-primary) !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.nav-bar .nav-cta:hover {
    background: var(--color-primary-light) !important;
    color: var(--color-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 144, 147, 0.2);
}
.nav-bar .nav-cta:active {
    transform: translateY(0);
    box-shadow: none;
}
.nav-bar .nav-trigger {
    color: var(--color-white) !important;
}
.nav-bar .nav-logo .text-primary {
    color: var(--color-white) !important;
}
.nav-bar .nav-logo .text-neutral-mid {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Hover: subrayado animado deslizante */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-white);
    transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-white);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

body.nav-menu-open { overflow: hidden; }
.nav-menu-backdrop {
    background: rgba(0, 144, 147, 0.18);
    backdrop-filter: blur(4px);
}

body.nav-menu-open .nav-menu-mobile {
    opacity: 1;
    visibility: visible;
}
body.nav-menu-open .nav-menu-panel {
    animation: navMenuSlideIn 0.3s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    body.nav-menu-open .nav-menu-panel { animation: none; }
    .nav-hamburger .nav-hamburger-inner { transition-duration: 0.15s; }
}

@keyframes navMenuSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-menu-link {
    display: block;
    padding: 0.875rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-btn);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-menu-link:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.12);
}
.nav-menu-link:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.nav-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    background-color: var(--color-white);
    border-radius: var(--radius-btn);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-menu-cta:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 144, 147, 0.2);
}
.nav-menu-cta:active {
    transform: translateY(0);
    box-shadow: none;
}
.nav-menu-cta:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.nav-hamburger .nav-hamburger-inner { will-change: transform; }
body.nav-menu-open .nav-hamburger .nav-hamburger-inner:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.nav-menu-open .nav-hamburger .nav-hamburger-inner:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
body.nav-menu-open .nav-hamburger .nav-hamburger-inner:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ========== QUOTE BANNER (franja oscura) ========== */
.quote-banner {
    position: relative;
    overflow: hidden;
    background-color: var(--color-separator-bg);
    color: var(--color-white);
}
.quote-banner > * {
    position: relative;
    z-index: 1;
}
.quote-banner::before {
    content: '\201C';
    position: absolute;
    left: 50%;
    top: clamp(3.5rem, 18%, 6.5rem);
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(6.5rem, 18vw, 12rem);
    font-weight: 500;
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    -webkit-mask-image: radial-gradient(
        ellipse 72% 68% at 50% 48%,
        #000 0%,
        rgba(0, 0, 0, 0.55) 45%,
        transparent 72%
    );
    mask-image: radial-gradient(
        ellipse 72% 68% at 50% 48%,
        #000 0%,
        rgba(0, 0, 0, 0.55) 45%,
        transparent 72%
    );
}
@media (min-width: 768px) {
    .quote-banner::before {
        top: clamp(4rem, 20%, 7rem);
        font-size: clamp(7.5rem, 16vw, 13rem);
        color: rgba(255, 255, 255, 0.14);
    }
}
.quote-banner__headline {
    position: relative;
}
.quote-banner .font-accent {
    font-family: var(--font-accent);
    font-style: italic;
}

/* ========== HERO: clip-path orgánico para la foto ========== */
.hero-photo-wrap {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    background: var(--color-primary-pale);
}

/* ========== SERVICE ICON GRID (hover card + ícono verde) ========== */
.service-icon-card {
    border-radius: var(--radius-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-icon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 144, 147, 0.16);
}
.service-icon-card:hover .service-icon {
    color: var(--color-primary);
}

/* ========== WORKSHOP CARD ========== */
.workshop-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.25s ease;
}
.workshop-card:hover {
    transform: translateY(-2px);
}

/* ========== FORMACIÓN HERO — film grain texture ========== */
.formacion-hero__grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
}

/* ========== FAQ ACCORDION ========== */
.faq-item {
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid rgba(0, 144, 147, 0.12);
}
.faq-trigger {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--color-neutral-dark);
    background: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}
.faq-trigger:hover {
    background: var(--color-primary-pale);
}
.faq-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-content-inner {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-neutral-mid);
    line-height: 1.6;
}

/* ========== STATS COUNTER (animación al viewport) ========== */
.stat-number {
    font-family: var(--font-heading);
    color: var(--color-accent);
}

/* ========== ANIMACIONES ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Línea decorativa (gold) */
.gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    width: 100px;
    margin: 1.5rem auto;
}

/* ========== SOBRE MÍ — Icon colors (GLOBAL) ========== */
.sobre-filosofia-icon--sintoma { color: var(--color-warning) !important; }
.sobre-filosofia-icon--transgeneracional { color: var(--color-violet-light) !important; }
.sobre-filosofia-icon--empoderamiento { color: var(--color-success) !important; }

/* ========== TERAPIAS — Testimonials background (GLOBAL) ========== */
#testimonios-section {
    background-color: var(--color-neutral-light);
}

/* ========== MOBILE SURGICAL OVERRIDES (≤375px) ========== */
@media (max-width: 375px) {
    /* Fix #6 — sobre-mi hero title: mirror fix #1 */
    .sobre-hero__title {
        font-size: 36px !important;
        line-height: 1.15 !important;
    }

    /* Fix #2 — index "Sobre mí": center title + CTA */
    #sobre-mi #sobre-mi-heading {
        text-align: center;
    }
    #sobre-mi a[href="sobre-mi.html"] {
        display: inline-flex;
    }
    #sobre-mi .home-about__content {
        text-align: center;
    }

    /* Fix #3 — terapias mirror sections: bullet + title/icon alignment */
    .terapias-mirror-title {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
    }
    .terapias-mirror-title h2 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }
    #online ul[role="list"],
    #presencial ul[role="list"] {
        text-align: left !important;
    }
    #online ul[role="list"] li,
    #presencial ul[role="list"] li {
        align-items: flex-start !important;
    }

    /* Fix #5 — talleres workshop cards: internal spacing */
    .workshop-desc {
        margin-top: 0.75rem;
    }
    .workshop-meta {
        margin-top: 1rem;
    }
    .workshop-cta {
        margin-top: 2rem;
    }
}

/* ========== MOBILE SURGICAL OVERRIDES (≤320px) ========== */
@media (max-width: 320px) {
    /* index.html — "Talleres & Workshops": center title + link */
    #talleres .max-w-container > div {
        align-items: center;
        text-align: center;
    }
    #talleres .max-w-container > div > a {
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    /* index.html — "Formación": fix overflow at the source (containment) */
    #formacion {
        max-width: 100%;
        overflow-x: visible;
    }
    #formacion > .max-w-container {
        padding-left: 1.25rem;  /* match Tailwind px-5 */
        padding-right: 1.25rem; /* match Tailwind px-5 */
    }
    /* The decorative glow can create horizontal overflow at 320px */
    #formacion .formacion-hero__glow {
        display: none;
    }
    /* Prevent grid/flex children from forcing overflow at tiny widths */
    #formacion > .max-w-container,
    #formacion .formacion-hero__content,
    #formacion .formacion-hero__media {
        min-width: 0;
    }

    /* index.html — "Sobre mí" footer stats: prevent 3-col overflow */
    #sobre-mi .home-about__content > div.mt-12 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        justify-items: center;
        text-align: center;
    }
    #sobre-mi .home-about__content > div.mt-12 span {
        white-space: normal;
    }

    /* sobre-mi.html — stats block: prevent 3-col overflow */
    section[aria-labelledby="stats-heading"] .grid.grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        justify-items: center;
        text-align: center;
    }
    section[aria-labelledby="stats-heading"] .grid.grid-cols-3 span {
        white-space: normal;
    }

    /* talleres.html — workshop detail CTAs: center buttons + more spacing from meta */
    .workshop-cta {
        justify-content: center;
        margin-top: 2.5rem !important;
    }
}

/* ========== HOME HERO — entrance animation ========== */
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-hero__eyebrow       { animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.home-hero__title         { animation: heroSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
.home-hero__lead          { animation: heroSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both; }
.home-hero__text          { animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both; }
.home-hero__actions       { animation: heroSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both; }
.home-hero__photo-frame   { animation: heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both; }
.home-hero__social        { animation: heroSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }

@media (prefers-reduced-motion: reduce) {
    .home-hero__eyebrow,
    .home-hero__title,
    .home-hero__lead,
    .home-hero__text,
    .home-hero__actions,
    .home-hero__photo-frame,
    .home-hero__social {
        animation: none;
    }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero__photo-frame {
        animation:
            heroSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both,
            gentleFloat 6s ease-in-out infinite;
    }
}

/* ========== FLOATING WHATSAPP CTA (desktop only, lg+) ========== */
.wa-float {
    display: none;
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 90;
    width: 3.25rem;
    height: 3.25rem;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

@media (min-width: 1024px) {
    .wa-float {
        display: flex;
    }
}
.wa-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.wa-float--hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========== HERO / SECTION BACKGROUNDS (WebP progressive enhancement) ========== */
.bg-home-value {
    background-image: url('../images/home-value-background.png');
}
@supports (background-image: url('x.webp')) {
    .bg-home-value {
        background-image: url('../images/home-value-background.webp');
    }
}

img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}
img.img-loaded {
    opacity: 1;
}
img[loading="eager"] {
    opacity: 1 !important;
    transition: none !important;
}

/* Fix: <picture> element must behave like a transparent block wrapper */
picture {
  display: block;
  width: 100%;
  height: 100%;
}
