/* ============================================================
   Mare Meua — Estudio Creativo & Marketing Digital
   Diseño editorial bold — brandbook 2026
   ============================================================ */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --yellow:        #e8d500;
    --yellow-dark:   #c4b400;
    --yellow-pale:   #fefce6;
    --charcoal:      #292929;
    --purple:        #39003d;
    --teal:          #004a55;
    --teal-mid:      #006470;
    --teal-light:    #cce5e9;
    --sky:           #bee6fc;
    --sky-light:     #e5f4ff;
    --cream:         #f0eee9;
    --white:         #FFFFFF;
    --text:          #292929;
    --text-mid:      #4a4a4a;
    --text-light:    #888888;
    --border:        rgba(0, 74, 85, 0.13);

    --font-titulo: 'Lato', -apple-system, sans-serif;
    --font-texto:  'Lato', -apple-system, sans-serif;

    --shadow-sm:     0 4px 20px rgba(0, 74, 85, 0.09);
    --shadow-md:     0 8px 40px rgba(0, 74, 85, 0.13);
    --shadow-lg:     0 24px 64px rgba(0, 0, 0, 0.18);
    --shadow-yellow: 0 8px 32px rgba(232, 213, 0, 0.40);

    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-pill: 100px;
    --ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-texto);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--teal-mid); }
strong { font-weight: 700; }

h1, h2, h3, h4 {
    font-family: var(--font-titulo);
    font-weight: 700;
    line-height: 1.1;
    color: var(--charcoal);
    letter-spacing: -0.025em;
}

p { color: var(--text-mid); margin-bottom: 1rem; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 34px;
    border-radius: var(--radius-pill);
    font-family: var(--font-titulo);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: all var(--ease);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--yellow);
    color: var(--charcoal);
    border-color: var(--yellow);
}
.btn-primary:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    color: var(--charcoal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-yellow);
}

@keyframes yellow-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(232,213,0,0.55), 0 8px 24px rgba(232,213,0,0.30); }
    50%      { box-shadow: 0 0 0 10px rgba(232,213,0,0), 0 8px 32px rgba(232,213,0,0.55); }
}
.btn-yellow-pulse {
    background: var(--yellow);
    color: var(--charcoal);
    border-color: var(--yellow);
    animation: yellow-pulse 2.2s ease-in-out infinite;
}
.btn-yellow-pulse:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    color: var(--charcoal);
    transform: translateY(-3px);
    animation: none;
    box-shadow: 0 10px 36px rgba(232,213,0,0.55);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    border-color: #ffffff;
    color: #fff;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-nav {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
    padding: 10px 26px;
    font-size: 0.85rem;
}
.btn-nav:hover {
    background: #4d005a;
    border-color: #4d005a;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57,0,61,0.35);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(240,238,233,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: box-shadow 0.4s ease;
}
.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(57,0,61,0.10);
}
/* Logo izquierda — links derecha */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Logo centrado — se encoge al scrollar */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 20px;
    transition: opacity var(--ease);
}
.logo:hover { opacity: 0.75; }

.logo-image {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: none;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo-image { width: 110px; }

/* Nav links */
.nav-link {
    font-family: var(--font-titulo);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-mid);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--ease);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.nav-link:hover { color: var(--purple); background: rgba(57,0,61,0.06); }
.nav-link.active { color: var(--white); background: var(--purple); }

/* Mobile menu — oculto en desktop, overlay en móvil */
.nav-menu {
    display: none;
}

/* Botón lupa */
.nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--charcoal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, background 0.25s ease;
    margin-left: 6px;
    flex-shrink: 0;
}
.nav-search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 18px rgba(57,0,61,0.18);
    background: var(--sky);
}
.nav-search-btn.search-open { background: var(--purple); color: var(--white); }

/* Botón grilla 2×2 */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: none; border: none; cursor: pointer;
    border-radius: 50%;
    padding: 0;
    transition: background var(--ease);
    flex-shrink: 0;
    margin-left: 4px;
}
.nav-toggle:hover { background: rgba(57,0,61,0.07); }

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    width: 18px; height: 18px;
}
.nav-grid span {
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), opacity 0.3s ease, background 0.25s ease;
}

/* Animación al abrir: las 4 celdas se expanden hacia afuera */
.nav-toggle.active .nav-grid span:nth-child(1) { transform: translate(-2px,-2px); background: var(--purple); }
.nav-toggle.active .nav-grid span:nth-child(2) { transform: translate(2px,-2px);  background: var(--purple); }
.nav-toggle.active .nav-grid span:nth-child(3) { transform: translate(-2px,2px);  background: var(--purple); }
.nav-toggle.active .nav-grid span:nth-child(4) { transform: translate(2px,2px);   background: var(--purple); }

/* Barra de búsqueda desplegable */
.nav-searchbar {
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-top: 1px solid transparent;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), border-color 0.3s ease;
}
.nav-searchbar.open {
    max-height: 120px;
    border-top-color: rgba(0,0,0,0.06);
}
.searchbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}
.searchbar-icon { color: var(--text-light); font-size: 1rem; flex-shrink: 0; }
.searchbar-input {
    flex: 1;
    font-family: var(--font-texto);
    font-size: 1rem;
    border: none;
    outline: none;
    color: var(--charcoal);
    background: transparent;
}
.searchbar-input::placeholder { color: var(--text-light); }
.searchbar-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-light); font-size: 1rem;
    padding: 4px; border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}
.searchbar-close:hover { color: var(--purple); background: rgba(57,0,61,0.07); }

.search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.8rem;
}
.search-result-item {
    font-family: var(--font-titulo);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(57,0,61,0.07);
    color: var(--purple);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
    text-decoration: none;
}
.search-result-item:hover { background: var(--purple); color: var(--white); }

.scroll-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--sky), var(--purple));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* ============================================================
   HERO — editorial, tipografía protagonista
   ============================================================ */
.hero {
    min-height: calc(100vh - 55px);
    background: var(--purple);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 130px;
}

/* mm decorativa fondo */
.hero-mm {
    position: absolute;
    right: -4%;
    bottom: -8%;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: clamp(180px, 22vw, 340px);
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(190,230,252,0.10);
    text-stroke: 1.5px rgba(190,230,252,0.10);
    pointer-events: none;
    z-index: 2;
    user-select: none;
    animation: mm-breathe 10s ease-in-out infinite;
}
@keyframes mm-breathe {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* Grain texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 85% 40%, rgba(0,74,85,0.35) 0%, transparent 65%),
        radial-gradient(ellipse 35% 35% at 5% 90%, rgba(190,230,252,0.06) 0%, transparent 55%);
    pointer-events: none;
    z-index: 2;
}

/* Dot grid animado */
.hero::after {
    content: '';
    position: absolute;
    inset: -40px;
    background-image: radial-gradient(circle, rgba(190,230,252,0.11) 1.2px, transparent 1.2px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 2;
    animation: dot-drift 18s linear infinite;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
@keyframes dot-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.hero .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.hero-inner {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
}

/* Columna izquierda */
.hero-content {
    flex: 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Columna derecha */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Grid de stats */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.hero-stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(190,230,252,0.14);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.hero-stat-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(190,230,252,0.30);
}

.stat-card-num {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--yellow);
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat-plus {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--yellow);
}
.stat-inf {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--yellow);
    line-height: 1;
}
.stat-card-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.50);
    font-family: var(--font-texto);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    line-height: 1.5;
}

