/* ==========================================================================
   Guerreros.cl — Hoja de estilos de la landing page
   Paleta y tipografías del sitio original:
   fondo #020D24 · primario #3156A3 · verde #6BB651 · lima #C9EB55
   acento #ECC021 · topbar #182A50 · footer #011640
   ========================================================================== */

section[id] {
    scroll-margin-top: 110px;
}

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --c-primary: #3156A3;
    --c-primary-dark: #011640;
    --c-topbar: #182A50;
    --c-secondary: #6BB651;
    --c-lime: #C9EB55;
    --c-accent: #ECC021;
    --c-yellow: #FFDE01;
    --c-bg: #020D24;
    --c-panel: #051739;
    --c-text: #E5E5E5;
    --c-muted: #7A7A7A;
    --c-white: #FFFFFF;
    --c-dark: #111013;

    --f-display: "Racing Sans One", "Arial Black", sans-serif;
    --f-head: "Sora", system-ui, sans-serif;
    --f-body: "Inter", system-ui, sans-serif;
    --f-alt: "Montserrat", system-ui, sans-serif;

    --container: 1140px;
    --gutter: 4%;
    --radius: 16px;
    --radius-lg: 22px;

    --ease-strike: cubic-bezier(.16, .84, .44, 1);
    --ease-snap: cubic-bezier(.34, 1.56, .64, 1);

    --header-topbar: 40px;
    --header-nav: 90px;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, .35);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--c-lime); color: var(--c-dark); }

:focus-visible {
    outline: 3px solid var(--c-lime);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 999;
    padding: 12px 20px;
    background: var(--c-lime);
    color: var(--c-dark);
    font-family: var(--f-head);
    font-weight: 600;
    border-radius: 0 0 10px 10px;
    transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.icon--sm { width: .85em; height: .85em; }

/* --------------------------------------------------------------------------
   3. Botones
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 35px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    letter-spacing: .01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s var(--ease-snap), background-color .25s ease,
                color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(.96); }

.btn--ghost {
    background: transparent;
    border-color: var(--c-white);
    color: var(--c-white);
}
.btn--ghost:hover { background: var(--c-white); color: var(--c-dark); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }

.btn--solid {
    background: var(--c-lime);
    color: var(--c-dark);
}
.btn--solid:hover { background: var(--c-white); box-shadow: 0 14px 34px rgba(201, 235, 85, .28); }

.btn--primary { background: var(--c-primary); color: var(--c-white); }
.btn--primary:hover { background: var(--c-secondary); color: var(--c-primary-dark); }

.btn--accent { background: var(--c-accent); color: var(--c-dark); }
.btn--accent:hover { background: var(--c-secondary); color: var(--c-primary-dark); }

.btn--dark { background: var(--c-primary-dark); color: #FFF7F1; }
.btn--dark:hover { background: var(--c-secondary); color: var(--c-primary-dark); }

.btn--sm { padding: 14px 26px; font-size: 14px; }

/* --------------------------------------------------------------------------
   4. Barra de progreso de scroll ("cinturón")
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 200;
    background: transparent;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--c-secondary), var(--c-lime) 55%, var(--c-accent));
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    overflow: visible;
}

.topbar {
    background: var(--c-topbar);
    min-height: var(--header-topbar);
    box-shadow: 0 2px 30px rgba(0, 0, 0, .3);
    transition: min-height .35s var(--ease-strike), opacity .3s ease;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: var(--header-topbar);
    padding-inline: 10%;
    width: 100%;
    max-width: 1600px;
}
.topbar__contact {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.topbar__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-style: italic;
    color: var(--c-accent);
    transition: color .25s ease;
}
.topbar__contact a .icon { color: var(--c-secondary); font-size: 15px; transition: transform .25s ease; }
.topbar__contact a:hover { color: var(--c-secondary); }
.topbar__contact a:hover .icon { transform: scale(1.15); }

.topbar__subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-display);
    font-size: 17px;
    color: var(--c-accent);
    transition: color .25s ease, letter-spacing .25s ease;
}
.topbar__subscribe:hover { color: var(--c-secondary); letter-spacing: .04em; }

.navbar {
    background: var(--c-white);
    min-height: var(--header-nav);
    box-shadow: 0 0 30px rgba(0, 0, 0, .3);
    transition: min-height .35s var(--ease-strike), box-shadow .3s ease;
    z-index: 10000;
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-nav);
    padding-inline: 10%;
    width: 100%;
    max-width: 1600px;
}
.navbar__brand { display: inline-flex; align-items: center; }
.navbar__brand img {
    width: 170px;
    height: 56px;
    object-fit: contain;
    object-position: center;
    transition: transform .3s var(--ease-snap);
}
.navbar__brand:hover img { transform: scale(1.04); }

.navbar__wa {
    display: none;
    color: var(--c-secondary);
    font-size: 26px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav__link {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    font-family: var(--f-display);
    font-size: 18px;
    color: var(--c-primary);
    transition: color .25s ease;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s var(--ease-strike);
}
.nav__link:hover { color: var(--c-yellow); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav__link.is-active { color: var(--c-secondary); }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.burger__line {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--c-primary);
    border-radius: 3px;
    transition: transform .3s var(--ease-snap), opacity .2s ease, background .2s ease;
}
.burger[aria-expanded="true"] .burger__line { background: var(--c-secondary); }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Estado compacto al hacer scroll */
.site-header.is-compact .topbar { min-height: 0; height: 0; opacity: 0; }
.site-header.is-compact .navbar { min-height: 70px; }
.site-header.is-compact .navbar__inner { min-height: 70px; }
.site-header.is-compact .navbar__brand img { width: 145px; height: 48px; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: max(560px, 100vh);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--c-bg); }
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.1s ease;
}
.hero__slide.is-active {
    opacity: 1;
    animation: kenburns 9s ease-out forwards;
}
@keyframes kenburns {
    from { transform: scale(1.12) translate3d(0, 0, 0); }
    to   { transform: scale(1) translate3d(0, -1.5%, 0); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(2, 13, 36, .78) 0%, rgba(2, 13, 36, .35) 42%, rgba(2, 13, 36, .92) 100%),
        linear-gradient(90deg, rgba(2, 13, 36, .65) 0%, rgba(2, 13, 36, .12) 60%);
}

