/* ==========================================================================
   Tecnobotrix — Propuesta de rediseño visual
   Sistema de diseño basado en tokens (CSS custom properties).
   Sin Tailwind CDN: un solo archivo CSS, cacheable y sin parpadeo inicial.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* Marca (se conservan los colores del logotipo) */
    --teal-50: #e8f6f6;
    --teal-100: #c9ecec;
    --teal-300: #5cc8cd;   /* teal legible sobre fondos oscuros */
    --teal-500: #00878f;   /* brand-teal original */
    --teal-700: #006a71;   /* teal para texto sobre fondos claros (AA) */
    --orange-50: #fdf1e9;
    --orange-300: #f4a46e;
    --orange-500: #e47128; /* brand-orange original */
    --orange-600: #c95c17;

    /* Neutros con un ligero matiz azul-verdoso para que armonicen con el teal */
    --ink-950: #061019;
    --ink-900: #0b1724;
    --ink-800: #12233a;
    --ink-700: #1d3350;
    --ink-500: #4a5d73;
    --ink-400: #6b7d91;
    --ink-300: #9fb0c2;
    --ink-200: #cfd9e3;
    --paper: #f5f7f6;
    --white: #ffffff;
    --line: #e2e8ec;
    --line-dark: rgba(159, 176, 194, 0.16);

    /* Tipografía */
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --font-logo: "Orbitron", var(--font-display);

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.375rem;
    --fs-2xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
    --fs-3xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
    --fs-hero: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

    /* Espaciado, radios, sombras */
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(4.5rem, 9vw, 7.5rem);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(6, 16, 25, 0.06), 0 1px 1px rgba(6, 16, 25, 0.04);
    --shadow: 0 10px 30px -12px rgba(6, 16, 25, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(6, 16, 25, 0.35);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.65;
    color: var(--ink-800);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video,
iframe {
    display: block;
    max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--ink-950);
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

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

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    background: var(--orange-500);
    color: var(--ink-950);
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-y);
    position: relative;
}

.section--white {
    background: var(--white);
}

.section--dark {
    background: var(--ink-950);
    color: var(--ink-200);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--white);
}

/* Motivo de firma: cuadrícula tipo "plano de ingeniería" */
.blueprint {
    background-image:
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
}

.blueprint--fade {
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- 3. Tipografía de sección ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-700);
}

.eyebrow::before {
    content: attr(data-index);
    color: var(--orange-500);
}

.section--dark .eyebrow {
    color: var(--teal-300);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-size: var(--fs-3xl);
    margin-top: 0.9rem;
}

.section-head p {
    margin-top: 1.1rem;
    font-size: var(--fs-lg);
    color: var(--ink-500);
}

.section--dark .section-head p {
    color: var(--ink-300);
}

.section-head--split {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.section-head--split > div {
    max-width: 640px;
}

.marker {
    position: relative;
    white-space: nowrap;
    color: var(--orange-500);
}

.marker::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.04em;
    height: 0.14em;
    background: currentColor;
    border-radius: 99px;
    opacity: 0.35;
}

/* ---------- 4. Botones y enlaces ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-base);
    letter-spacing: 0.01em;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Texto oscuro sobre naranja: contraste 6.4:1 (blanco sobre #E47128 solo da 3:1) */
.btn--primary {
    background: var(--orange-500);
    color: var(--ink-950);
    box-shadow: 0 8px 24px -10px rgba(228, 113, 40, 0.7);
}

.btn--primary:hover {
    background: var(--orange-300);
}

.btn--ghost-light {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
}

.btn--ghost-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.btn--outline {
    border-color: var(--teal-500);
    color: var(--teal-700);
}

.btn--outline:hover {
    background: var(--teal-500);
    color: var(--white);
}

.btn--teal {
    background: var(--teal-500);
    color: var(--white);
}

.btn--teal:hover {
    background: var(--teal-700);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    font-size: var(--fs-sm);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--teal-700);
}