/* Tag label */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(190,230,252,0.10);
    border: 1px solid rgba(190,230,252,0.28);
    color: var(--sky);
    font-family: var(--font-titulo);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 0.8rem;
}
.tag-dot {
    width: 7px; height: 7px;
    background: var(--yellow);
    border-radius: 50%;
    animation: pulse-dot 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.55); }
}

/* Main title — huge editorial */
.hero-title {
    font-family: var(--font-texto);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    color: #ffffff;
    letter-spacing: -0.04em;
    margin-bottom: 1.4rem;
    text-align: left;
}
.hero-title .highlight {
    display: block;
    font-style: italic;
    color: var(--sky);
    background: none;
    padding: 0;
    text-decoration: none;
    will-change: opacity;
}

/* Animación texto rotativo — fade+blur sin scale (evita layout shift) */
@keyframes word-out {
    from { opacity: 1; filter: blur(0px); }
    to   { opacity: 0; filter: blur(5px); }
}
@keyframes word-in {
    from { opacity: 0; filter: blur(5px); }
    to   { opacity: 1; filter: blur(0px); }
}
.highlight.is-exiting  { animation: word-out 0.32s ease-in  forwards; }
.highlight.is-entering { animation: word-in  0.42s ease-out forwards; }

/* Sub-line + CTAs */
.hero-sub {
    font-family: var(--font-titulo);
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    font-weight: 500;
    color: rgba(255,255,255,0.50);
    font-style: italic;
    margin: 0 0 1.6rem 0;
    letter-spacing: -0.01em;
    line-height: 1.6;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero: fade de entrada — sin translateY para evitar cualquier reubicación */
@keyframes hero-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.hero-tag   { animation: hero-fade-in 0.7s ease 0.1s  both; }
.hero-title { animation: hero-fade-in 0.7s ease 0.22s both; }
.hero-sub   { animation: hero-fade-in 0.7s ease 0.38s both; }
.hero-ctas  { animation: hero-fade-in 0.7s ease 0.54s both; }

/* ─── Hero Slider — slides de fondo ─── */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.hero-slide--active {
    transform: translateX(0);
}

/* Imagen de fondo de cada slide */
.hero-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* Scrim: oscuro a la izquierda (texto legible), transparente a la derecha (muestra foto) */
.hero-slide__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(25, 5, 30, 0.90) 0%,
        rgba(25, 5, 30, 0.78) 38%,
        rgba(25, 5, 30, 0.42) 62%,
        rgba(25, 5, 30, 0.08) 100%
    );
}

/* Slide 3: color de marca (sin foto) */
.hero-slide--brand {
    background: linear-gradient(135deg, #0e0118 0%, var(--purple) 45%, #003040 100%);
    transform: translateX(100%);
}

/* ─── Controles del slider ─── */
.hsc {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.hsc__btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(190,230,252,0.3);
    background: rgba(255,255,255,0.06);
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hsc__btn:hover {
    background: rgba(232,213,0,0.18);
    border-color: var(--yellow);
    transform: scale(1.08);
}

.hsc__dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hsc__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(240,238,233,0.35);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, width 0.3s;
    padding: 0;
}
.hsc__dot--active {
    background: var(--yellow);
    width: 22px;
    border-radius: 4px;
    transform: scale(1);
}


/* Stats bar */
.hero-statsbar {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 0;
}
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 0 1rem;
    text-align: center;
}
.hero-stat-num {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}
.hero-stat strong {
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
    letter-spacing: -0.04em;
}
.hero-stat span {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    font-family: var(--font-texto);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.hero-stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 7rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 3;
}
.scroll-hint span {
    font-family: var(--font-titulo);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.scroll-hint__mouse {
    width: 22px; height: 34px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}
.scroll-hint__wheel {
    width: 3px; height: 8px;
    background: var(--sky);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ============================================================
   MARQUEE — amarillo sobre carbón
   ============================================================ */
.marquee-strip {
    background: var(--yellow);
    padding: 16px 0;
    overflow: hidden;
    position: relative;
}
.marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 26s linear infinite;
    will-change: transform;
}
.marquee-track span {
    font-family: var(--font-titulo);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--charcoal);
    padding: 0 2rem;
    flex-shrink: 0;
}
.marquee-italic {
    font-style: italic !important;
    letter-spacing: 0.5px !important;
    color: var(--purple) !important;
}
.marquee-tag {
    background: var(--purple) !important;
    color: var(--yellow) !important;
    padding: 5px 18px !important;
    border-radius: 100px !important;
    letter-spacing: 1px !important;
    font-size: 0.85rem !important;
}
.marquee-dot {
    color: var(--purple) !important;
    padding: 0 0.3rem !important;
    font-size: 0.75rem !important;
    letter-spacing: 0 !important;
    vertical-align: middle;
    opacity: 0.5;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   SECCIONES BASE
   ============================================================ */
section { padding: 7rem 0; }

.section-header { text-align: center; margin-bottom: 5rem; }

.section-label {
    display: inline-block;
    color: var(--teal);
    font-family: var(--font-titulo);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-label--light { color: rgba(232,213,0,0.65); }

.section-title {
    font-family: var(--font-titulo);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.028em;
    margin-bottom: 1rem;
    line-height: 1.08;
}
.section-title em {
    color: var(--purple);
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--yellow); }

/* ============================================================
   MANIFIESTO — sección entre marquee y servicios
   ============================================================ */

/* — estado inicial (antes de animar) — */
.m-line {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity;
}
.m-line--left  { transform: translateX(-80px); }
.m-line--right { transform: translateX(80px); }

.m-sub {
    opacity: 0;
    transform: translateY(18px);
}

.m-para {
    opacity: 0;
    transform: translateY(32px);
}

/* — estado activo (tras IntersectionObserver) — */
.m-line.m-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.75s cubic-bezier(0.34,1.4,0.64,1),
                transform 0.75s cubic-bezier(0.34,1.4,0.64,1);
}
.m-sub.m-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.38s, transform 0.6s cubic-bezier(0.22,1,0.36,1) 0.38s;
}
.m-para.m-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

.manifesto {
    background: var(--cream);
    padding: 6rem 0 5rem;
    border-bottom: 1px solid rgba(41,41,41,0.08);
}