.hero__inner {
    display: flex;
    justify-content: flex-end;
    padding-top: 16vh;
    padding-bottom: clamp(90px, 14vh, 170px);
}
.hero--align-left .hero__inner { justify-content: flex-start; }

.hero__content {
    max-width: 760px;
    text-align: right;
}
.hero--align-left .hero__content { text-align: left; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px 16px;
    border: 1px solid rgba(201, 235, 85, .45);
    border-radius: 50px;
    background: rgba(2, 13, 36, .45);
    backdrop-filter: blur(4px);
    font-family: var(--f-head);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--c-lime);
}
.hero__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-secondary);
    box-shadow: 0 0 0 0 rgba(107, 182, 81, .7);
    animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(107, 182, 81, .7); }
    70%  { box-shadow: 0 0 0 12px rgba(107, 182, 81, 0); }
    100% { box-shadow: 0 0 0 0 rgba(107, 182, 81, 0); }
}

.hero__title {
    font-family: var(--f-display);
    font-size: clamp(44px, 8.2vw, 86px);
    line-height: 1.06;
    color: var(--c-secondary);
    text-shadow: 0 12px 40px rgba(0, 0, 0, .55);
    margin-bottom: 18px;
}
.hero__title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: .08em;
    margin-bottom: -.08em;
}
.hero__title .word__inner {
    display: inline-block;
    transform: translateY(115%);
    transition: transform .85s var(--ease-strike);
    transition-delay: var(--wd, 0ms);
}
.hero__title.is-ready .word__inner { transform: translateY(0); }

.hero__subtitle {
    font-family: var(--f-body);
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 300;
    line-height: 1.5;
    color: #E5E5E5;
    margin: 0 0 6px auto;
    max-width: 520px;
}
.hero--align-left .hero__subtitle { margin-left: 0; }

.hero__text {
    font-size: 15px;
    color: rgba(229, 229, 229, .78);
    max-width: 520px;
    margin: 0 0 26px auto;
}
.hero--align-left .hero__text { margin-left: 0; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 26px;
}
.hero--align-left .hero__actions { justify-content: flex-start; }

.hero__scroll {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-white);
    font-family: var(--f-head);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .85;
    transition: opacity .25s ease, transform .25s ease;
}
.hero__scroll:hover { opacity: 1; transform: translateX(-50%) translateY(4px); }
.hero__scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 14px;
    display: grid;
    place-items: start center;
    padding-top: 7px;
}
.hero__scroll-mouse span {
    width: 4px;
    height: 7px;
    border-radius: 3px;
    background: var(--c-lime);
    animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* Franja de cinturón */
.belt { display: flex; height: 7px; }
.belt__stripe { flex: 1; transform: skewX(-30deg); }
.belt__stripe--lime { background: var(--c-lime); flex: 4; }
.belt__stripe--accent { background: var(--c-accent); flex: 2; }
.belt__stripe--primary { background: var(--c-primary); flex: 3; }
.belt__stripe--secondary { background: var(--c-secondary); flex: 1; }

/* --------------------------------------------------------------------------
   7. Secciones genéricas
   -------------------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(32px, 5vw, 56px);
    flex-wrap: wrap;
}

.section-title {
    position: relative;
    display: inline-block;
    font-family: var(--f-display);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    color: var(--c-lime);
    text-transform: capitalize;
    padding-bottom: 16px;
    margin-bottom: clamp(30px, 4vw, 46px);
}
.section-head .section-title { margin-bottom: 0; }
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-secondary));
    transform: skewX(-24deg) scaleX(0);
    transform-origin: left center;
    transition: transform .9s var(--ease-strike) .18s;
}
.section-title--center { display: block; text-align: center; }
.section-title--center::after { left: 50%; transform: translateX(-50%) skewX(-24deg) scaleX(0); transform-origin: center; }
.section-title--center.is-visible::after { transform: translateX(-50%) skewX(-24deg) scaleX(1); }
.section-title.is-visible::after { transform: skewX(-24deg) scaleX(1); }
.no-js .section-title::after { transform: skewX(-24deg) scaleX(1); }
.no-js .section-title--center::after { transform: translateX(-50%) skewX(-24deg) scaleX(1); }

.section-lead {
    font-size: clamp(15px, 1.4vw, 17px);
    color: rgba(229, 229, 229, .8);
    max-width: 560px;
    margin-top: 14px;
}

/* --------------------------------------------------------------------------
   8. Sobre nosotros
   -------------------------------------------------------------------------- */
.section--about {
    background:
        radial-gradient(1000px 480px at 8% 0%, rgba(49, 86, 163, .22), transparent 65%),
        radial-gradient(760px 420px at 95% 100%, rgba(107, 182, 81, .12), transparent 70%);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 5%, 60px);
    margin-top: clamp(24px, 3vw, 40px);
}