.link-arrow i {
    transition: transform 0.2s var(--ease);
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.section--dark .link-arrow {
    color: var(--teal-300);
}

/* ---------- 5. Barra de anuncio y navegación ---------- */
.announce {
    background: var(--teal-500);
    color: var(--white);
    font-size: var(--fs-sm);
    text-align: center;
    padding: 0.55rem var(--gutter);
    position: relative;
    z-index: 51;
}

.announce a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.announce strong {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 16, 25, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background-color 0.3s;
}

.nav.is-scrolled {
    background: rgba(6, 16, 25, 0.95);
    border-bottom-color: var(--line-dark);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.brand img {
    height: 44px;
    width: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px;
}

.brand__name {
    display: block;
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    line-height: 1;
}

.brand__tag {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-300);
}

.nav__links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav__links a:not(.btn) {
    color: var(--ink-200);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    transition: color 0.2s, background-color 0.2s;
}

.nav__links a:not(.btn):hover,
.nav__links a[aria-current="true"] {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.nav__links .btn {
    margin-left: 0.75rem;
}

.nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--white);
    font-size: 1.1rem;
}

.mobile-menu {
    border-top: 1px solid var(--line-dark);
    padding: 0.75rem var(--gutter) 1.25rem;
    display: grid;
    gap: 0.25rem;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu a:not(.btn) {
    color: var(--ink-200);
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--line-dark);
}

.mobile-menu .btn {
    margin-top: 0.75rem;
}

@media (min-width: 960px) {
    .nav__links {
        display: flex;
    }

    .nav__toggle,
    .mobile-menu {
        display: none !important;
    }
}

/* ---------- 6. Hero ---------- */
.hero {
    position: relative;
    min-height: min(88vh, 860px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink-950);
    color: var(--white);
    padding-block: 5rem 9rem;
}

.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Degradado direccional: oscuro donde está el texto, deja ver el video a la derecha */
.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 16, 25, 0.94) 0%, rgba(6, 16, 25, 0.78) 45%, rgba(6, 16, 25, 0.35) 100%),
        linear-gradient(0deg, rgba(6, 16, 25, 1) 0%, rgba(6, 16, 25, 0) 35%);
}

.hero .blueprint {
    position: absolute;
    inset: 0;
    opacity: 0.6;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(92, 200, 205, 0.4);
    background: rgba(0, 135, 143, 0.16);
    color: var(--teal-300);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-300);
    box-shadow: 0 0 0 0 rgba(92, 200, 205, 0.7);
    animation: ping 2.4s infinite;
}

@keyframes ping {
    0% {
        box-shadow: 0 0 0 0 rgba(92, 200, 205, 0.6);
    }

    70%,
    100% {
        box-shadow: 0 0 0 10px rgba(92, 200, 205, 0);
    }
}

.hero h1 {
    color: var(--white);
    font-size: var(--fs-hero);
    margin-top: 1.5rem;
    letter-spacing: -0.035em;
}

/* Línea con palabras clave dentro del H1 (SEO) con aspecto de subtítulo */
.hero__kicker {
    display: block;
    margin-bottom: 0.9rem;
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--teal-300);
}

.hero__lead {
    margin-top: 1.5rem;
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
    color: var(--ink-200);
    max-width: 580px;
}

.hero__lead strong {
    color: var(--white);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.25rem;
}

.hero__press {
    margin-top: 2.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    font-size: var(--fs-sm);
    color: var(--ink-300);
}

.hero__press span:first-child {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-400);
}

.hero__press span:not(:first-child) {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-200);
}

/* ---------- 7. Estadísticas (tarjeta flotante sobre el hero) ---------- */
.stats {
    position: relative;
    z-index: 5;
    margin-top: -5.5rem;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    overflow: hidden;
}

.stat {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat:nth-child(2n) {
    border-right: 0;
}

.stat__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink-950);
    font-variant-numeric: tabular-nums;
}

.stat__value small {
    font-size: 0.6em;
    color: var(--orange-500);
    margin-left: 2px;
}