.manifesto-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.manifesto-title {
    font-family: var(--font-titulo);
    font-size: clamp(2.2rem, 3.8vw, 3.6rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.15;
    margin: 0 0 1.2rem;
    letter-spacing: -0.02em;
}

.manifesto-title em {
    color: var(--purple);
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
}

.manifesto-sub {
    font-family: var(--font-titulo);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 500;
    color: rgba(41,41,41,0.55);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.manifesto-body {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding-top: 0.6rem;
}

.manifesto-body p {
    font-family: var(--font-texto);
    font-size: clamp(0.97rem, 1.1vw, 1.08rem);
    color: rgba(41,41,41,0.72);
    line-height: 1.8;
    margin: 0;
}

.manifesto-body strong {
    color: var(--purple);
}

/* manifesto mobile — cubierto en el bloque responsive principal */

/* ============================================================
   SERVICIOS — lista acordeón
   ============================================================ */
.services { background: var(--cream); padding: 7rem 0 8rem; }
.services-header { margin-bottom: 3.5rem; }
.services-header .section-label { display: block; font-size: 1.1rem; letter-spacing: 2px; }


.svc-accordion {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
}

.svc-row {
    display: grid;
    grid-template-columns: 2.8rem 1fr 1fr auto;
    align-items: start;
    gap: 1.5rem;
    padding: 1.6rem 1.8rem;
    border-bottom: 1px solid rgba(41,41,41,0.12);
    text-decoration: none;
    border-radius: 14px;
    transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}
.svc-row:first-child { border-top: 1px solid rgba(41,41,41,0.12); }
.svc-row-num { padding-top: 0.4rem; }
.svc-row-arrow { margin-top: 0.35rem; }

.svc-row-num {
    font-family: var(--font-titulo);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(41,41,41,0.30);
    transition: color 0.3s ease;
}

.svc-row-name {
    font-family: var(--font-titulo);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.svc-row-desc {
    font-family: var(--font-texto);
    font-size: 0.93rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.6;
    color: rgba(41,41,41,0.65);
    transition: color 0.3s ease;
}

.svc-row-tag {
    font-size: 0.97rem;
    font-weight: 500;
    color: rgba(41,41,41,0.62);
    font-style: italic;
    transition: color 0.3s ease;
    text-align: left;
    padding-top: 0.35rem;
    line-height: 1.4;
}

.svc-row-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky);
    border: 1.5px solid var(--sky);
    color: var(--teal);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Estado activo/hover — propiedades compartidas */
.svc-row--active,
.svc-row:hover {
    padding: 2rem 1.8rem;
    border-color: transparent;
}

/* ── Púrpura (Branding) ── */
.svc-row--purple.svc-row--active, .svc-row--purple:hover { background: var(--purple); }
.svc-row--purple.svc-row--active .svc-row-num,
.svc-row--purple:hover .svc-row-num               { color: rgba(232,213,0,0.55); }
.svc-row--purple.svc-row--active .svc-row-name,
.svc-row--purple:hover .svc-row-name              { color: var(--sky); }
.svc-row--purple.svc-row--active .svc-row-desc,
.svc-row--purple:hover .svc-row-desc              { color: rgba(255,255,255,0.60); }
.svc-row--purple.svc-row--active .svc-row-tag,
.svc-row--purple:hover .svc-row-tag               { color: rgba(255,255,255,0.48); }
.svc-row--purple.svc-row--active .svc-row-arrow,
.svc-row--purple:hover .svc-row-arrow             { background: var(--sky); border-color: var(--sky); color: var(--purple); transform: translateX(4px); }

/* ── Teal (Marketing Digital) ── */
.svc-row--teal.svc-row--active, .svc-row--teal:hover { background: var(--teal); }
.svc-row--teal.svc-row--active .svc-row-num,
.svc-row--teal:hover .svc-row-num                 { color: rgba(232,213,0,0.55); }
.svc-row--teal.svc-row--active .svc-row-name,
.svc-row--teal:hover .svc-row-name                { color: var(--yellow); }
.svc-row--teal.svc-row--active .svc-row-desc,
.svc-row--teal:hover .svc-row-desc                { color: rgba(255,255,255,0.60); }
.svc-row--teal.svc-row--active .svc-row-tag,
.svc-row--teal:hover .svc-row-tag                 { color: rgba(255,255,255,0.48); }
.svc-row--teal.svc-row--active .svc-row-arrow,
.svc-row--teal:hover .svc-row-arrow               { background: var(--yellow); border-color: var(--yellow); color: var(--teal); transform: translateX(4px); }

/* ── Celeste (Diseño Web) ── */
.svc-row--charcoal.svc-row--active, .svc-row--charcoal:hover { background: var(--sky); }
.svc-row--charcoal.svc-row--active .svc-row-num,
.svc-row--charcoal:hover .svc-row-num             { color: rgba(0,74,85,0.45); }
.svc-row--charcoal.svc-row--active .svc-row-name,
.svc-row--charcoal:hover .svc-row-name            { color: var(--purple); }
.svc-row--charcoal.svc-row--active .svc-row-desc,
.svc-row--charcoal:hover .svc-row-desc            { color: rgba(0,74,85,0.70); }
.svc-row--charcoal.svc-row--active .svc-row-tag,
.svc-row--charcoal:hover .svc-row-tag             { color: rgba(0,74,85,0.55); }
.svc-row--charcoal.svc-row--active .svc-row-arrow,
.svc-row--charcoal:hover .svc-row-arrow           { background: var(--teal); border-color: var(--teal); color: var(--sky); transform: translateX(4px); }

/* ── Amarillo (Contenido Audiovisual) — texto oscuro ── */
.svc-row--yellow.svc-row--active, .svc-row--yellow:hover { background: var(--yellow); }
.svc-row--yellow.svc-row--active .svc-row-num,
.svc-row--yellow:hover .svc-row-num               { color: rgba(41,41,41,0.40); }
.svc-row--yellow.svc-row--active .svc-row-name,
.svc-row--yellow:hover .svc-row-name              { color: var(--charcoal); }
.svc-row--yellow.svc-row--active .svc-row-desc,
.svc-row--yellow:hover .svc-row-desc              { color: rgba(41,41,41,0.62); }
.svc-row--yellow.svc-row--active .svc-row-tag,
.svc-row--yellow:hover .svc-row-tag               { color: rgba(41,41,41,0.50); }
.svc-row--yellow.svc-row--active .svc-row-arrow,
.svc-row--yellow:hover .svc-row-arrow             { background: var(--charcoal); border-color: var(--charcoal); color: var(--yellow); transform: translateX(4px); }

/* ============================================================
   POR QUÉ NOSOTROS — redesign bold 2026
   ============================================================ */
.why-us {
    background: var(--charcoal);
    padding: 7rem 0 8rem;
    position: relative;
    overflow: hidden;
}
.why-us::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 5% 10%, rgba(57,0,61,0.40) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 95% 90%, rgba(0,74,85,0.30) 0%, transparent 60%);
    pointer-events: none;
}

/* ─── intro row ─── */
.why-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4.5rem;
    position: relative;
    z-index: 1;
}
.why-us .section-label {
    color: rgba(232,213,0,0.70);
    display: block;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}
.why-sub {
    font-size: 1rem;
    color: rgba(240,238,233,0.55);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 52ch;
}