.about__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(16px, 2vw, 30px);
    align-items: start;
    padding: clamp(20px, 2.4vw, 34px);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
    transition: transform .4s var(--ease-strike), border-color .3s ease, background .3s ease;
}
.about__item:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 192, 33, .45);
    background: linear-gradient(160deg, rgba(236, 192, 33, .08), rgba(255, 255, 255, .015));
}

.about__number {
    font-family: var(--f-head);
    font-weight: 100;
    font-size: clamp(64px, 7.8vw, 132px);
    line-height: .92;
    color: var(--c-accent);
    -webkit-text-stroke: 1px #000;
    text-shadow: 0 0 10px rgba(0, 0, 0, .3);
    letter-spacing: -.03em;
    user-select: none;
}

.about__heading {
    font-family: var(--f-head);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 400;
    color: var(--c-white);
    text-transform: capitalize;
    margin-bottom: 10px;
}
.about__lead {
    font-family: var(--f-head);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 12px;
}
.about__text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--c-text);
    text-align: justify;
    margin: 0;
}

/* --------------------------------------------------------------------------
   9. Equipo
   -------------------------------------------------------------------------- */
.section--team {
    background: linear-gradient(180deg, rgba(1, 22, 64, .55), rgba(2, 13, 36, 0) 45%);
}

.team { display: flex; flex-direction: column; }

.member {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(30px, 4vw, 52px) 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.member:last-child { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.member:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); }
.member:nth-child(even) .member__media { order: 2; }
.member:nth-child(even) .member__body { text-align: right; }
.member:nth-child(even) .member__index { margin-left: auto; }

.member__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--c-panel);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 3 / 4;
}
.member__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-strike), filter .5s ease;
    filter: saturate(.92) contrast(1.04);
}
.member:hover .member__media img { transform: scale(1.06); filter: saturate(1.05) contrast(1.06); }
.member__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(1, 22, 64, .75));
    pointer-events: none;
}
.member__badge {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 2;
    font-family: var(--f-display);
    font-size: 26px;
    color: var(--c-lime);
    text-shadow: 0 4px 14px rgba(0, 0, 0, .7);
    letter-spacing: .08em;
}

.member__body { position: relative; }
.member__index {
    display: block;
    font-family: var(--f-head);
    font-weight: 100;
    font-size: clamp(48px, 5vw, 82px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(236, 192, 33, .75);
    margin-bottom: 6px;
}
.member__name {
    font-family: var(--f-head);
    font-size: clamp(24px, 2.6vw, 34px);
    color: var(--c-white);
    margin-bottom: 6px;
}
.member__role {
    display: inline-block;
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 16px;
}
.member__text {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--c-text);
    text-align: justify;
    margin: 0;
}

/* --------------------------------------------------------------------------
   10. Clases / técnicas
   -------------------------------------------------------------------------- */
.section--classes {
    background:
        linear-gradient(180deg, rgba(2, 13, 36, 0), rgba(49, 86, 163, .16) 50%, rgba(2, 13, 36, 0));
}

.classes__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 34px);
}

.tech {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    transition: transform .45s var(--ease-strike), box-shadow .45s ease;
}
.tech:hover { transform: translateY(-10px); box-shadow: 0 34px 70px rgba(0, 0, 0, .5); }

.tech__media {
    position: relative;
    overflow: hidden;
    background: var(--c-panel);
}
.tech__media img {
    width: 100%;
    aspect-ratio: 1150 / 1450;
    object-fit: cover;
    object-position: center 22%;
    transition: transform .9s var(--ease-strike), filter .5s ease;
}
.tech:hover .tech__media img { transform: scale(1.07); }