.stat__label {
    margin-top: 0.6rem;
    font-size: var(--fs-sm);
    color: var(--ink-500);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat {
        border-bottom: 0;
    }

    .stat:nth-child(2n) {
        border-right: 1px solid var(--line);
    }

    .stat:last-child {
        border-right: 0;
    }
}

/* ---------- 8. Metodología ---------- */
.method {
    display: grid;
    gap: 3rem;
}

.method__intro p + p {
    margin-top: 1rem;
}

.method__intro .section-head {
    margin-bottom: 0;
}

.method__list {
    display: grid;
    gap: 1rem;
}

.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.feature:hover {
    border-color: var(--teal-100);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.feature__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: var(--teal-50);
    color: var(--teal-700);
}

.feature:nth-child(2) .feature__icon {
    background: var(--orange-50);
    color: var(--orange-600);
}

.feature__num {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--ink-400);
    letter-spacing: 0.1em;
}

.feature h3 {
    font-size: var(--fs-xl);
    margin: 0.25rem 0 0.5rem;
}

.feature p {
    color: var(--ink-500);
}

@media (min-width: 960px) {
    .method {
        grid-template-columns: 5fr 6fr;
        gap: 4.5rem;
        align-items: start;
    }

    .method__intro {
        position: sticky;
        top: 120px;
    }
}

/* ---------- 9. Tarjetas de oferta ---------- */
.grid-3 {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.offer {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s var(--ease);
}

.offer:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.offer--featured {
    border: 2px solid var(--orange-500);
}

.offer__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ink-800);
}

.offer__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.offer:hover .offer__media img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(6, 16, 25, 0.78);
    color: var(--white);
    backdrop-filter: blur(6px);
}

.tag--orange {
    background: var(--orange-500);
    color: var(--ink-950);
}

.offer__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
}

.offer__body h3 {
    font-size: var(--fs-xl);
}

.offer__body > p {
    margin-top: 0.6rem;
    color: var(--ink-500);
    font-size: 0.95rem;
}

.checklist {
    margin: 1.5rem 0;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--line);
    display: grid;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--ink-700);
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.checklist i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 0.65rem;
    background: var(--teal-50);
    color: var(--teal-700);
}

.offer--featured .checklist i {
    background: var(--orange-50);
    color: var(--orange-600);
}

.offer__body .btn {
    margin-top: auto;
}

.ribbon {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-600);
    margin-bottom: 0.5rem;
}

/* Imagen que no carga (p. ej. .heic en Chrome): se muestra un patrón en su lugar */
.img-fallback {
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 135, 143, 0.45), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(228, 113, 40, 0.35), transparent 55%),
        var(--ink-900);
    display: grid;
    place-items: center;
}

.img-fallback::after {
    content: "\f03e";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.35);
}

.img-fallback img {
    display: none;
}

/* ---------- 10. Pilares ---------- */
.pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.pillar__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.pillar__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.pillar:hover .pillar__media img {
    transform: scale(1.05);
}

.pillar__body {
    position: relative;
    padding: 2.25rem 1.75rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pillar__icon {
    position: absolute;
    top: -26px;
    left: 1.75rem;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: var(--white);
    background: var(--teal-500);
    box-shadow: 0 0 0 4px var(--paper);
}

.pillar__icon--orange {
    background: var(--orange-500);
    color: var(--ink-950);
}

.pillar__icon--ink {
    background: var(--ink-900);
}

.pillar h3 {
    font-size: var(--fs-xl);
}

.pillar p {
    margin: 0.6rem 0 1.25rem;
    color: var(--ink-500);
    font-size: 0.95rem;
}

.pillar .link-arrow {
    margin-top: auto;
}

/* ---------- 11. Prensa ---------- */
.press-card {
    display: flex;
    flex-direction: column;
    background: var(--ink-900);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s var(--ease);
}

.press-card:hover {
    border-color: rgba(92, 200, 205, 0.45);
    transform: translateY(-3px);
}

.press-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.press-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) brightness(0.85);
    transition: filter 0.4s;
}