/* ─── cierre con CTA ─── */
.why-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}
.why-cta__line {
    font-size: 1.05rem;
    color: rgba(240,238,233,0.55);
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ─── 2×2 bento grid ─── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}
.why-card {
    position: relative;
    overflow: hidden;
    padding: 3rem 2.8rem 2.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.why-card--yellow::before { background: var(--yellow); }
.why-card--teal::before   { background: #4dd5e6; }
.why-card--sky::before    { background: var(--sky); }
.why-card--purple::before { background: #b48efc; }

.why-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}
.why-card--yellow:hover { box-shadow: 0 24px 60px rgba(232,213,0,0.14); }
.why-card--teal:hover   { box-shadow: 0 24px 60px rgba(77,213,230,0.12); }
.why-card--sky:hover    { box-shadow: 0 24px 60px rgba(190,230,252,0.12); }
.why-card--purple:hover { box-shadow: 0 24px 60px rgba(180,142,252,0.12); }

.why-card__num {
    position: absolute;
    top: 1.4rem; right: 2rem;
    font-family: var(--font-titulo);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
.why-card--yellow .why-card__num { color: rgba(232,213,0,0.18);  text-shadow: 0 0 40px rgba(232,213,0,0.20); }
.why-card--teal   .why-card__num { color: rgba(77,213,230,0.18); text-shadow: 0 0 40px rgba(77,213,230,0.20); }
.why-card--sky    .why-card__num { color: rgba(190,230,252,0.18);text-shadow: 0 0 40px rgba(190,230,252,0.20); }
.why-card--purple .why-card__num { color: rgba(180,142,252,0.18);text-shadow: 0 0 40px rgba(180,142,252,0.20); }

.why-card--yellow:hover .why-card__num { color: rgba(232,213,0,0.35);  text-shadow: 0 0 50px rgba(232,213,0,0.40); }
.why-card--teal:hover   .why-card__num { color: rgba(77,213,230,0.35); text-shadow: 0 0 50px rgba(77,213,230,0.40); }
.why-card--sky:hover    .why-card__num { color: rgba(190,230,252,0.35);text-shadow: 0 0 50px rgba(190,230,252,0.40); }
.why-card--purple:hover .why-card__num { color: rgba(180,142,252,0.35);text-shadow: 0 0 50px rgba(180,142,252,0.40); }

.why-card__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    transition: transform 0.35s ease, background 0.35s ease;
}
.why-card--yellow .why-card__icon { background: rgba(232,213,0,0.13); color: var(--yellow); }
.why-card--teal   .why-card__icon { background: rgba(77,213,230,0.13);  color: #4dd5e6; }
.why-card--sky    .why-card__icon { background: rgba(190,230,252,0.12); color: var(--sky); }
.why-card--purple .why-card__icon { background: rgba(180,142,252,0.12); color: #b48efc; }

.why-card:hover .why-card__icon { transform: scale(1.12) rotate(-5deg); }
.why-card--yellow:hover .why-card__icon { background: rgba(232,213,0,0.22); }
.why-card--teal:hover   .why-card__icon { background: rgba(77,213,230,0.22); }
.why-card--sky:hover    .why-card__icon { background: rgba(190,230,252,0.20); }
.why-card--purple:hover .why-card__icon { background: rgba(180,142,252,0.22); }

.why-card__title {
    font-family: var(--font-titulo);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.9rem;
}
.why-card__desc {
    font-size: 0.9rem;
    color: rgba(240,238,233,0.55);
    line-height: 1.75;
    margin: 0;
}

/* ============================================================
   FORMULA — púrpura profundo
   ============================================================ */
.formula {
    background: var(--teal);
    position: relative;
    overflow: hidden;
    padding: 3rem 0 7rem;
}
.formula-header { margin-bottom: 3.5rem; }
.formula::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(57,0,61,0.25) 0%, transparent 65%);
    right: -200px; top: -200px;
    pointer-events: none;
}
.formula::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(190,230,252,0.06) 0%, transparent 65%);
    left: -80px; bottom: -80px;
    pointer-events: none;
}

.formula-em {
    color: var(--yellow);
    font-style: italic;
    text-decoration: none;
}

.formula-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    position: relative;
    z-index: 1;
}

.formula-step {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2.6rem 3rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateX(-60px) translateY(30px) scale(0.92);
    will-change: transform, opacity;
}
.formula-step.step-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    transition: opacity 0.7s cubic-bezier(0.34, 1.4, 0.64, 1),
                transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1),
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

/* Línea de progreso inferior */
.formula-step::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--yellow), rgba(232,213,0,0.3));
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: width 0.9s cubic-bezier(0.22,1,0.36,1);
}
.formula-step.step-visible::after { width: 100%; }

/* Hover 3D tilt */
.formula-step:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(232,213,0,0.35);
    box-shadow: 0 20px 48px rgba(0,0,0,0.28);
}
/* Conector entre pasos */
.formula-steps::before {
    content: '';
    position: absolute;
    top: 54px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(232,213,0,0.25) 20%,
        rgba(232,213,0,0.25) 80%,
        transparent);
    z-index: 0;
    pointer-events: none;
}

.step-bg-num {
    position: absolute;
    top: -30px; right: -15px;
    font-family: var(--font-titulo);
    font-size: 11rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.06em;
    transition: color var(--ease);
}
.formula-step:hover .step-bg-num { color: rgba(232,213,0,0.12); }

.step-inner { position: relative; z-index: 1; }

.step-icon-wrap {
    width: 68px; height: 68px;
    background: rgba(232,213,0,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--yellow);
    margin-bottom: 2rem;
    transition: all var(--ease);
}
.formula-step:hover .step-icon-wrap {
    background: var(--yellow);
    color: var(--charcoal);
    transform: scale(1.06);
}

.step-inner h3 {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.9rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.step-inner p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin: 0;
}

/* Formula main title */
.formula-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    line-height: 1.12;
}

.formula-intro {
    max-width: 520px;
    margin: 1.2rem auto 0;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.60);
    text-align: center;
}
.formula-intro strong {
    color: var(--yellow);
    font-weight: 700;
    display: block;
    margin-top: 0.3rem;
}

.formula-divider {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 2.5rem auto 0;
    max-width: 640px;
}
.formula-divider::before,
.formula-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
}
.formula-divider span {
    font-family: var(--font-titulo);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(232,213,0,0.65);
    white-space: nowrap;
}

/* Formula closing paragraph */
.formula-closing {
    margin-top: 4rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 2.5rem 3rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
}
.formula-closing p {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.85;
    margin-bottom: 0.5rem;
}
.formula-closing-cta {
    font-family: var(--font-titulo);
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--yellow) !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
    letter-spacing: -0.01em;
}

/* ============================================================
   SOBRE NOSOTROS
   ============================================================ */
.about { background: var(--cream); padding-bottom: 3rem; }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
}

.about-text .section-label { font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 0.75rem; }
.about-text .section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.6rem; }
.about-text p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; }
.about-text .btn { margin-top: 0.75rem; }

/* ── Stats duo — 2 tarjetas grandes con animación ── */
.stats-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.stat-big {
    border-radius: 20px;
    padding: 3rem 2rem 2.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) scale(0.94);
    transition: opacity 0.7s cubic-bezier(0.34,1.56,0.64,1),
                transform 0.7s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.35s ease;
}
.stat-big.stat-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.stat-big:nth-child(2) { transition-delay: 0.18s; }

.stat-big--light {
    background: var(--white);
    border: 1px solid rgba(41,41,41,0.08);
}
.stat-big--light:hover { box-shadow: 0 16px 48px rgba(57,0,61,0.12); transform: translateY(-6px) scale(1.01); }

.stat-big--dark {
    background: var(--purple);
}
.stat-big--dark:hover { box-shadow: 0 16px 48px rgba(57,0,61,0.35); transform: translateY(-6px) scale(1.01); }

.stat-big__number {
    font-family: var(--font-titulo);
    font-size: clamp(4rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 1rem;
}
.stat-big--light .stat-big__number { color: var(--purple); }
.stat-big--dark  .stat-big__number { color: var(--yellow); }

.stat-big__label {
    font-family: var(--font-titulo);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.stat-big--light .stat-big__label { color: rgba(41,41,41,0.45); }
.stat-big--dark  .stat-big__label { color: rgba(255,255,255,0.50); }

.stat-big__bar {
    position: absolute;
    bottom: 0; left: 0;
    height: 4px;
    width: 0%;
    border-radius: 0 0 20px 20px;
    transition: width 1.2s cubic-bezier(0.22,1,0.36,1) 0.4s;
}
.stat-big.stat-visible .stat-big__bar { width: 100%; }
.stat-big--light .stat-big__bar { background: linear-gradient(90deg, var(--purple), var(--teal)); }
.stat-big--dark  .stat-big__bar { background: linear-gradient(90deg, var(--yellow), rgba(232,213,0,0.4)); }

/* ── Contador animado ── */
@keyframes num-pop {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}
.stat-counter {
    display: inline-block;
    animation: none;
}
.stat-big.stat-visible .stat-counter {
    animation: num-pop 0.65s cubic-bezier(0.34,1.56,0.64,1) 0.25s both;
}

/* legacy stats-grid kept for other uses */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--ease);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-mid));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-card:hover::after { transform: scaleX(1); }