.tech__kanji {
    position: absolute;
    left: 16px;
    top: 10px;
    font-family: var(--f-display);
    font-size: clamp(40px, 4vw, 64px);
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 6px 20px rgba(0, 0, 0, .8);
    line-height: 1;
}

.tech__panel {
    position: relative;
    flex: 1;
    padding: clamp(22px, 4%, 34px) clamp(22px, 9%, 44px) clamp(24px, 4%, 36px) clamp(20px, 7%, 32px);
    background: var(--c-primary);
    z-index: 2;
}
.tech__title {
    font-family: var(--f-head);
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 400;
    color: var(--c-white);
    text-transform: capitalize;
    margin-bottom: 10px;
}
.tech__text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
    color: #FFFFFF;
    text-align: justify;
    margin: 0;
}
.tech__line {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 100%;
    background: var(--c-lime);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .5s var(--ease-strike);
}
.tech:hover .tech__line { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   11. Galería
   -------------------------------------------------------------------------- */
.section--gallery { background: linear-gradient(180deg, rgba(1, 22, 64, .35), transparent 30%); }

.gallery__count {
    font-family: var(--f-display);
    font-size: clamp(28px, 3vw, 44px);
    color: rgba(236, 192, 33, .35);
    margin: 0;
    line-height: 1;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 12px;
}
.gallery__item {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--c-panel);
    grid-row: span 2;
    cursor: zoom-in;
    animation: none;
}
.gallery__item:nth-child(8n + 1) { grid-column: span 2; grid-row: span 3; }
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-strike), filter .5s ease;
    filter: saturate(.95);
}
.gallery__item:hover img { transform: scale(1.08); filter: saturate(1.1); }
.gallery__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(1, 22, 64, .1), rgba(1, 22, 64, .72));
    color: var(--c-white);
    font-size: 34px;
    opacity: 0;
    transition: opacity .35s ease;
}
.gallery__overlay .icon { transform: scale(.6); transition: transform .4s var(--ease-snap); }
.gallery__item:hover .gallery__overlay,
.gallery__item:focus-visible .gallery__overlay { opacity: 1; }
.gallery__item:hover .gallery__overlay .icon { transform: scale(1); }

/* Fotos ocultas hasta pulsar «Mostrar más». */
.gallery__item.is-hidden { display: none; }
.gallery__more {
    display: flex;
    justify-content: center;
    margin-top: clamp(24px, 4vw, 40px);
}
.gallery__more-count {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    margin-left: 10px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(201, 235, 85, .14);
    color: var(--c-lime);
    font-size: 13px;
    font-weight: 700;
    vertical-align: middle;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 13, 36, .93);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}
.lightbox__stage {
    position: relative;
    margin: 0;
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: lbIn .35s var(--ease-snap);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lightbox__img {
    max-width: min(1100px, 92vw);
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
    justify-self: center;
}
.lightbox__caption {
    text-align: center;
    font-family: var(--f-head);
    font-size: 15px;
    color: var(--c-text);
}
.lightbox__btn {
    position: absolute;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--c-white);
    font-size: 20px;
    transition: background .25s ease, transform .25s var(--ease-snap), border-color .25s;
    backdrop-filter: blur(6px);
}
.lightbox__btn:hover { background: var(--c-secondary); border-color: var(--c-secondary); transform: scale(1.08); }
.lightbox__btn--close { top: 4%; right: 4%; }
.lightbox__btn--prev { left: 3%; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 3%; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__btn--next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__counter {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: var(--f-head);
    font-size: 14px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .7);
}

/* --------------------------------------------------------------------------
   12. Testimonios
   -------------------------------------------------------------------------- */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 34px);
    margin-top: clamp(26px, 4vw, 46px);
}

.testimonial {
    position: relative;
    margin: 0;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(49, 86, 163, .28), rgba(255, 255, 255, .02));
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform .4s var(--ease-strike), border-color .3s ease;
}
.testimonial:hover { transform: translateY(-8px); border-color: rgba(107, 182, 81, .5); }
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 6px;
    right: 22px;
    font-family: var(--f-display);
    font-size: 92px;
    line-height: 1;
    color: rgba(201, 235, 85, .18);
    pointer-events: none;
}

.testimonial__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.testimonial__logo { width: 58px; height: auto; }
.testimonial__rating { display: flex; align-items: center; gap: 10px; }
.stars { display: inline-flex; gap: 3px; font-size: 16px; line-height: 1; color: rgba(255, 255, 255, .3); }
.star--on { color: var(--c-accent); }
.testimonial__score { font-family: var(--f-head); font-size: 13px; color: var(--c-white); }

.testimonial__quote {
    margin: 0;
    font-size: 15px;
    font-weight: 200;
    line-height: 1.65;
    color: var(--c-text);
    flex: 1;
}