.press-card:hover .press-card__media img {
    filter: none;
}

.press-card__body {
    padding: 1.5rem;
}

.press-card__source {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-300);
}

.press-card h3 {
    font-size: var(--fs-lg);
    margin: 0.6rem 0;
    line-height: 1.3;
}

.press-card p {
    font-size: var(--fs-sm);
    color: var(--ink-300);
}

.subhead {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0 1.5rem;
    font-size: var(--fs-xl);
}

.subhead::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-dark);
}

/* Video de YouTube "ligero": solo carga el iframe al hacer clic */
.yt {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-dark);
    background: #000;
    padding: 0;
    width: 100%;
}

.yt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.5s var(--ease);
}

.yt:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(6, 16, 25, 0.65);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    font-size: 1.3rem;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s, transform 0.2s var(--ease);
    pointer-events: none;
}

.play i {
    margin-left: 4px;
}

.yt:hover .play,
.tile:hover .play {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--ink-950);
    transform: scale(1.08);
}

/* ---------- 12. Nosotros + línea de tiempo ---------- */
.about {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 960px) {
    .about {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.about__frame {
    position: relative;
}

.about__frame::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--orange-500);
}

.about__slides {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-800);
    box-shadow: var(--shadow-lg);
}

.about__slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.about__slides img.is-active {
    opacity: 1;
}

.about__badge {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}

.about__badge strong {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 1;
    color: var(--ink-950);
    letter-spacing: -0.04em;
}

.about__badge span {
    font-size: var(--fs-sm);
    color: var(--ink-500);
    line-height: 1.3;
}

.timeline {
    position: relative;
    margin-top: 2rem;
    display: grid;
    gap: 1.4rem;
    padding-left: 1.75rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--teal-500), var(--orange-500));
    border-radius: 2px;
}

.timeline li {
    position: relative;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: calc(-1.75rem + 0px);
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--teal-500);
}

.timeline li:last-child::before {
    border-color: var(--orange-500);
}

.timeline__year {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--teal-700);
    font-weight: 500;
}

.timeline li:last-child .timeline__year {
    color: var(--orange-600);
}

.timeline p {
    color: var(--ink-500);
    margin-top: 0.15rem;
}

.timeline strong {
    color: var(--ink-900);
}

.mv {
    margin-top: 2.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 560px) {
    .mv {
        grid-template-columns: 1fr 1fr;
    }
}

.mv div {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.mv h3 {
    font-size: var(--fs-lg);
    margin-bottom: 0.4rem;
}

.mv p {
    font-size: var(--fs-sm);
    color: var(--ink-500);
}

/* ---------- 13. Galería tipo "bento" ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 1rem;
}

@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 230px;
    }
}

.tile {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 0;
    padding: 0;
    background: var(--ink-800);
    color: var(--white);
    text-align: left;
}

.tile--lg {
    grid-column: span 2;
    grid-row: span 2;
}

.tile--wide {
    grid-column: span 2;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.tile:hover img {
    transform: scale(1.05);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 16, 25, 0.85) 0%, rgba(6, 16, 25, 0) 55%);
}

.tile__caption {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1rem;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
}

.tile__caption small {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange-300);
    margin-bottom: 0.25rem;
}

.tile .play {
    z-index: 2;
    width: 54px;
    height: 54px;
    font-size: 1.05rem;
}

/* ---------- 14. Testimonios y FAQ ---------- */
.split {
    display: grid;
    gap: 3rem;
}

@media (min-width: 960px) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.split h3 {
    font-size: var(--fs-2xl);
    margin-bottom: 1.5rem;
}

.quote-card {
    position: relative;
    background: var(--ink-950);
    color: var(--ink-200);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    overflow: hidden;
    min-height: 330px;
    display: flex;
    flex-direction: column;
}

.quote-card .blueprint {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.quote-card__mark {
    position: relative;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.6;
    color: var(--orange-500);
    height: 2.4rem;
}

.quote {
    position: relative;
    display: none;
    flex: 1;
    flex-direction: column;
}

.quote.is-active {
    display: flex;
    animation: fadeUp 0.5s var(--ease);
}

.quote blockquote {
    margin: 0;
    flex: 1;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
    line-height: 1.45;
    color: var(--white);
    letter-spacing: -0.01em;
}

.quote figcaption {
    margin-top: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    background: var(--teal-500);
    color: var(--white);
    flex-shrink: 0;
}

.avatar--orange {
    background: var(--orange-500);
    color: var(--ink-950);
}

.quote__name {
    font-weight: 700;
    color: var(--white);
}

.quote__role {
    font-size: var(--fs-sm);
    color: var(--ink-300);
}

.stars {
    margin-left: auto;
    color: #fbbf24;
    font-size: 0.8rem;
    letter-spacing: 2px;
    white-space: nowrap;
}

.quote-card__nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-dark);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    border: 0;
    padding: 0;
    background: var(--ink-700);
    transition: width 0.3s var(--ease), background-color 0.3s;
}