.stat-card--dark { background: var(--teal); border-color: transparent; }
.stat-card--dark::after { background: linear-gradient(90deg, var(--yellow), var(--yellow-dark)); }
.stat-card--dark p { color: rgba(255,255,255,0.45); }

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0.6rem;
}
.stat-number {
    font-family: var(--font-titulo);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat-card--dark .stat-number { color: var(--yellow); }

.stat-suffix {
    font-family: var(--font-titulo);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--teal);
}
.stat-card--dark .stat-suffix { color: var(--yellow); }

.stat-infinity { font-size: 2.4rem; color: var(--teal); }

.stat-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 700;
    margin: 0;
    font-family: var(--font-texto);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.about-quote {
    position: relative;
    background: var(--purple);
    color: rgba(255,255,255,0.88);
    padding: 2.2rem 2rem 2rem 3rem;
    border-radius: var(--radius-md);
    font-family: var(--font-texto);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    overflow: hidden;
}
.about-quote::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--yellow);
}
.quote-mark {
    position: absolute;
    top: -5px; left: 16px;
    font-family: var(--font-texto);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--yellow);
    opacity: 0.2;
    font-style: normal;
    pointer-events: none;
}

/* ============================================================
   SECTORES
   ============================================================ */
.sectors { background: var(--cream); padding-top: 2rem; }

.sectors-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: center;
}

.sectors-text { text-align: left; }
.sectors-text .section-label { display: block; text-align: left; }
.sectors-text .section-title { text-align: left; }

.sectors-intro {
    margin: 1.4rem 0 0;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-mid);
    text-align: left;
}
.sectors-intro strong { color: var(--purple); font-weight: 700; }

.sectors-stat { width: 100%; }

/* ── Infinito: blanco + púrpura ── */
.stat-big--infinity {
    border: 2px solid rgba(57,0,61,0.10);
    box-shadow: 0 8px 32px rgba(57,0,61,0.08);
    padding: 2.2rem 1.4rem 1.8rem;
}
.stat-big--infinity.stat-big--light { background: var(--white); }
.stat-big--infinity .stat-big__number {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    color: var(--purple) !important;
    transition: transform 0.65s cubic-bezier(0.34,1.56,0.64,1) 0.3s, opacity 0.5s ease 0.3s;
    opacity: 0;
    transform: scale(0.3) rotate(-25deg);
}
.stat-big--infinity.stat-visible .stat-big__number {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.stat-big--infinity .stat-big__label {
    color: rgba(57,0,61,0.45) !important;
}
.stat-big--infinity .stat-big__bar {
    background: linear-gradient(90deg, var(--purple), var(--teal)) !important;
}
/* Pulso continuo en el ∞ tras aparecer */
@keyframes inf-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}
.stat-big--infinity.stat-visible .stat-big__number {
    animation: inf-pulse 3s ease-in-out 1s infinite;
}
/* Hover lift */
.stat-big--infinity:hover {
    box-shadow: 0 20px 48px rgba(57,0,61,0.18);
    transform: translateY(-8px) scale(1.02) !important;
}

.countries {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

/* Estado inicial — invisibles hasta que el observer los activa */
.chip-item {
    opacity: 0;
    transform: scale(0.5) translateY(28px);
}

@keyframes chip-pop {
    0%   { opacity: 0; transform: scale(0.5) translateY(28px); }
    60%  { opacity: 1; transform: scale(1.08) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.chip-item.chip-visible {
    animation: chip-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid rgba(57,0,61,0.15);
    color: var(--purple);
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-titulo);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: default;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.country-badge:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(57,0,61,0.2);
}

.sectors-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sector-chip {
    background: #fff;
    color: var(--purple);
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-titulo);
    border: 1.5px solid rgba(57,0,61,0.14);
    cursor: default;
    letter-spacing: 0.3px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
/* Chips pares en amarillo */
.sector-chip:nth-child(even) {
    background: rgba(232,213,0,0.15);
    border-color: rgba(232,213,0,0.5);
    color: var(--charcoal);
}
.sector-chip:hover {
    transform: translateY(-5px) scale(1.07);
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
    box-shadow: 0 8px 24px rgba(57,0,61,0.22);
}
.sector-chip:nth-child(even):hover {
    background: var(--yellow);
    color: var(--charcoal);
    border-color: var(--yellow);
    box-shadow: 0 8px 24px rgba(232,213,0,0.35);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact {
    background: var(--teal);
    position: relative;
    overflow: hidden;
    padding-top: 0;
}
.contact::before {
    content: '';
    position: absolute;
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(57,0,61,0.3) 0%, transparent 65%);
    bottom: -220px; right: -160px;
    pointer-events: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: var(--font-titulo);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin: 1rem 0 1.5rem;
}
.contact-title em { color: var(--yellow); font-style: italic; }

.contact-left .contact-intro {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.75;
    margin-bottom: 0.8rem;
    margin-top: 0;
    font-style: normal;
}
.contact-left .contact-intro strong { color: var(--yellow); font-weight: 700; }
.contact-left .contact-intro--sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.52);
    font-style: italic;
    margin-bottom: 2.2rem;
}

.contact-info-items { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.95rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: all var(--ease);
}
.contact-info-item:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(232,213,0,0.3);
    color: inherit;
    transform: translateX(4px);
}
.contact-info-item > i { font-size: 1.1rem; color: var(--yellow); min-width: 20px; text-align: center; flex-shrink: 0; }
.contact-info-item div { display: flex; flex-direction: column; gap: 2px; }
.info-label {
    display: block;
    font-family: var(--font-texto);
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.32);
    line-height: 1;
}
.info-value { display: block; font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.82); line-height: 1.3; }

.contact-social { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--radius-pill);
    font-family: var(--font-titulo);
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all var(--ease);
}
.social-pill:hover {
    background: rgba(232,213,0,0.15);
    border-color: rgba(232,213,0,0.4);
    color: var(--yellow);
    transform: translateY(-2px);
}
.social-pill i { font-size: 0.85rem; }

.contact-card {
    background: var(--white);
    padding: 2rem 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-family: var(--font-texto);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
    padding: 13px 15px;
    border: 1.5px solid rgba(0,74,85,0.16);
    border-radius: var(--radius-sm);
    font-family: var(--font-texto);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: all var(--ease);
    resize: vertical;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #c4c4c4; font-size: 0.9rem; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 4px rgba(232,213,0,0.14);
}