/* Textos largos: recortados con enlace «Mostrar más». */
.testimonial__quote.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    line-clamp: 8;
    overflow: hidden;
    flex: 0 0 auto;
}
.testimonial__quote.is-open {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}
.testimonial__more {
    align-self: flex-start;
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--c-lime);
    border-bottom: 1px dashed rgba(201, 235, 85, .6);
    transition: color .2s ease, border-color .2s ease;
}
.testimonial__more:hover,
.testimonial__more:focus-visible {
    color: var(--c-accent);
    border-color: var(--c-accent);
}
.testimonial__author { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }
.testimonial__name { font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--c-white); }
.testimonial__role { font-size: 13px; color: var(--c-secondary); }

/* --------------------------------------------------------------------------
   13. Mapa
   -------------------------------------------------------------------------- */
.section--map { position: relative; line-height: 0; }
.map__frame {
    width: 100%;
    height: clamp(320px, 45vh, 460px);
    border: 0;
    display: block;
    filter: grayscale(1) invert(.92) contrast(.86) sepia(.16) hue-rotate(178deg) saturate(.72);
}

/* --------------------------------------------------------------------------
   14. Newsletter (franja amarilla)
   -------------------------------------------------------------------------- */
.section--newsletter {
    background: var(--c-accent);
    color: var(--c-primary-dark);
    padding: clamp(48px, 6vw, 76px) 0;
    position: relative;
    overflow: hidden;
}
.section--newsletter::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .16) 0 26px, transparent 26px 62px);
    opacity: .5;
    pointer-events: none;
}
.newsletter__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}
.newsletter__title {
    font-family: var(--f-alt);
    font-weight: 300;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.25;
    text-transform: capitalize;
    color: var(--c-primary-dark);
    margin-bottom: 12px;
}
.newsletter__lead { font-size: 16px; color: rgba(1, 22, 64, .82); margin: 0; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--c-primary-dark); color: #FFFFFF; }
.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: clamp(44px, 6vw, 70px) 0 40px;
}
.footer__col {
    padding: 0 clamp(18px, 3vw, 50px);
    border-left: 1px solid rgba(255, 247, 241, .22);
}
.footer__col:first-child { border-left: 0; padding-left: 0; }

.footer__title {
    font-family: var(--f-alt);
    font-weight: 300;
    font-size: 16px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 18px;
}
.footer__quote {
    font-family: var(--f-alt);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: 26px;
}
.footer__heading {
    font-family: var(--f-alt);
    font-weight: 300;
    font-size: 16px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 22px;
}

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-family: var(--f-alt); font-weight: 300; font-size: 16px; }
.contact-list .icon { font-size: 18px; color: rgba(255, 255, 255, .75); transition: color .25s ease, transform .25s ease; }
.contact-list a { transition: color .25s ease; }
.contact-list li:hover .icon { color: var(--c-lime); transform: scale(1.12); }
.contact-list a:hover { color: var(--c-lime); }

.footer__payment { width: min(240px, 70%); margin-bottom: 26px; filter: brightness(1.05); }
.footer__social { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid rgba(255, 247, 241, .35);
    border-radius: 50px;
    font-family: var(--f-alt);
    font-size: 14px;
    font-weight: 300;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-snap);
}
.social-link:hover { background: var(--c-lime); color: var(--c-primary-dark); border-color: var(--c-lime); transform: translateY(-3px); }
.social-link .icon { font-size: 17px; }