.dot[aria-current="true"] {
    width: 28px;
    background: var(--teal-300);
}

.quote-card__arrows {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--white);
    display: grid;
    place-items: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--ink-400);
}

.faq {
    display: grid;
    gap: 0.75rem;
}

.faq details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
    border-color: var(--teal-100);
    box-shadow: var(--shadow-sm);
}

.faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-lg);
    color: var(--ink-950);
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--teal-50);
    color: var(--teal-700);
    font-size: 1.2rem;
    font-weight: 500;
    transition: transform 0.3s var(--ease), background-color 0.2s;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
    background: var(--orange-50);
    color: var(--orange-600);
}

.faq details p {
    padding: 0 1.35rem 1.25rem;
    color: var(--ink-500);
}

.faq details p a {
    color: var(--teal-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reviews-cta {
    margin-top: 1rem;
    padding: 1.1rem 1.35rem;
    border-radius: var(--radius);
    border: 1px dashed var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: var(--fs-sm);
    color: var(--ink-500);
}

.reviews-cta i {
    color: var(--teal-700);
    margin-right: 0.35rem;
}

.faq__more {
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius);
    background: var(--teal-50);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink-700);
}

/* ---------- 15. Instagram ---------- */
.ig-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ig-profile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.ig-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 200deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
}

.ig-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    background: var(--white);
}

.ig-profile strong {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--ink-950);
}

.ig-profile span {
    font-size: var(--fs-sm);
    color: var(--ink-500);
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .ig-grid {
        gap: 1rem;
    }
}

.ig-grid a {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink-800);
}

.ig-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.ig-grid a:hover img {
    transform: scale(1.06);
}

.ig-grid a::after {
    content: "\f16d";
    font-family: "Font Awesome 6 Brands";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--white);
    background: rgba(6, 16, 25, 0.45);
    opacity: 0;
    transition: opacity 0.3s;
}

.ig-grid a:hover::after {
    opacity: 1;
}

/* ---------- 16. Visítanos + Contacto ---------- */
.visit {
    display: grid;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

@media (min-width: 960px) {
    .visit {
        grid-template-columns: 5fr 7fr;
    }
}

.visit__info {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    display: grid;
    gap: 1.5rem;
    align-content: center;
}

.info-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.info-row i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--teal-50);
    color: var(--teal-700);
}

.info-row strong {
    display: block;
    font-family: var(--font-display);
    color: var(--ink-950);
}

.info-row p {
    font-size: 0.95rem;
    color: var(--ink-500);
}

.visit__map {
    position: relative;
    min-height: 340px;
    background: var(--line);
}

.visit__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact {
    display: grid;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 960px) {
    .contact {
        grid-template-columns: 5fr 6fr;
        gap: 4rem;
        align-items: center;
    }
}

.contact__points {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
}

.contact__points li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    color: var(--ink-200);
}

.contact__points i {
    margin-top: 0.3rem;
    color: var(--teal-300);
}

.form {
    position: relative;
    background: var(--ink-900);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: grid;
    gap: 1.25rem;
}