.checkbox-group { margin-top: 4px; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1.55;
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkmark {
    flex-shrink: 0;
    width: 18px; height: 18px;
    background: var(--white);
    border: 1.5px solid rgba(0,74,85,0.28);
    border-radius: 4px;
    margin-top: 1px;
    transition: all var(--ease);
    position: relative;
}
.checkbox-label:hover .checkmark { border-color: var(--teal); }
.checkbox-label input:checked ~ .checkmark { background: var(--teal); border-color: var(--teal); }
.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px; top: 1px;
    width: 6px; height: 10px;
    border: 2px solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-label input:checked ~ .checkmark::after { display: block; }
.checkbox-label a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

.submit-btn { width: 100%; justify-content: center; margin-top: 4px; }
.btn-loading { display: none; }
.submit-btn.loading .btn-text    { display: none; }
.submit-btn.loading .btn-loading { display: inline-flex; align-items: center; gap: 8px; }

.form-message { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.55; display: none; }
.form-message.success { background: #e6f4f1; color: #0D5E52; border: 1px solid #b2d8d0; }
.form-message.error   { background: #fde8e8; color: #8B1A1A; border: 1px solid #f5c2c2; }
.form-message.warning { background: var(--yellow-pale); color: #6a5800; border-left: 4px solid var(--yellow); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--charcoal); padding: 3rem 0 1.5rem; }

.footer-top {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-img {
    width: 160px; height: auto; object-fit: contain;
    margin-bottom: 1.4rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity var(--ease);
    display: block;
}
.footer-logo-img:hover { opacity: 1; }

.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.38); line-height: 1.75; margin: 0; }
.footer-brand strong { color: rgba(255,255,255,0.68); font-weight: 600; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

.footer-column h4 {
    font-family: var(--font-titulo);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: rgba(255,255,255,0.28);
    margin-bottom: 1.2rem;
}
.footer-column a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 0.65rem;
    transition: all var(--ease);
}
.footer-column a:hover { color: var(--yellow); transform: translateX(4px); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.18); margin: 0; }

/* ============================================================
   ANIMACIONES AOS
   ============================================================ */
[data-aos] { opacity: 0; transition: opacity 0.75s ease, transform 0.75s ease; will-change: opacity, transform; }
[data-aos].aos-animate { opacity: 1 !important; transform: none !important; }
[data-aos="fade-up"]    { transform: translateY(32px); }
[data-aos="fade-right"] { transform: translateX(-32px); }
[data-aos="fade-left"]  { transform: translateX(32px); }
[data-aos="zoom-in"]    { transform: scale(0.86); }

/* ============================================================
   RESPONSIVE — Tablet (<= 1100px)
   ============================================================ */
@media (max-width: 1100px) {
    .svc-accordion { padding: 0 1.2rem; }
    .svc-row { grid-template-columns: 2rem 1fr auto; gap: 1rem; }
    .svc-row-tag { display: none; }
    .formula-steps { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { max-width: 100%; }
    .hero .container { flex-direction: column; align-items: flex-start; }
    .nav-right .nav-link { display: none; }
    .nav-right .btn-nav { display: none; }
    .nav-toggle { display: flex; }
    .nav-search-btn { display: flex; }

    /* Panel — se desliza desde la izquierda */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 80px; left: -100%;
        width: 78%;
        max-width: 300px;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: stretch;
        background: rgba(255,255,255,0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2rem 1.5rem;
        gap: 4px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 6px 0 40px rgba(0,0,0,0.12);
        z-index: 999;
        overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-menu .nav-link { padding: 13px 16px; font-size: 1rem; display: flex; }
    .nav-cta-mobile { margin-top: 1.5rem; justify-content: center; width: 100%; }
}

@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; gap: 4rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
    .manifesto-inner { grid-template-columns: 1fr; gap: 3rem; }
    .sectors-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .sectors-text { text-align: center; }
    .sectors-text .section-label { text-align: center; }
    .sectors-text .section-title { text-align: center; }
    .sectors-intro { text-align: center; }
}

/* ============================================================
   RESPONSIVE — Mobile (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    section { padding: 5rem 0; }

    .navbar .container {
        padding-left: 20px;
        padding-right: 20px;
        min-height: 70px;
    }

    /* Logo móvil */
    .logo-image { width: 130px; }
    .navbar.scrolled .logo-image { width: 90px; }

    /* Ajustar top del panel al navbar móvil */
    .nav-menu { top: 70px; height: calc(100vh - 70px); }

    .hero { padding-top: 100px; }
    .hero-inner { flex-direction: column; gap: 2.5rem; }
    .hero-content { flex: unset; max-width: 100%; }
    .hero-title { font-size: 2.8rem; text-align: left; }
    .hero-sub { font-size: 1rem; }
    .hero-visual { width: 100%; }
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .hero-stat-card { padding: 1.2rem 1rem; }
    .stat-card-num { font-size: 2rem; }
    .scroll-hint { display: none; }
    .hero-mm { display: none; }

    .svc-row { grid-template-columns: 1fr auto; gap: 0.8rem; padding: 1.3rem 1rem; }
    .svc-row-num { display: none; }
    .svc-row-name { font-size: clamp(1rem, 4vw, 1.3rem); }

    .formula-steps { grid-template-columns: 1fr; gap: 1rem; }
    .formula-step { padding: 2.2rem 1.8rem 2rem; }

    .why-grid { grid-template-columns: 1fr; }
    .why-card { padding: 2.4rem 2rem 2rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-duo { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 1.9rem; }
    .form-row { grid-template-columns: 1fr; }

    .contact-left { text-align: left; }
    .contact-card { padding: 1.8rem 1.5rem; }
    .contact-form { gap: 0.7rem; }

    .page-header { padding: 7rem 0 2.5rem; }
    .page-header__title { font-size: 2.2rem; }

    .sectors-layout { grid-template-columns: 1fr; gap: 2rem; }
    .sectors-chips { justify-content: center; }

    .about-content { gap: 3rem; }
    .stat-big { padding: 2.2rem 1.5rem 1.8rem; }

    .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .why-top { margin-bottom: 3rem; }
    .why-cta { margin-top: 3rem; }
}

/* ============================================================
   RESPONSIVE — Mobile pequeño (<= 480px)
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    section { padding: 4rem 0; }

    .hero-title { font-size: 2.2rem; }
    .highlight { font-size: 2.2rem; }
    .section-title { font-size: 1.6rem; }

    .why-card { padding: 2rem 1.6rem 1.8rem; }
    .why-card__num { font-size: 4rem; }
    .why-card__title { font-size: 1.1rem; }

    .contact-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-duo { grid-template-columns: 1fr; }
    .footer-nav { grid-template-columns: 1fr; }
    .contact-card { padding: 1.5rem 1.2rem; }

    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { justify-content: center; width: 100%; }
    .btn { padding: 14px 24px; }
    .hero-statsbar { padding: 1.2rem 0; }
    .hero-stat strong { font-size: 1.4rem; }

    .formula-steps { gap: 0.8rem; }
    .formula-step { padding: 2rem 1.4rem 1.8rem; }

    .page-header { padding: 6rem 0 2rem; }
    .page-header__title { font-size: 1.9rem; }
    .page-header__sub { font-size: 0.95rem; }

    .manifesto-title { font-size: 1.9rem; }
    .manifesto { padding: 3.5rem 0 3rem; }

    .svc-row-name { font-size: 1rem; }
    .sectors-chips { gap: 0.5rem; }
    .sector-chip { padding: 8px 16px; font-size: 0.8rem; }

    .stat-big { padding: 1.8rem 1.2rem 1.5rem; }
    .stat-big__number { font-size: clamp(2.5rem, 10vw, 3.5rem) !important; }

    .why-cta .btn-yellow-pulse { width: 100%; justify-content: center; }
}


/* Letter-by-letter title reveal */
.svc-letter-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.3;
}

.svc-letter {
    display: inline-block;
    transform: translateY(108%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-letter.revealed {
    transform: translateY(0);
}

/* ============================================================
   WHY-US — AOS ANIMATION BASE (cards fade-up via data-aos)
   ============================================================ */
.why-us .container { position: relative; z-index: 1; }

/* ============================================================
   WORD-BY-WORD SCROLL ANIMATION
   ============================================================ */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.15;
}

.word-inner {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.5s ease;
}

.word-inner.revealed {
    transform: translateY(0);
    opacity: 1;
}

/* Label fade-up animation */
.anim-label {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-label.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   PALETTE — PURPLE + SKY (BRANDBOOK 2026)
   Override all teal (#004a55) → purple (#39003d) / sky (#bee6fc)
   ============================================================ */

/* Updated shadow & border tokens */
:root {
    --border:     rgba(57, 0, 61, 0.12);
    --shadow-sm:  0 4px 20px rgba(57, 0, 61, 0.09);
    --shadow-md:  0 8px 40px rgba(57, 0, 61, 0.13);
}

/* Base links */
a         { color: var(--purple); }
a:hover   { color: #5a0066; }

/* Button — outline variant */
.btn-outline               { color: var(--purple); border-color: var(--purple); }
.btn-outline:hover         { background: var(--purple); color: var(--white); box-shadow: 0 8px 32px rgba(57,0,61,0.28); }

/* Section labels & title accents */
.section-label             { color: var(--teal); }
.section-title em          { color: var(--purple); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Marquee dot */
.marquee-dot               { color: var(--purple) !important; }

/* Hero — swap teal glow for sky glow */
.hero::before {
    background:
        radial-gradient(ellipse 55% 70% at 85% 40%, rgba(190,230,252,0.07) 0%, transparent 65%),
        radial-gradient(ellipse 35% 35% at  5% 90%, rgba(190,230,252,0.04) 0%, transparent 55%);
}

/* Formula — teal oscuro premium */
.formula                   { background: var(--teal); }
.formula::before           { display: block; background: radial-gradient(circle, rgba(190,230,252,0.08) 0%, transparent 65%); }
.formula::after            { display: block; background: radial-gradient(circle, rgba(232,213,0,0.05) 0%, transparent 65%); }

/* About — stat cards */
.stat-card::after          { background: linear-gradient(90deg, var(--purple), var(--sky)); }
.stat-card--dark           { background: var(--purple); border-color: transparent; }
.stat-number               { color: var(--purple); }
.stat-suffix               { color: var(--purple); }
.stat-infinity             { color: var(--purple); }

/* Sectors — overrides handled in the main sectors block above */

/* Contact — morado cierre poderoso */
.contact                   { background: var(--purple); }
.contact::before           { display: block; background: radial-gradient(circle, rgba(190,230,252,0.07) 0%, transparent 65%); }

/* Form fields — purple-tinted borders */
.form-group input,
.form-group textarea,
.form-group select         { border-color: rgba(57,0,61,0.15); }
.checkmark                 { border-color: rgba(57,0,61,0.28); }
.checkbox-label:hover .checkmark            { border-color: var(--purple); }
.checkbox-label input:checked ~ .checkmark { background: var(--purple); border-color: var(--purple); }
.checkbox-label a          { color: var(--purple); }


/* ============================================================
   SERVICE CARD — VIDEO ZONE
   ============================================================ */
.svc-video-wrap {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.6rem;
    flex-shrink: 0;
    background: rgba(57,0,61,0.07);
}

/* Placeholder background (shows when no video src) */
.svc-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(57,0,61,0.13) 0%, rgba(57,0,61,0.05) 100%);
    transition: background 0.4s ease;
}
.svc-card:hover .svc-video-placeholder {
    background: linear-gradient(140deg, rgba(57,0,61,0.08) 0%, rgba(57,0,61,0.03) 100%);
}
.svc-video-placeholder > i {
    font-size: 4.5rem;
    color: rgba(57,0,61,0.16);
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), color 0.4s ease;
}
.svc-card:hover .svc-video-placeholder > i {
    transform: scale(1.12);
    color: rgba(57,0,61,0.1);
}

/* HTML5 video element */
.svc-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.svc-card:hover .svc-video { transform: scale(1.06); }

/* Num + icon bar overlaid on video top */
.svc-video-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(190,230,252,0.6) 0%, transparent 100%);
}

/* Centered play button */
.svc-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 1rem;
    padding-left: 4px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(57,0,61,0.25);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
                background 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
}
.svc-card:hover .svc-play-btn {
    transform: translate(-50%, -50%) scale(1.14);
    background: var(--white);
    box-shadow: 0 8px 28px rgba(57,0,61,0.35);
}
.svc-video-wrap.is-playing .svc-play-btn {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.85);
}
.svc-video-wrap.is-playing:hover .svc-play-btn {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1.05);
}