.footer__bottom { border-top: 1px solid rgba(255, 247, 241, .18); padding: 22px 0; }
.footer__bottom p { margin: 0; font-family: var(--f-alt); font-weight: 300; font-size: 14px; color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------------------
   16. Modal de contacto
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 32px);
}
.modal[hidden] { display: none; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 13, 36, .86);
    backdrop-filter: blur(7px);
    border: 0;
    cursor: pointer;
}
.modal__panel {
    position: relative;
    width: min(600px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: clamp(28px, 4vw, 44px);
    background: linear-gradient(160deg, var(--c-panel), #02102c);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
    animation: modalIn .45s var(--ease-snap);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    color: var(--c-white);
    font-size: 16px;
    transition: background .25s ease, transform .25s var(--ease-snap);
}
.modal__close:hover { background: var(--c-secondary); transform: rotate(90deg); }

.modal__eyebrow {
    display: block;
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 10px;
}
.modal__title {
    font-family: var(--f-display);
    font-size: clamp(30px, 4vw, 42px);
    color: var(--c-lime);
    text-transform: capitalize;
    margin-bottom: 10px;
}
.modal__lead { font-size: 15px; color: var(--c-text); margin-bottom: 24px; }

.modal__success { text-align: center; padding: 20px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.modal__success p { font-family: var(--f-head); font-size: 17px; color: var(--c-white); margin: 0; }
.modal__success-icon {
    width: 68px;
    height: 68px;
    padding: 18px;
    border-radius: 50%;
    background: var(--c-secondary);
    fill: var(--c-primary-dark);
    animation: pop .5s var(--ease-snap);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* --------------------------------------------------------------------------
   17. Formularios públicos (+ capas de señuelo)
   -------------------------------------------------------------------------- */
.grr-form { display: block; }

/* Campos señuelo: fuera de pantalla, nunca display:none
   (deben enviarse en el POST para detectar bots). */
.grr-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.grr-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.grr-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.grr-field--full { grid-column: 1 / -1; }

.grr-field__label {
    font-family: var(--f-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-primary-dark);
}
.grr-required { color: #C62828; margin-left: 4px; }

.grr-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(1, 22, 64, .21);
    border-radius: 10px;
    color: var(--c-primary);
    font-family: var(--f-alt);
    font-size: 15px;
    font-weight: 300;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.grr-input::placeholder { color: rgba(49, 86, 163, .6); }
.grr-input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(49, 86, 163, .18);
}
textarea.grr-input { resize: vertical; min-height: 118px; }
select.grr-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-primary) 50%), linear-gradient(135deg, var(--c-primary) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.grr-field--error .grr-input { border-color: #C62828; box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
.grr-field__error { margin: 0; font-size: 13px; font-weight: 500; color: #B71C1C; }

.grr-form__title {
    font-family: var(--f-head);
    font-size: 22px;
    color: var(--c-primary-dark);
    margin-bottom: 8px;
}
.grr-form__desc { font-size: 15px; color: rgba(1, 22, 64, .78); margin-bottom: 20px; }

.grr-form__footer { display: flex; flex-direction: column; gap: 12px; }
.grr-submit {
    min-width: 180px;
    background: var(--c-primary-dark);
    color: #FFF7F1;
    border-radius: 0;
    font-family: var(--f-alt);
    font-weight: 300;
    text-transform: capitalize;
    padding: 16px 30px;
}
.grr-submit:hover { background: var(--c-secondary); color: var(--c-primary-dark); }
.grr-submit[disabled] { opacity: .75; cursor: progress; }
.grr-submit__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 247, 241, .35);
    border-top-color: currentColor;
    border-radius: 50%;
    display: none;
    animation: spin .7s linear infinite;
}
.grr-submit.is-loading .grr-submit__spinner { display: inline-block; }
.grr-submit.is-loading .grr-submit__label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.grr-form__status { margin: 0; font-family: var(--f-alt); font-size: 14px; font-weight: 300; min-height: 1.2em; }
.grr-form__status.is-ok { color: #1B5E20; font-weight: 500; }
.grr-form__status.is-error { color: #B71C1C; font-weight: 500; }

/* Versión en línea (newsletter) */
.grr-form--inline .grr-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.grr-form--inline .grr-field { flex: 1 1 190px; }
.grr-form--inline .grr-field__label {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.grr-form--inline .grr-form__footer { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; }
.grr-form--inline .grr-submit { min-width: 160px; }
.grr-form--inline .grr-input { border-radius: 6px; }
.grr-form--inline .grr-submit { border-radius: 6px; }

.form-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: var(--f-alt);
    font-weight: 300;
    margin-bottom: 18px;
}
.form-alert--ok { background: rgba(107, 182, 81, .18); border: 1px solid var(--c-secondary); color: #0d2b06; }
.form-alert--error { background: rgba(198, 40, 40, .14); border: 1px solid rgba(198, 40, 40, .6); color: #7f1010; }
.form-alert__close { font-size: 22px; line-height: 1; opacity: .7; }
.form-alert__close:hover { opacity: 1; }

/* Ajustes de color según el fondo de la sección */
.section--newsletter .grr-field__label { color: var(--c-primary-dark); }
.section--newsletter .grr-form__status.is-ok { color: #0d2b06; }
.modal .grr-field__label { color: var(--c-lime); }
.modal .grr-form__title, .modal .grr-form__desc { color: var(--c-text); }
.modal .grr-form__desc { color: rgba(229, 229, 229, .78); }
.modal .grr-input {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    color: var(--c-white);
    font-family: var(--f-body);
}
.modal .grr-input::placeholder { color: rgba(229, 229, 229, .45); }
.modal .grr-input:focus { background: rgba(255, 255, 255, .1); border-color: var(--c-lime); box-shadow: 0 0 0 4px rgba(201, 235, 85, .16); }
.modal .grr-field__error { color: #FF8A80; }
.modal .grr-required { color: #FF8A80; }
.modal .grr-submit { background: var(--c-lime); color: var(--c-dark); font-family: var(--f-head); font-weight: 600; border-radius: 50px; }
.modal .grr-submit:hover { background: var(--c-white); color: var(--c-dark); }
.modal .grr-form__status.is-ok { color: var(--c-lime); }
.modal .grr-form__status.is-error { color: #FF8A80; }

/* --------------------------------------------------------------------------
   18. Redes flotantes
   -------------------------------------------------------------------------- */
.floating-social {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-social__btn {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    transition: transform .3s var(--ease-snap), filter .3s ease;
}
.floating-social__btn:hover { transform: translateY(-5px) scale(1.06); filter: brightness(1.1); }
.floating-social__btn--ig { background: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 80%, #515BD4); }
.floating-social__btn--wa { background: #25D366; }

/* --------------------------------------------------------------------------
   19. Animaciones de entrada (estilo artes marciales)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transition:
        opacity .8s var(--ease-strike) var(--delay, 0ms),
        transform .8s var(--ease-strike) var(--delay, 0ms),
        filter .8s var(--ease-strike) var(--delay, 0ms);
    will-change: transform, opacity;
}
.reveal--punch  { transform: translate3d(-64px, 0, 0); }
.reveal--kick   { transform: translate3d(64px, 0, 0); }
.reveal--jump   { transform: translate3d(0, 54px, 0) scale(.97); }
.reveal--snap   { transform: scale(.86); transition-timing-function: var(--ease-snap); }
.reveal--sweep  { transform: none; }

.reveal.is-visible { opacity: 1; transform: none; }

/* Sin JavaScript el contenido nunca debe quedar oculto. */
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* --------------------------------------------------------------------------
   19b. Energía deportiva: marquesina, cortes diagonales y cifras
   -------------------------------------------------------------------------- */

/* --- Banda cinética de pilares (cinta en movimiento continuo) ------------ */
.marquee {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--c-primary-dark), var(--c-topbar) 50%, var(--c-primary-dark));
    border-block: 1px solid rgba(201, 235, 85, .28);
    padding: 16px 0;
    /* Corte diagonal que rompe la retícula */
    clip-path: polygon(0 14%, 100% 0, 100% 86%, 0 100%);
    margin-top: -18px;
}
.marquee__group {
    display: inline-flex;
    align-items: center;
    flex: none;
}
.marquee__track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: marquee-slide var(--marquee-duration, 26s) linear infinite;
    will-change: transform;
}
.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding-right: 26px;
}
.marquee__text {
    font-family: var(--f-display);
    font-size: clamp(18px, 2.2vw, 30px);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-lime);
    white-space: nowrap;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .55);
}
.marquee__item:nth-child(even) .marquee__text { color: var(--c-white); }
.marquee__dot {
    width: 10px;
    height: 10px;
    background: var(--c-accent);
    transform: rotate(45deg);
    flex: none;
    box-shadow: 0 0 14px rgba(236, 192, 33, .8);
}
@keyframes marquee-slide {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* --- Banda de cifras con contadores -------------------------------------- */
.stats {
    position: relative;
    padding: clamp(52px, 7vw, 88px) 0;
    background:
        linear-gradient(120deg, rgba(49, 86, 163, .35), rgba(2, 13, 36, .1) 45%, rgba(107, 182, 81, .22));
    /* Corte diagonal en las dos esquinas */
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
    overflow: hidden;
}
.stats__rail {
    position: absolute;
    inset: -40% -10%;
    background: repeating-linear-gradient(
        -58deg,
        rgba(255, 255, 255, .05) 0 2px,
        transparent 2px 26px
    );
    pointer-events: none;
}
.stats__grid {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(22px, 3vw, 40px);
    text-align: center;
}
.stats__item {
    position: relative;
    padding: 6px 10px;
}
.stats__item + .stats__item::before {
    content: "";
    position: absolute;
    left: calc(clamp(22px, 3vw, 40px) / -2);
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(201, 235, 85, .5), transparent);
    transform: skewX(-14deg);
}
.stats__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-family: var(--f-display);
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1;
    color: var(--c-white);
    text-shadow: 0 6px 26px rgba(0, 0, 0, .55);
}
.stats__number { font-variant-numeric: tabular-nums; }
.stats__plus { color: var(--c-accent); font-size: .6em; margin-left: 2px; }
/* Símbolo configurable (% , +, k, pts…) con posición antes o después. */
.stats__sign {
    color: var(--c-accent);
    font-size: .58em;
    line-height: 1;
    letter-spacing: 0;
    align-self: flex-start;
    margin-top: .28em;
}
.stats__sign + .stats__number { margin-left: 3px; }
.stats__number + .stats__sign { margin-left: 3px; }
.stats__label {
    display: block;
    margin-top: 10px;
    font-family: var(--f-head);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-lime);
}

/* --- Cortes diagonales entre secciones ------------------------------------ */
.section--team,
.section--gallery,
.section--testimonials {
    position: relative;
}
.section--team::before,
.section--gallery::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: clamp(30px, 5vw, 64px);
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 18%, 0 100%);
    transform: translateY(-99%);
    pointer-events: none;
}

/* --- Título de sección: el subrayado cinético vive en la sección 7 -------- */

/* --- Tarjetas: hover más marcado ----------------------------------------- */
.tech { isolation: isolate; }
.tech::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(201, 235, 85, .28), transparent 55%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    z-index: 1;
}
.tech:hover::after { opacity: 1; }
.tech__media img { transition: transform .6s var(--ease-strike), filter .4s ease; }
.tech:hover .tech__media img { transform: scale(1.07); filter: saturate(1.1) contrast(1.05); }

.gallery__item { transition: transform .35s var(--ease-strike), box-shadow .35s ease; }
.gallery__item:hover { transform: translateY(-6px) scale(1.02); z-index: 2; box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }

.testimonial { transition: transform .4s var(--ease-strike), border-color .3s ease; }
.testimonial:hover { transform: translateY(-6px); border-color: rgba(201, 235, 85, .5); }

/* --- Botones: barrido de energía ----------------------------------------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .55s var(--ease-strike);
    pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
    .hero__title .word__inner { transform: none !important; }
    .marquee { clip-path: none; }
    .marquee__track { animation: none; }
    .stats { clip-path: none; }
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root { --header-nav: 76px; }

    .topbar__inner, .navbar__inner { padding-inline: 4%; }
    .nav__list { gap: 24px; }
    .nav__link { font-size: 16px; }

    .about__grid { grid-template-columns: 1fr; }
    .classes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .footer__col:nth-child(3) { border-left: 0; padding-left: 0; }
    .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 130px; }
    .newsletter__inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .member,
    .member:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
    .member:nth-child(even) .member__media { order: 0; }
    .member:nth-child(even) .member__body { text-align: left; }
    .member:nth-child(even) .member__index { margin-left: 0; }
    .member__media { max-width: 380px; }
    .member__text, .about__text, .tech__text { text-align: left; }
}

@media (max-width: 767px) {
    :root { --header-nav: 68px; }

    .topbar__contact { gap: 16px; }
    .topbar__contact a { font-size: 13px; }
    .topbar__contact li:nth-child(2) { display: none; }
    .topbar__subscribe { font-size: 15px; }

    .navbar__brand img { width: 155px; height: 44px; }

    .burger { display: flex; }
    .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--c-primary);
        box-shadow: 0 20px 20px rgba(0, 0, 0, .25);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s var(--ease-strike);
        z-index: 999;
    }
    .nav.is-open { max-height: 80vh; overflow-y: auto; -webkit-overflow-scrolling: touch;}
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
    .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .3); }
    .nav__link {
        display: block;
        width: 100%;
        padding: 18px 20px;
        text-align: center;
        color: #FFF9F9;
        font-size: 18px;
    }
    .nav__link::after { display: none; }
    .nav__link:hover { background: var(--c-secondary); color: #FFFFFF; }
    .nav__link--btn { background: none; border: 0; }

    .hero { min-height: max(480px, 92vh); }
    .hero__inner { justify-content: center; padding-top: 20vh; padding-bottom: 110px; }
    .hero__content { text-align: center; max-width: 100%; }
    .hero__subtitle, .hero__text { margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__scroll { left: 50%; transform: translateX(-50%); flex-direction: column; gap: 8px; }
    .hero__scroll:hover { transform: translateX(-50%) translateY(4px); }
    .hero__scroll-label { display: none; }

    .section { padding: 56px 0; }
    .section-title { font-size: 28px; padding-bottom: 12px; }
    .section-head { flex-direction: column; align-items: center; text-align: center; }

    .marquee { clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%); padding: 13px 0; }
    .stats { clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%); padding: 46px 0; }
    .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
    .stats__item + .stats__item::before { display: none; }

    .about__item { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
    .about__text { text-align: left; }
    .about__number { font-size: 92px; }

    .classes__grid { grid-template-columns: minmax(0, 1fr); }
    .tech__media img { aspect-ratio: 4 / 3; object-position: center 25%; }

    .testimonials__grid { grid-template-columns: minmax(0, 1fr); }
    .testimonial::before { font-size: 70px; }

    .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 8px; }
    .gallery__item:nth-child(8n + 1) { grid-column: span 2; grid-row: span 2; }

    .lightbox__btn { width: 44px; height: 44px; font-size: 16px; }
    .lightbox__btn--prev { left: 1%; }
    .lightbox__btn--next { right: 1%; }

    .footer__grid { grid-template-columns: minmax(0, 1fr); text-align: center; row-gap: 34px; }
    .footer__col { border-left: 0; padding: 0; }
    .contact-list { align-items: center; }
    .footer__social { justify-content: center; }
    .footer__payment { margin-inline: auto; }

    .grr-fields { grid-template-columns: minmax(0, 1fr); }
    .grr-form--inline .grr-field { flex: 1 1 100%; }
    .grr-form--inline .grr-submit { width: 100%; }

    .floating-social { right: 12px; bottom: 14px; gap: 10px; }
    .floating-social__btn { width: 46px; height: 46px; font-size: 20px; }
}

@media (max-width: 480px) {
    .topbar__contact li:nth-child(1) { display: none; }
    .hero__title { font-size: clamp(38px, 12vw, 52px); }
    .about__number { font-size: 74px; }
}