/* Esquinas de "visor" heredadas del modal de verano, ahora parte del sistema */
.corners::before,
.corners::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--teal-300);
    border-style: solid;
}

.corners::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
    border-top-left-radius: var(--radius-lg);
}

.corners::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
    border-bottom-right-radius: var(--radius-lg);
}

.form__row {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink-200);
}

.field input,
.field select {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--ink-700);
    background: var(--ink-950);
    color: var(--white);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235cc8cd' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field input::placeholder {
    color: var(--ink-400);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--teal-300);
    box-shadow: 0 0 0 4px rgba(92, 200, 205, 0.18);
}

.field input:user-invalid {
    border-color: #f87171;
}

.form__note {
    font-size: var(--fs-xs);
    color: var(--ink-400);
    text-align: center;
}

.form__note a {
    text-decoration: underline;
}

/* ---------- 17. Footer ---------- */
.footer {
    background: var(--ink-950);
    color: var(--ink-300);
    padding-top: 4.5rem;
    border-top: 1px solid var(--line-dark);
}

.footer__grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1.4fr;
    }
}

.footer h4 {
    font-size: var(--fs-sm);
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-bottom: 1.25rem;
}

.footer p {
    max-width: 380px;
    margin-top: 1.25rem;
}

.footer ul {
    display: grid;
    gap: 0.75rem;
}

.footer ul a:hover {
    color: var(--white);
}

.footer address {
    font-style: normal;
    display: grid;
    gap: 0.9rem;
}

.footer address div {
    display: flex;
    gap: 0.75rem;
}

.footer address i {
    margin-top: 0.3rem;
    color: var(--teal-300);
    width: 16px;
}

.socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-dark);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.socials a:hover {
    background: var(--teal-500);
    border-color: var(--teal-500);
    color: var(--white);
}

.footer__bottom {
    margin-top: 3.5rem;
    padding-block: 1.75rem;
    border-top: 1px solid var(--line-dark);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: var(--fs-sm);
}

.footer__bottom nav {
    display: flex;
    gap: 1.5rem;
}

.footer__bottom button {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
}

.footer__bottom button:hover {
    color: var(--white);
}

/* ---------- 18. WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 58px;
    padding: 0 1.15rem 0 1rem;
    border-radius: 999px;
    background: #25d366;
    color: #06301a;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.wa-float i {
    font-size: 1.7rem;
}

.wa-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -8px rgba(37, 211, 102, 0.75);
}

@media (max-width: 639px) {
    .wa-float {
        width: 58px;
        padding: 0;
        justify-content: center;
    }

    .wa-float span {
        display: none;
    }
}

/* ---------- 19. Diálogos (<dialog> nativo) ---------- */
dialog {
    border: 0;
    padding: 0;
    max-width: min(860px, calc(100vw - 2rem));
    width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--ink-800);
    box-shadow: var(--shadow-lg);
}

dialog::backdrop {
    background: rgba(6, 16, 25, 0.78);
    backdrop-filter: blur(6px);
}

dialog[open] {
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.3s var(--ease);
}

.dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--ink-950);
    color: var(--white);
}

.dialog__head h2 {
    color: var(--white);
    font-size: var(--fs-xl);
}

.dialog__head .icon-btn {
    flex-shrink: 0;
}

.dialog__body {
    padding: 1.75rem;
    overflow-y: auto;
}

.dialog__body h3 {
    font-size: var(--fs-lg);
    color: var(--teal-700);
    margin: 1.5rem 0 0.5rem;
}

.dialog__body p,
.dialog__body li {
    color: var(--ink-500);
    margin-bottom: 0.75rem;
}

.dialog__body ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.dialog__foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}

dialog.dialog--video {
    max-width: min(1100px, calc(100vw - 2rem));
    background: #000;
    overflow: visible;
}

.dialog--video video {
    width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
}

.dialog--video .icon-btn {
    position: absolute;
    top: -52px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- 20. Animaciones de entrada ---------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