/* Footer — sky/celeste background, purple text */
.footer                    { background: var(--sky); }
.footer-top                { border-bottom-color: rgba(57,0,61,0.15); }
.footer-logo-img           { filter: none; opacity: 0.88; }
.footer-logo-img:hover     { opacity: 1; }
.footer-brand p            { color: rgba(57,0,61,0.58); }
.footer-brand strong       { color: rgba(57,0,61,0.85); }
.footer-column h4          { color: rgba(57,0,61,0.42); }
.footer-column a           { color: rgba(57,0,61,0.65); }
.footer-column a:hover     { color: var(--purple); }
.footer-bottom p           { color: rgba(57,0,61,0.42); }


/* Tarjeta amarilla: texto oscuro */
.svc-card--yellow .svc-num              { color: rgba(41,41,41,0.35); }
.svc-card--yellow .svc-icon             { background: rgba(41,41,41,0.10); color: #292929; }
.svc-card--yellow .svc-body h3          { color: #292929; }
.svc-card--yellow .svc-body p           { color: rgba(41,41,41,0.62); }
.svc-card--yellow .svc-list li          { color: rgba(41,41,41,0.70); }
.svc-card--yellow .svc-list li::before  { background: #292929; opacity: 0.4; }
.svc-card--yellow .svc-cta             { background: #292929; color: #e8d500; }
.svc-card--yellow .svc-cta:hover       { background: #004a55; color: #ffffff; }

/* Tarjetas oscuras: texto blanco/amarillo */
.svc-card--teal .svc-num,
.svc-card--charcoal .svc-num,
.svc-card--purple .svc-num             { color: rgba(255,255,255,0.30); }

.svc-card--teal .svc-icon              { background: rgba(255,255,255,0.10); color: #e8d500; }
.svc-card--charcoal .svc-icon          { background: rgba(255,255,255,0.08); color: #e8d500; }
.svc-card--purple .svc-icon            { background: rgba(232,213,0,0.12);   color: #e8d500; }

.svc-card--teal .svc-body h3,
.svc-card--charcoal .svc-body h3,
.svc-card--purple .svc-body h3         { color: #ffffff; }

.svc-card--teal .svc-body p,
.svc-card--charcoal .svc-body p,
.svc-card--purple .svc-body p          { color: rgba(255,255,255,0.55); }

.svc-card--teal .svc-list li,
.svc-card--charcoal .svc-list li,
.svc-card--purple .svc-list li         { color: rgba(255,255,255,0.60); }

.svc-card--teal .svc-list li::before,
.svc-card--charcoal .svc-list li::before,
.svc-card--purple .svc-list li::before { background: #e8d500; }

.svc-card--teal .svc-cta              { background: #e8d500; color: #292929; }
.svc-card--teal .svc-cta:hover        { background: #ffffff; color: #004a55; }
.svc-card--charcoal .svc-cta          { background: #e8d500; color: #292929; }
.svc-card--charcoal .svc-cta:hover    { background: #ffffff; color: #292929; }
.svc-card--purple .svc-cta            { background: #e8d500; color: #292929; }
.svc-card--purple .svc-cta:hover      { background: #ffffff; color: #39003d; }

.svc-card:hover .svc-icon             { transform: rotate(-8deg) scale(1.1); }

/* ============================================================
   CASOS REALES
   ============================================================ */
.cases {
    background: var(--charcoal);
    padding: 7rem 0 8rem;
}

.cases-header {
    margin-bottom: 3.5rem;
}

.cases-header .section-label {
    color: rgba(232,213,0,0.65);
}

.cases-header .section-title {
    color: var(--white);
}

.cases-header .section-title em {
    color: var(--yellow);
    text-decoration-color: rgba(232,213,0,0.4);
}

.cases-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: stretch;
}

/* — Tarjeta principal — */
.case-card--featured {
    position: relative;
    background:
        linear-gradient(
            to top,
            rgba(0,30,38,0.95) 0%,
            rgba(0,50,60,0.75) 45%,
            rgba(0,74,85,0.35) 100%
        ),
        url('../images/armenia-plaza-drone.jpg') 38% 62% / cover no-repeat;
    border-radius: 28px;
    overflow: hidden;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px;
    transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.4s ease;
}

.case-card--featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0,74,85,0.55);
}

.case-card--featured:hover .case-bg-watermark {
    opacity: 0.4;
}

.case-bg-watermark {
    position: absolute;
    bottom: -10px;
    right: -20px;
    font-family: var(--font-titulo);
    font-size: clamp(5rem, 11vw, 9.5rem);
    font-weight: 700;
    color: rgba(255,255,255,0.07);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.4s ease;
}

.case-card__inner {
    position: relative;
    z-index: 2;
}

.case-top-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.case-label-tag {
    font-family: var(--font-texto);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.case-live {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-texto);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 0.04em;
}

.case-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(232,213,0,0.5); }
    50%       { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 6px rgba(232,213,0,0); }
}

.case-name {
    font-family: var(--font-titulo);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.2rem;
}

.case-desc {
    font-family: var(--font-texto);
    font-size: 0.97rem;
    color: rgba(255,255,255,0.68);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 580px;
}

.case-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.case-services span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-texto);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    background: rgba(190,230,252,0.12);
    color: var(--sky);
    border: 1px solid rgba(190,230,252,0.22);
    transition: background 0.25s ease, color 0.25s ease;
}

.case-card--featured:hover .case-services span {
    background: rgba(190,230,252,0.2);
}

.case-ig-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.6rem;
    padding: 9px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(190,230,252,0.30);
    border-radius: var(--radius-pill);
    color: var(--sky);
    font-family: var(--font-texto);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.case-ig-link:visited {
    color: var(--sky);
}
.case-ig-link i { font-size: 1rem; }
.case-ig-link:hover,
.case-ig-link:focus {
    background: rgba(190,230,252,0.15);
    border-color: var(--sky);
    color: var(--sky);
    transform: translateY(-2px);
}
.case-ig-link:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
}

/* — Tarjeta secundaria — */
.case-card--next {
    background: var(--yellow);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.4s ease;
}

.case-card--next:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(232,213,0,0.25);
}

.case-next__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.case-next__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(41,41,41,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--charcoal);
}

.case-next__text {
    font-family: var(--font-texto);
    font-size: 1rem;
    color: rgba(41,41,41,0.65);
    line-height: 1.6;
    margin: 0;
}

.case-next__text strong {
    color: var(--charcoal);
    font-weight: 700;
    display: block;
    font-size: 1.1rem;
}

.case-next__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-titulo);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--charcoal);
    background: rgba(41,41,41,0.1);
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.25s ease, gap 0.25s ease;
}

.case-next__cta:hover {
    background: rgba(41,41,41,0.18);
    color: var(--charcoal);
    gap: 12px;
}

@media (max-width: 900px) {
    .cases-grid { grid-template-columns: 1fr; }
    .case-card--featured { min-height: 380px; padding: 2.5rem; }
    .case-card--next { min-height: 220px; }
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    animation: wab-bounce 2.8s ease-in-out 1.5s infinite;
}

.whatsapp-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 36px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.18);
    color: #fff;
}

.whatsapp-fab__tooltip {
    position: absolute;
    right: 72px;
    background: var(--charcoal);
    color: #fff;
    font-family: var(--font-texto);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 100px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-fab__tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--charcoal);
    border-right: 0;
}

.whatsapp-fab:hover .whatsapp-fab__tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes wab-bounce {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .whatsapp-fab { bottom: 20px; right: 16px; width: 54px; height: 54px; font-size: 1.55rem; }
}

/* ============================================================
   PÁGINAS INTERNAS — header de sección
   ============================================================ */
.page-header {
    background: var(--purple);
    padding: 9rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0,74,85,0.45) 0%, transparent 65%),
        radial-gradient(ellipse 30% 40% at 10% 80%, rgba(190,230,252,0.07) 0%, transparent 55%);
    pointer-events: none;
}
.page-header::after {
    content: '';
    position: absolute;
    inset: -40px;
    background-image: radial-gradient(circle, rgba(190,230,252,0.10) 1.2px, transparent 1.2px);
    background-size: 30px 30px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.page-header .container { position: relative; z-index: 2; }

.page-header .section-label { color: rgba(240,238,233,0.65); margin-bottom: 0.9rem; display: block; }
.page-header__title {
    font-family: var(--font-texto);
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 1rem;
}
@keyframes em-shine {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes em-underline-sweep {
    0%   { transform: scaleX(0); transform-origin: left;  opacity: 1; }
    40%  { transform: scaleX(1); transform-origin: left;  opacity: 1; }
    60%  { transform: scaleX(1); transform-origin: right; opacity: 1; }
    100% { transform: scaleX(0); transform-origin: right; opacity: 0; }
}

.page-header__title em {
    font-style: italic;
    position: relative;
    display: inline-block;
    padding-right: 0.12em;
    background: linear-gradient(
        90deg,
        var(--yellow)  0%,
        var(--yellow)  35%,
        #fffaaa        50%,
        var(--yellow)  65%,
        var(--yellow)  100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: em-shine 3.5s linear infinite;
}
.page-header__title em::after {
    content: '';
    position: absolute;
    bottom: 0.06em;
    left: 0; right: 0;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
    animation: em-underline-sweep 3.5s ease-in-out infinite;
}
.page-header__sub {
    font-family: var(--font-texto);
    font-size: 1.05rem;
    color: rgba(240,238,233,0.72);
    max-width: 520px;
    line-height: 1.65;
    margin: 0;
}

/* Nav link activo en páginas internas */
.nav-link.nav-current span::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
    margin-top: 2px;
}

/* page-header mobile — cubierto en el bloque responsive principal */
