/* ============================================================
       CSS CUSTOM PROPERTIES — Design Tokens
    ============================================================ */
:root {
    /* Brand Colors — Primary (#ec268f — fucsia, acciones CTA) */
    --color-primary: #ec268f;
    --color-primary-light: #f04ba0;
    --color-primary-lighter: #f468b2;
    --color-primary-dark: #c91579;
    --color-primary-muted: rgba(236, 38, 143, 0.12);
    --color-primary-subtle: rgba(236, 38, 143, 0.06);

    /* Brand Colors — Secondary (#5059bc — acento puntual) */
    --color-secondary: #5059bc;
    --color-secondary-light: #6872c9;
    --color-secondary-lighter: #8189d6;
    --color-secondary-dark: #3b44a5;
    --color-secondary-muted: rgba(80, 89, 188, 0.12);
    --color-secondary-subtle: rgba(80, 89, 188, 0.06);

    /* Gradient brand */
    --gradient-brand: linear-gradient(135deg,
            var(--color-primary) 0%,
            var(--color-secondary) 100%);
    --gradient-brand-light: linear-gradient(135deg,
            var(--color-primary-light) 0%,
            var(--color-secondary-light) 100%);

    /* Neutrals — escala azul marino (#00203a base, #063565 soporte) */
    --color-dark: #00203a;
    --color-dark-2: #032e50;
    --color-dark-3: #063565;
    --color-dark-4: #0d4a86;
    --color-light: #f0f4f8;
    --color-light-2: #dce6f0;
    --color-light-3: #c2d4e8;
    --color-white: #ffffff;
    --color-text-body: #2a4a6a;
    --color-text-muted: #5a7a9a;

    /* Typography — Urbanist for everything */
    --font-display: "Urbanist", sans-serif;
    --font-body: "Urbanist", sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-normal: 1.6;
    --leading-loose: 1.8;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:
        0 1px 3px rgba(0, 32, 58, 0.10), 0 1px 2px rgba(0, 32, 58, 0.06);
    --shadow-md:
        0 4px 16px rgba(0, 32, 58, 0.12), 0 2px 6px rgba(0, 32, 58, 0.08);
    --shadow-lg:
        0 12px 40px rgba(0, 32, 58, 0.16), 0 4px 12px rgba(0, 32, 58, 0.10);
    --shadow-xl:
        0 24px 64px rgba(0, 32, 58, 0.22), 0 8px 24px rgba(0, 32, 58, 0.12);
    --shadow-primary: 0 8px 32px rgba(236, 38, 143, 0.30);
    --shadow-primary-sm: 0 4px 16px rgba(236, 38, 143, 0.22);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1200px;
    --container-wide: 1440px;
    --nav-height: 72px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--color-text-body);
    background-color: var(--color-light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

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

ul,
ol {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: var(--leading-tight);
    color: var(--color-dark);
}

/* ============================================================
       UTILITIES
    ============================================================ */
.u-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
    padding-block: var(--space-4);
}

.u-container--wide {
    max-width: var(--container-wide);
}

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

/* ============================================================
       ATOMS — Buttons
    ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--transition-fast);
}

.btn:hover::after {
    background: rgba(255, 255, 255, 0.08);
}

.btn:active {
    transform: scale(0.97);
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-primary-sm);
}

.btn--primary:hover {
    background: var(--color-primary-light);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--color-dark);
    border: 1.5px solid var(--color-dark);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary);
}

.btn--ghost:hover {
    background: var(--color-primary-subtle);
}

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

.btn--dark:hover {
    background: var(--color-dark-2);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.btn:hover .btn__icon--arrow {
    transform: translateX(3px);
}

/* ============================================================
       ATOMS — Badge / Tag
    ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge--primary {
    background: var(--color-primary-muted);
    color: var(--color-primary);
}

.badge--dark {
    background: var(--color-dark-3);
    color: var(--color-light-3);
}

.badge--dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: currentColor;
    flex-shrink: 0;
}

/* ============================================================
       ATOMS — Section Label
    ============================================================ */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.section-label::before {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

/* ============================================================
       MOLECULES — Card
    ============================================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

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

.card--dark {
    background: var(--color-dark-2);
    border-color: var(--color-dark-3);
    color: var(--color-light-3);
}

.card--dark h3 {
    color: var(--color-white);
}

.card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-xl);
    background: var(--color-primary-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    flex-shrink: 0;
}

.card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.card__title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
}

.card__body {
    font-size: var(--text-sm);
    line-height: var(--leading-loose);
    color: var(--color-text-muted);
}

.card--dark .card__body {
    color: var(--color-light-3);
    opacity: 0.7;
}

/* ============================================================
       MOLECULES — Stat
    ============================================================ */
.stat__value {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    line-height: 1;
    background: var(--gradient-brand-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat__label {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

/* ============================================================
       MOLECULES — Testimonial Card
    ============================================================ */
.testimonial {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.testimonial__quote {
    font-size: var(--text-4xl);
    line-height: 1;
    color: var(--color-primary-muted);
    font-family: var(--font-display);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-4);
}

.testimonial__text {
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: var(--color-text-body);
    margin-bottom: var(--space-6);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    color: var(--color-white);
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.testimonial__name {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-dark);
}

.testimonial__role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================================
       MOLECULES — Nav
    ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition:
        background var(--transition-base),
        box-shadow var(--transition-base),
        backdrop-filter var(--transition-base);
}

.nav--scrolled {
    background: rgba(242, 244, 249, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ── Logo que aparece al hacer scroll (desktop) ── */
.nav__logo-scroll {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition:
        opacity 0.30s ease,
        transform 0.30s ease,
        visibility 0.30s ease;
    pointer-events: none;
    line-height: 0;
}

.nav--scrolled .nav__logo-scroll {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.nav__logo-scroll__img {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .nav__logo-scroll {
        display: none;
    }
}

/* ── Contenedor compartido para los dos logos desktop ── */
.nav__logo-wrap {
    display: grid;
    flex-shrink: 0;
}

.nav__logo-wrap .nav__logo-scroll,
.nav__logo-wrap .nav__logo-initial {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

@media (max-width: 900px) {
    .nav__logo-wrap {
       display: none;
    }
}

/* ── Logo visible en estado inicial (fondo oscuro, antes del scroll) ── */
.nav__logo-initial {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.30s ease,
        transform 0.30s ease,
        visibility 0.30s ease;
    line-height: 0;
}

.nav--scrolled .nav__logo-initial {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    pointer-events: none;
}

.nav__logo-initial__img {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .nav__logo-initial {
        display: none;
    }
}

.nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    min-width: 0;
}

.nav__logo img {
    width: 5.8rem;
    height: auto;
}

/* .nav__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary-sm);
}
.nav__logo-mark svg {
  width: 20px;
  height: 20px;
  color: white;
} */
.nav__logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-dark);
}

.nav__logo-text span {
    color: var(--color-primary);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav__link {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: #FFFFFF;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--color-dark);
    background: var(--color-light-2);
}

.nav__link--active {
    color: var(--color-primary);
    background: var(--color-primary-muted);
}

.nav--scrolled .nav__link {
    color: var(--color-text-body);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

/* Hamburger */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: gray;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.70));
}

.nav--scrolled .nav__toggle-bar {
    filter: none;
}

.nav__toggle:hover {
    background: rgba(255, 255, 255, 0.10);
}

.nav--scrolled .nav__toggle:hover {
    background: var(--color-light-2);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav__mobile {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(242, 244, 249, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-6);
    border-top: 1px solid var(--color-light-2);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 99;
    overflow-x: hidden;
}

.nav__mobile.is-open {
    display: flex;
}

.nav__mobile .nav__link {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--color-text-body);
}

.nav__mobile-actions {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-light-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.nav__mobile-actions .btn {
    justify-content: center;
}

/* ============================================================
       SECTION BASE
    ============================================================ */
.section {
    padding-block: var(--space-24);
    overflow: hidden;
    width: 100%;
}

.section--lg {
    padding-block: var(--space-32);
}

.section--sm {
    padding-block: var(--space-16);
}

.section--dark {
    background: var(--color-dark);
    color: var(--color-light-3);
}

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

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

.section__header {
    max-width: 640px;
    margin-bottom: var(--space-16);
}

.section__header--center {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: var(--space-16);
}

.section__title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-5);
}

.section__desc {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: var(--color-text-muted);
}

.section--dark .section__desc {
    color: var(--color-light-3);
    opacity: 0.65;
}

/* ============================================================
       HERO SECTION
    ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background: var(--color-dark);
    overflow: hidden;
    width: 100%;
}

/* Canvas de animación JS */
.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: block;
}

/* Overlay oscuro sobre el canvas para garantizar legibilidad del texto */
.hero__canvas-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg,
            rgba(4, 8, 18, 0.82) 0%,
            rgba(4, 8, 18, 0.70) 50%,
            rgba(4, 8, 18, 0.80) 100%);
    pointer-events: none;
}

/* Noise overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Gradient mesh background */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-blob {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(80px);
    opacity: 0.18;
}

.hero__bg-blob--1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
}

.hero__bg-blob--2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: 100px;
    left: 10%;
    opacity: 0.14;
}

.hero__bg-blob--3 {
    width: 350px;
    height: 350px;
    background: var(--color-secondary-dark);
    top: 30%;
    left: 40%;
    opacity: 0.18;
}

/* Grid lines */
.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding-top: calc(var(--nav-height) + var(--space-2));
    padding-bottom: var(--space-12);
}

.hero__content {
    max-width: 600px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(236, 38, 143, 0.15);
    border: 1px solid rgba(236, 38, 143, 0.3);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4607f;
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.6s ease both;
}

.hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero__title {
    font-size: clamp(var(--text-4xl), 5.5vw, var(--text-7xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s 0.1s ease both;
}

.hero__title-accent {
    background: var(--gradient-brand-light);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: rgba(242, 244, 249, 0.6);
    margin-bottom: var(--space-10);
    max-width: 480px;
    animation: fadeInUp 0.6s 0.2s ease both;
}

/* ── Hero slides — rotación automática de textos ── */
.hero__slides {
    display: grid;
    align-items: start;
    margin-bottom: 0;
}

/* Botón dentro de cada slide: sin animación propia (la maneja el slide) */
.hero__slide .hero__actions {
    margin-top: var(--space-8);
    animation: none;
}

.hero__slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
    pointer-events: none;
}

.hero__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero__slide.is-leaving {
    opacity: 0;
    transform: translateY(-18px);
    transition:
        opacity 0.38s ease,
        transform 0.38s ease;
}

/* Cancela las animaciones fadeInUp de los hijos dentro de los slides */
.hero__slide .hero__eyebrow,
.hero__slide .hero__title,
.hero__slide .hero__subtitle {
    animation: none;
    margin-bottom: var(--space-6);
}

.hero__slide .hero__eyebrow {
    margin-bottom: var(--space-5);
}

.hero__slide .hero__subtitle {
    margin-bottom: 0;
}

/* Título de slide: reducido para que las frases largas no se desborden */
.hero__slide .hero__title {
    font-size: clamp(var(--text-3xl), 3.4vw, var(--text-5xl));
    line-height: 1.22;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.hero__actions .btn--outline {
    color: var(--color-white);
    border-color: rgba(242, 244, 249, 0.35);
    background: rgba(242, 244, 249, 0.06);
}

.hero__actions .btn--outline:hover {
    color: var(--color-white);
    border-color: rgba(242, 244, 249, 0.7);
    background: rgba(242, 244, 249, 0.12);
}

.hero__trust {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.4s ease both;
}

.hero__trust-text {
    font-size: var(--text-xs);
    color: rgba(242, 244, 249, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    padding-top: 2px;
}

.hero__trust-logos {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__trust-logo {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: rgba(242, 244, 249, 0.25);
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
}

.hero__trust-logo:hover {
    color: rgba(242, 244, 249, 0.5);
}

/* Hero visual */
.hero__visual {
    position: relative;
    animation: fadeInRight 0.8s 0.2s ease both;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*IMAGE HERO WRAP*/
.hero__img-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__img {
    width: 78%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 32px 64px rgba(236, 38, 143, 0.25)) drop-shadow(0 8px 24px rgba(0, 32, 58, 0.5));

    animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero__img--static {
    width: auto;
    max-width: 100%;
    animation: none;
}

/* Hero — video reemplaza al logo grande */
.hero__img-wrap--video {
    position: relative;
    overflow: hidden;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.68;
    mix-blend-mode: luminosity;
    border-radius: inherit;
    aspect-ratio: 5 / 4;
}

.hero__video-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--color-dark) 0%, transparent 35%),
        linear-gradient(to left, var(--color-dark) 0%, transparent 35%),
        linear-gradient(to bottom, var(--color-dark) 0%, transparent 30%),
        linear-gradient(to top, var(--color-dark) 0%, transparent 30%);
    pointer-events: none;
}

/* ============================================================
       CLIENTS / LOGOS SECTION
    ============================================================ */
.logos {
    padding-block: var(--space-12);
    background: var(--color-white);
    overflow: hidden;
    width: 100%;
}

.logos__label {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.logos__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.logos__item {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    color: var(--color-light-3);
    letter-spacing: -0.02em;
    transition: color var(--transition-base);
    cursor: default;
}

.logos__item:hover {
    color: var(--color-primary);
}

/* ============================================================
       SERVICES SECTION
    ============================================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ============================================================
       HOW IT WORKS SECTION
    ============================================================ */
.how__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
}

.how__grid::before {
    content: "";
    position: absolute;
    top: 48px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 1px;
    background: var(--gradient-brand);
    opacity: 0.4;
}

.how__step {
    text-align: center;
    position: relative;
}

.how__step-number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: var(--font-extrabold);
    font-size: var(--text-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-primary);
}

.how__step-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--color-dark);
    margin-bottom: var(--space-3);
}

.how__step-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-loose);
}

/* ============================================================
       STATS SECTION
    ============================================================ */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-1);
}

.stats__item {
    padding: var(--space-10);
    text-align: center;
    position: relative;
}

.stats__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    right: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* ── Stats Carousel ── */
.stats__carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.stats__track {
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.stats__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    opacity: 0;
    transform: translateY(55px);
    pointer-events: none;
    transition: opacity 0.42s ease, transform 0.42s ease;
}

.stats__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.stats__slide.is-leaving {
    opacity: 0;
    transform: translateY(-55px);
    transition: opacity 0.42s ease, transform 0.42s ease;
}

.stats__slide.stats__item::after {
    display: none;
}

.stats__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-6);
    padding-bottom: var(--space-2);
}

.stats__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
}

.stats__dot--active {
    width: 24px;
    background: var(--color-primary);
}

.section--stats-white .stats__dot {
    background: rgba(0, 32, 58, 0.15);
}

.section--stats-white .stats__dot--active {
    background: var(--color-primary);
}

@keyframes statSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-32px);
    }
}

@keyframes statSlideIn {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-exit {
    animation: statSlideUp 0.38s ease forwards;
}

.stat-enter {
    animation: statSlideIn 0.38s ease forwards;
}

/* ============================================================
       TESTIMONIALS
    ============================================================ */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ============================================================
       PRICING
    ============================================================ */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1.5px solid var(--color-light-2);
    transition: all var(--transition-base);
}

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

.pricing-card--featured {
    background: var(--color-dark);
    border-color: var(--color-dark-3);
    position: relative;
    padding-top: calc(var(--space-8) + var(--space-6));
}

.pricing-card--featured::before {
    content: "Más Popular";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--gradient-brand);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    white-space: nowrap;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

.pricing-card--featured .pricing-card__name {
    color: var(--color-light-3);
}

.pricing-card--featured .pricing-card__price {
    color: var(--color-white);
}

.pricing-card--featured .pricing-card__feature {
    color: rgba(242, 244, 249, 0.7);
}

.pricing-card--featured .pricing-card__feature::before {
    background: var(--color-primary-light);
}

.pricing-card__name {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.pricing-card__price {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: var(--color-dark);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.pricing-card__price sup {
    font-size: var(--text-2xl);
    vertical-align: super;
    font-weight: var(--font-bold);
}

.pricing-card__period {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.pricing-card__divider {
    height: 1px;
    background: var(--color-light-2);
    margin-bottom: var(--space-6);
}

.pricing-card--featured .pricing-card__divider {
    background: var(--color-dark-3);
}

.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.pricing-card__feature {
    font-size: var(--text-sm);
    color: var(--color-text-body);
    padding-left: var(--space-6);
    position: relative;
}

.pricing-card__feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: #28c840;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* ============================================================
       CTA SECTION
    ============================================================ */
.cta {
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta::before {
    content: "";
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center,
            var(--color-secondary) 0%,
            var(--color-primary) 60%,
            transparent 100%);
    border-radius: var(--radius-full);
    filter: blur(100px);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
}

.cta__title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-5);
    line-height: var(--leading-tight);
}

.cta__desc {
    font-size: var(--text-lg);
    color: rgba(242, 244, 249, 0.55);
    margin-bottom: var(--space-10);
}

.cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cta__actions .btn--outline {
    color: var(--color-white);
    border-color: rgba(242, 244, 249, 0.35);
    background: rgba(242, 244, 249, 0.06);
}

.cta__actions .btn--outline:hover {
    color: var(--color-white);
    border-color: rgba(242, 244, 249, 0.65);
    background: rgba(242, 244, 249, 0.12);
}

/* ============================================================
   EJES ECOM — Innova · Conecta · Transforma
   Pegar al final de estilos.css, ANTES de los @media queries
   (o integrar los bloques responsivos en los breakpoints ya existentes)
============================================================ */

/* ── Sección contenedora ── */
.ejes {
    position: relative;
    background: var(--color-dark);
    overflow: hidden;
    /* Sobreescribimos el padding-block para que la sección
     respete la misma altura que el resto de sections */
    padding-block: var(--space-24);
}

/* ── Fondo decorativo: grid + blobs (igual al Hero) ── */
.ejes__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ejes__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* El u-container queda sobre el fondo */
.ejes .u-container {
    position: relative;
    z-index: 1;
}

/* ── Grid de las 3 cards ── */
.ejes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

/* ── Card base ── */
.eje-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Altura fija para que las tres cards tengan igual tamaño */
    min-height: 480px;
    display: flex;
    flex-direction: column;
    /* Elevación en hover */
    transition:
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.eje-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.35),
        0 24px 56px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(0, 140, 255, 0.18),
        0 0 40px rgba(0, 100, 255, 0.10);
}

/* Rounded en las esquinas externas del mosaico */
.eje-card:first-child,
.eje-card:last-child {
    border-radius: var(--radius-xl);
}

/* ── Imagen de fondo ── */
.eje-card__img-wrap {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
}

.eje-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    transition: transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.55s ease;
    background: var(--color-dark-3);
    filter: brightness(0.92) saturate(1);
}

.eje-card:hover .eje-card__img {
    transform: scale(1.10);
    filter: brightness(0.80) saturate(1.12);
}

/* ── Overlay degradado sobre la imagen ── */
.eje-card__overlay {
    position: absolute;
    inset: 0;
    /* Gradiente que oscurece desde abajo (donde está el texto) */
    background: linear-gradient(to top,
            rgba(0, 32, 58, 0.96) 0%,
            rgba(0, 32, 58, 0.55) 45%,
            rgba(0, 32, 58, 0.15) 75%,
            transparent 100%);
    transition: background var(--transition-slow);
}

/* Al hacer hover el overlay añade un tinte azul-violeta suave */
.eje-card:hover .eje-card__overlay {
    background: linear-gradient(to top,
            rgba(10, 14, 40, 0.97) 0%,
            rgba(14, 20, 55, 0.62) 50%,
            rgba(20, 30, 70, 0.18) 80%,
            transparent 100%);
}

/* Barra lateral izquierda — barre desde arriba al hacer hover */
.eje-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-brand);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.52s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 4;
}

.eje-card:hover::before {
    transform: scaleY(1);
}

/* Línea de acento en el borde inferior — barre desde la izquierda */
.eje-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.06s;
    z-index: 4;
}

.eje-card:hover::after {
    transform: scaleX(1);
}

/* ── Cuerpo de texto (sobre el overlay) ── */
.eje-card__body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    /* empuja el contenido al fondo de la card */
    padding: var(--space-8) var(--space-8) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-height: 18rem;
    justify-content: flex-end;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.eje-card:hover .eje-card__body {
    transform: translateY(-6px);
}

/* ── Número de eje ── */
.eje-card__tag {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    line-height: 1;
}

/* ── Título ── */
.eje-card__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 2.2vw, var(--text-3xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    color: var(--color-white);
    margin: 0;

    /* Separador decorativo antes del título */
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.12);

    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.35s ease;
}

.eje-card:hover .eje-card__title {
    transform: translateY(-6px);
    color: #fff;
    border-top-color: rgba(0, 180, 255, 0.35);
}

/* ── Descripción (máx. 2 líneas) ── */
.eje-card__desc {
    font-size: var(--text-base);
    line-height: var(--leading-snug);
    color: rgba(242, 244, 249, 0.7);
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* Reveal: oculta por defecto en dispositivos con hover */
    transition: opacity 0.40s ease 0.08s,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
        color 0.35s ease;
}

/* En dispositivos táctiles siempre visible */
@media (hover: none) {
    .eje-card__desc {
        opacity: 1;
        transform: none;
    }
}

/* En escritorio: ocultar y revelar con hover */
@media (hover: hover) {
    .eje-card__desc {
        opacity: 0;
        transform: translateY(18px);
    }

    .eje-card:hover .eje-card__desc {
        opacity: 1;
        transform: translateY(0);
        color: rgba(242, 244, 249, 0.88);
    }
}

/* ── Botón CTA ── */
.eje-card__cta {
    align-self: flex-start;
    margin-top: var(--space-2);
    border-radius: 6px;

    /* Oculto por defecto, se revela con stagger tras la descripción */
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.38s ease 0.18s,
        transform 0.40s cubic-bezier(0.22, 1, 0.36, 1) 0.18s,
        background var(--transition-fast),
        box-shadow var(--transition-fast);
}

.eje-card:hover .eje-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* En táctiles siempre visible */
@media (hover: none) {
    .eje-card__cta {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   NOTICIAS DESTACADAS
============================================================ */

/* ── Contenedor de la sección ── */
.noticias {
    position: relative;
    overflow: hidden;
}

/* Detalle decorativo de fondo — hereda el estilo de .section--alt */
.noticias::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 80% 20%,
            var(--color-primary-subtle) 0%,
            transparent 70%),
        radial-gradient(ellipse 40% 30% at 10% 80%,
            var(--color-secondary-subtle) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.noticias .u-container {
    position: relative;
    z-index: 1;
}

/* ── Grid de noticias ── */
.noticias__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

/* ── Card ── */
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-light-2);
    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ── Imagen ── */
.news-card__img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--color-light-2);
    flex-shrink: 0;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.news-card__img-wrap:hover .news-card__img,
.news-card:hover .news-card__img {
    transform: scale(1.05);
}

/* Fallback si no hay imagen (placeholder visual) */
.news-card__img-wrap:not(:has(img[src])),
.news-card__img[src=""],
.news-card__img:not([src]) {
    background: linear-gradient(135deg,
            var(--color-light-2) 0%,
            var(--color-light-3) 100%);
}

/* ── Badge de categoría ── */
.news-card__category {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-brand);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    line-height: 1.6;
    box-shadow: var(--shadow-primary-sm);
    pointer-events: none;
}

/* ── Cuerpo de la card ── */
.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-6);
    gap: var(--space-3);
}

/* ── Fecha ── */
.news-card__date {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Título ── */
.news-card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    line-height: var(--leading-snug);
    /* color: var(--color-dark); */
    color: #063565;
    margin: 0;
}

.news-card__title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-card__title-link:hover,
.news-card__title-link:focus-visible {
    color: var(--color-primary);
}

.news-card__title-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ── Descripción ── */
.news-card__desc {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--color-text-body);
    flex: 1;

    /* Limitar a 3 líneas con ellipsis para mantener uniformidad */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── CTA "Leer más" ── */
.news-card__cta {
    align-self: flex-start;
    margin-top: var(--space-2);
    /* Por encima del overlay para conservar su propio foco y hover */
    position: relative;
    z-index: 2;
}

/* ── Card enlazada completa ──
   El enlace del título se estira sobre toda la card, así cualquier
   punto de la card lleva a la noticia sin duplicar enlaces en el
   árbol de accesibilidad. */
.news-card {
    position: relative;
}

.news-card__title-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.news-card:hover .news-card__title-link {
    color: var(--color-primary);
}

.news-card:focus-within {
    box-shadow: var(--shadow-lg);
}

/* El foco visible se dibuja sobre la card entera, no sobre el texto */
.news-card__title-link:focus-visible::after {
    outline: 2px solid var(--color-primary);
    /* Hacia adentro: la card tiene overflow:hidden y recortaría un offset positivo */
    outline-offset: -2px;
    border-radius: var(--radius-xl);
}

.news-card__title-link:focus-visible {
    outline: none;
}

.news-card__category {
    z-index: 2;
}

/* ── Footer de sección — botón "Ver todas" ── */
.noticias__footer {
    display: flex;
    justify-content: center;
    margin-top: var(--space-12);
}

/* ============================================================
   PLANTA RAEEs
============================================================ */

/* ── Sección: ocupa todo el ancho, background-image ── */
.raees {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background-image: url("https://images.unsplash.com/photo-1601190921199-a8d4339b1b84?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.raees__overlay {
    position: absolute;
    inset: 0;
    background:
        /* Capa 1: gradiente lateral, texto a la izquierda */
        linear-gradient(90deg,
            rgba(0, 32, 58, 0.92) 0%,
            rgba(0, 32, 58, 0.75) 50%,
            rgba(0, 32, 58, 0.4) 100%),
        linear-gradient(135deg, rgba(236, 38, 143, 0.18) 0%, transparent 60%);
    z-index: 1;
}

/* ── Contenedor: posicionado sobre el overlay ── */
.raees__container {
    position: relative;
    z-index: 2;
    padding-block: var(--space-24);
}

.raees__content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.raees__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-light);
}

.raees__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    box-shadow: 0 0 8px var(--color-primary-light);
    flex-shrink: 0;
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.75);
    }
}

/* ── Título ── */
.raees__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    color: var(--color-white);
    margin: 0;
}

/* Acento con degradado igual al Hero */
.raees__title-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Descripción ── */
.raees__desc {
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: rgba(242, 244, 249, 0.65);
    margin: 0;
}

.raees__cta {
    align-self: flex-start;
    color: var(--color-white);
    border-color: rgba(242, 244, 249, 0.4);
    background: rgba(242, 244, 249, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.raees__cta:hover {
    color: var(--color-white);
    border-color: var(--color-primary-light);
    background: rgba(236, 38, 143, 0.18);
    box-shadow: 0 0 0 3px rgba(236, 38, 143, 0.15);
}

.raees__cta:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 3px;
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact {
    background: var(--color-light);
    overflow: hidden;
    width: 100%;
}

.contact__grid {
    display: flex;
    justify-content: center;
}

.contact__info {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-8));
}

.contact__info-title {
    font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    color: var(--color-dark);
    margin-bottom: var(--space-5);
}

.contact__info-desc {
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: var(--color-text-muted);
    margin-bottom: var(--space-10);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.contact__detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.contact__detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    border: 1px solid var(--color-light-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.contact__detail-item:hover .contact__detail-icon {
    background: var(--color-primary-muted);
    border-color: rgba(236, 38, 143, 0.25);
    box-shadow: var(--shadow-primary-sm);
}

.contact__detail-icon svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.contact__detail-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact__detail-value {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-dark);
}

.contact__form-wrap {
    max-width: 760px;
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact__form-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
}

.contact__form-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-dark);
    margin-bottom: var(--space-2);
}

.contact__form-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

/* Form atoms */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form__label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-dark);
}

.form__label abbr {
    text-decoration: none;
    color: var(--color-primary);
    margin-left: 2px;
}

.form__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form__input-icon {
    position: absolute;
    left: var(--space-4);
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
    flex-shrink: 0;
    transition: color var(--transition-fast);
    z-index: 1;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-dark);
    background: var(--color-light);
    border: 1.5px solid var(--color-light-2);
    border-radius: var(--radius-lg);
    padding: 0.75rem var(--space-4);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    line-height: var(--leading-normal);
}

.form__input--icon {
    padding-left: 2.75rem;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.65;
}

.form__input:hover,
.form__select:hover,
.form__textarea:hover {
    border-color: var(--color-light-3);
    background: var(--color-white);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px var(--color-primary-muted);
}

.form__input-wrap:focus-within .form__input-icon {
    color: var(--color-primary);
}

.form__select-wrap {
    position: relative;
}

.form__select-wrap::after {
    content: "";
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--color-text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form__select-wrap:focus-within::after {
    border-top-color: var(--color-primary);
    transform: translateY(-50%) rotate(180deg);
}

.form__select {
    padding-right: 2.5rem;
    cursor: pointer;
}

.form__select option {
    background: var(--color-white);
    color: var(--color-dark);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
    line-height: var(--leading-loose);
}

.form__hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.form__checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form__checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--color-light-3);
    border-radius: var(--radius-sm);
    background: var(--color-light);
    cursor: pointer;
    margin-top: 2px;
    transition: all var(--transition-fast);
    position: relative;
    flex-shrink: 0;
}

.form__checkbox:hover {
    border-color: var(--color-primary);
}

.form__checkbox:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.form__checkbox:checked::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.form__checkbox:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.form__checkbox-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

.form__checkbox-label a {
    color: var(--color-primary);
    font-weight: var(--font-medium);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form__checkbox-label a:hover {
    color: var(--color-primary-dark);
}

.form__submit {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
    margin-top: var(--space-2);
}

.form__submit .btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: var(--radius-full);
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.form__submit.is-loading .form__submit-text,
.form__submit.is-loading .btn__icon {
    display: none;
}

.form__submit.is-loading .btn__spinner {
    display: block;
}

.form__submit.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.contact__form-wrap.is-success .form,
.contact__form-wrap.is-success .contact__form-title,
.contact__form-wrap.is-success .contact__form-subtitle {
    display: none;
}

.contact__success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-12) var(--space-8);
    gap: var(--space-4);
}

.contact__form-wrap.is-success .contact__success {
    display: flex;
}

.contact__success-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    margin-bottom: var(--space-2);
}

.contact__success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.contact__success-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--color-dark);
}

.contact__success-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    max-width: 300px;
    line-height: var(--leading-loose);
}

@media (max-width: 900px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .contact__info {
        position: static;
    }

    .contact__form-wrap {
        padding: var(--space-8);
    }
}

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

    .contact__form-wrap {
        padding: var(--space-6);
        border-radius: var(--radius-2xl);
    }
}

/* ============================================================
   CHACO CONECTADO

============================================================ */

/* ── Sección base ── */
.chaco-conectado {
    background: #ec268f;
    color: rgba(255, 255, 255, 0.9);
}

.chaco-conectado .section-label {
    color: rgba(255, 255, 255, 0.95);
}

.chaco-conectado .section-label::before {
    background: rgba(255, 255, 255, 0.55);
}

/* ── Encabezado ── */
.chaco-conectado__header {
    max-width: 640px;
    margin-bottom: var(--space-16);
}

.chaco-conectado__title {
    color: var(--color-white);
    margin-bottom: var(--space-5);
}

/* Línea de título con acento de color */
.chaco-conectado__title-accent {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chaco-conectado__desc {
    font-size: var(--text-lg);
    line-height: var(--leading-loose);
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
}

/* ── Layout principal*/
.chaco-conectado__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* ════════════════════════════════════════
   BLOQUE DE VIDEO
════════════════════════════════════════ */
.chaco-video {
    position: relative;
}

/* Contenedor con aspect-ratio 16:9 para el iframe */
.chaco-video__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.12);
}

.chaco-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.chaco-video__accent {
    margin-top: var(--space-4);
    height: 2px;
    width: 64px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
}

/* ════════════════════════════════════════
   GRID DE ITEMS INFORMATIVOS
════════════════════════════════════════ */
.chaco-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

/* ── Item individual ── */
.chaco-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);

    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition:
        border-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base),
        background var(--transition-base);
}

.chaco-item:hover {
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ── Ícono del item ── */
.chaco-item__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-base);
}

.chaco-item:hover .chaco-item__icon {
    background: rgba(255, 255, 255, 0.35);
}

.chaco-item__icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-white);
}

/* ── Contenido textual ── */
.chaco-item__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.chaco-item__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    line-height: var(--leading-snug);
    color: var(--color-white);
    margin: 0;
}

.chaco-item__desc {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

/* ============================================================
       FOOTER
    ============================================================ */
.footer {
    background: var(--color-dark);
    border-top: 1px solid var(--color-dark-3);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
    overflow: hidden;
    width: 100%;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
    gap: 0;
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-8);
}

.footer__grid>* {
    padding: 0 var(--space-10);
}

.footer__grid>*:first-child {
    padding-left: 0;
}

.footer__grid>*:last-child {
    padding-right: 0;
}

.footer__grid>*:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Logo */
.footer__logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Títulos de columna */
.footer__col-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-5);
}

.footer__col-title--social {
    text-transform: none;
    letter-spacing: normal;
    font-weight: var(--font-semibold);
}

/* Contacto */
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer__contact-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: rgba(242, 244, 249, 0.5);
}

.footer__contact-link {
    font-size: var(--text-sm);
    color: rgba(242, 244, 249, 0.6);
    transition: color var(--transition-fast);
}

.footer__contact-link:hover {
    color: rgba(242, 244, 249, 0.95);
}

/* Línea divisora magenta */
.footer__divider {
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    margin: var(--space-5) 0;
}

/* Dirección / horario */
.footer__address {
    font-size: var(--text-sm);
    color: rgba(242, 244, 249, 0.45);
    line-height: var(--leading-loose);
}

/* Listas con iconos de pin */
.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__list-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__list-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-fast), transform var(--transition-spring);
}

.footer__list-icon svg {
    width: 10px;
    height: 10px;
    color: var(--color-white);
    stroke-width: 2.5;
}

.footer__list-item:hover .footer__list-icon {
    background: var(--color-primary-light);
    transform: scale(1.08);
}

.footer__link {
    font-size: var(--text-sm);
    color: rgba(242, 244, 249, 0.75);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: rgba(242, 244, 249, 0.95);
}

/* Redes sociales — estilo plain (sin caja) */
.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: rgba(242, 244, 249, 0.5);
}

.footer__social-link:hover {
    background: var(--color-primary);
    color: white;
}

.footer__social-link svg {
    width: 16px;
    height: 16px;
}

.footer__social--plain {
    gap: var(--space-4);
    align-items: center;
}

.footer__social-link--plain {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    color: rgba(242, 244, 249, 0.7);
}

.footer__social-link--plain:hover {
    background: transparent;
    color: var(--color-white);
}

.footer__social-link--plain svg {
    width: 20px;
    height: 20px;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer__copy {
    font-size: var(--text-xs);
    color: rgba(242, 244, 249, 0.3);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    font-size: var(--text-xs);
    color: rgba(242, 244, 249, 0.3);
    transition: color var(--transition-fast);
}

.footer__legal a:hover {
    color: rgba(242, 244, 249, 0.6);
}

/* ============================================================
       SCROLL REVEAL ANIMATION
    ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 {
    transition-delay: 0.1s;
}

.reveal--delay-2 {
    transition-delay: 0.2s;
}

.reveal--delay-3 {
    transition-delay: 0.3s;
}

.reveal--delay-4 {
    transition-delay: 0.4s;
}

/* ============================================================
       RESPONSIVE
    ============================================================ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        display: none;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how__grid::before {
        display: none;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__item:nth-child(2)::after {
        display: none;
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .footer__grid>*:nth-child(even) {
        border-right: none;
    }

    .footer__grid>*:nth-child(odd):not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer__grid>* {
        padding: var(--space-6) var(--space-6);
    }

    .footer__grid>*:first-child {
        padding-left: var(--space-6);
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: var(--space-6);
    }

    .footer__grid>*:nth-child(4) {
        border-right: none;
    }

    .noticias__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .noticias__grid .news-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 560px;
        justify-self: center;
        width: 100%;
    }

    /*ejes — 2 columnas en 1024px */
    .ejes__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .eje-card,
    .eje-card:first-child,
    .eje-card:last-child {
        border-radius: var(--radius-xl);
        grid-column: auto;
        min-height: 420px;
    }

    .eje-card__body {
        padding: var(--space-6);
    }

    /*CHACO 100% CONECTADO*/
    .chaco-conectado__body {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .chaco-video {
        max-width: 720px;
        width: 100%;
    }

    .chaco-items {
        grid-template-columns: 1fr 1fr;
    }

    /*Plantas raes 1024*/
    .raees {
        min-height: 480px;
        /* En tablet desactivamos el parallax para mejor rendimiento */
        background-attachment: scroll;
    }

    .raees__content {
        max-width: 520px;
    }

    .raees__container {
        padding-block: var(--space-20);
    }
}

/* Between 900px and 1024px — nav is already in mobile mode */
@media (min-width: 901px) and (max-width: 1024px) {
    .nav__menu {
        display: flex;
    }

    .nav__actions {
        display: flex;
    }

    .nav__toggle {
        display: none;
    }

    .nav__link {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-2);
    }

    .nav__actions .btn--sm {
        font-size: 0.7rem;
        padding: var(--space-2) var(--space-3);
    }
}

@media (max-width: 900px) {
    :root {
        --nav-height: 64px;
    }

    .nav__menu,
    .nav__actions {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .section {
        padding-block: var(--space-16);
    }

    .section--lg {
        padding-block: var(--space-20);
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .how__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__item::after {
        display: none !important;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .pricing-card--featured {
        padding-top: calc(var(--space-8) + var(--space-6));
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer__grid>* {
        padding: var(--space-6) 0;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .footer__grid>*:first-child {
        padding-left: 0;
        grid-column: auto;
    }

    .footer__grid>*:last-child {
        border-bottom: none;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .noticias__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
        margin-top: var(--space-8);
    }

    .noticias__grid .news-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .noticias__footer {
        margin-top: var(--space-8);
    }
}

/* Tablet portrait / mobile grande → 1 columna */
@media (max-width: 760px) {
    .ejes {
        padding-block: var(--space-16);
    }

    .ejes__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .eje-card,
    .eje-card:first-child,
    .eje-card:last-child {
        border-radius: var(--radius-xl);
        grid-column: auto;
        min-height: 320px;
    }

    .eje-card__title {
        font-size: var(--text-2xl);
    }

    .eje-card__body {
        padding: var(--space-6);
    }

    .eje-card__cta {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* En tablets/móviles mostrar siempre la descripción */
    .eje-card__desc {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Desactivar la elevación en hover en pantallas pequeñas */
    .eje-card:hover {
        transform: none;
        box-shadow: none;
    }

    .eje-card:hover .eje-card__body {
        transform: none;
    }

    .eje-card:hover .eje-card__title {
        transform: none;
    }

    /*chaco 100% conectado 760 tablet*/

    .chaco-conectado__header {
        margin-bottom: var(--space-10);
    }

    .chaco-conectado__body {
        gap: var(--space-8);
    }

    .chaco-items {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .chaco-item:hover {
        transform: none;
    }

    /*plantas raees 760px*/

    .raees {
        min-height: auto;
        background-position: center top;
    }

    .raees__overlay {
        background:
            linear-gradient(to bottom,
                rgba(0, 32, 58, 0.7) 0%,
                rgba(0, 32, 58, 0.88) 100%),
            linear-gradient(135deg, rgba(236, 38, 143, 0.15) 0%, transparent 60%);
    }

    .raees__container {
        padding-block: var(--space-16);
    }

    .raees__content {
        max-width: 100%;
        gap: var(--space-5);
    }

    .raees__title {
        font-size: var(--text-4xl);
    }

    .raees__cta {
        align-self: stretch;
        justify-content: center;
    }
}

/* Mobile — 640px */
@media (max-width: 640px) {
    .noticias__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    /* Cancelar el override del tercer elemento */
    .noticias__grid .news-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
        justify-self: auto;
    }

    .news-card__body {
        padding: var(--space-5);
    }

    .news-card__title {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    :root {
        --space-24: 4rem;
        --space-32: 5rem;
    }

    .u-container {
        padding-inline: var(--space-4);
    }

    .hero__inner {
        padding-top: calc(var(--nav-height) + var(--space-4));
        padding-bottom: var(--space-8);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__trust {
        margin-top: var(--space-8);
    }

    .cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat__value {
        font-size: var(--text-5xl);
    }

    .logos__track {
        gap: var(--space-5);
    }

    .logos__item {
        font-size: var(--text-base);
    }

    .noticias__grid {
        gap: var(--space-4);
        margin-top: var(--space-6);
    }

    .news-card__body {
        padding: var(--space-4);
        gap: var(--space-2);
    }

    .noticias__footer {
        margin-top: var(--space-6);
    }

    /* En móviles muy pequeños el botón "Ver todas" ocupa el ancho */
    .noticias__footer .btn {
        width: 100%;
        justify-content: center;
    }

    /*480px ejes — 1 columna */

    .ejes__grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .eje-card,
    .eje-card:first-child,
    .eje-card:last-child {
        min-height: 300px;
        border-radius: var(--radius-lg);
    }

    .eje-card__header {
        padding: var(--space-5) var(--space-5) 0;
    }

    .eje-card__body {
        padding: var(--space-5);
        gap: var(--space-2);
    }

    .eje-card__header .eje-card__title {
        font-size: var(--text-lg);
    }

    .eje-card__desc {
        font-size: var(--text-xs);
    }
}

/* Extra small — 320px */
@media (max-width: 360px) {
    :root {
        --space-24: 3rem;
        --space-32: 4rem;
        --nav-height: 60px;
    }

    .u-container {
        padding-inline: var(--space-3);
    }

    .hero__title {
        font-size: var(--text-3xl);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }

    .section__title {
        font-size: var(--text-2xl);
    }

    .hero__eyebrow {
        font-size: 0.65rem;
    }

    .btn--lg {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat__value {
        font-size: var(--text-4xl);
    }

    .stats__item {
        padding: var(--space-8) var(--space-4);
    }

    .nav__logo-text {
        font-size: var(--text-lg);
    }

    .logos__track {
        gap: var(--space-4);
    }

    .logos__item {
        font-size: var(--text-sm);
    }

    .card {
        padding: var(--space-6);
    }

    .pricing-card {
        padding: var(--space-6);
    }

    .testimonial {
        padding: var(--space-6);
    }

    /*Chaco 100% conectado*/
    .chaco-conectado__header {
        margin-bottom: var(--space-8);
    }

    .chaco-conectado__desc {
        font-size: var(--text-base);
    }

    .chaco-item {
        padding: var(--space-4);
        gap: var(--space-3);
    }

    .chaco-item__icon {
        width: 38px;
        height: 38px;
    }

    .chaco-item__icon svg {
        width: 18px;
        height: 18px;
    }

    .chaco-item__title {
        font-size: var(--text-sm);
    }

    .chaco-item__desc {
        font-size: var(--text-xs);
    }

    /*plantas raees 360px*/

    .raees__container {
        padding-block: var(--space-12);
    }

    .raees__content {
        gap: var(--space-4);
    }

}

/* ============================================================
   STATS — FONDO BLANCO
============================================================ */
.section--stats-white {
    background: var(--color-white);
}

.section--stats-white .stats__item:not(:last-child)::after {
    background: rgba(0, 32, 58, 0.08);
}

.section--stats-white .stat__label {
    color: var(--color-text-muted);
}

/* ============================================================
   EJES CARDS — NUEVO DISEÑO 3×2 CON OVERLAYS
============================================================ */

/* Grid: 3 columnas, 2 filas automáticas */
.ejes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

/* Cards todas con border-radius uniforme */
.eje-card,
.eje-card:first-child,
.eje-card:last-child {
    border-radius: var(--radius-xl);
    min-height: 500px;
}

/* ── Header del card (tag + título en la parte superior) ── */
.eje-card__header {
    position: relative;
    z-index: 2;
    padding: var(--space-6) var(--space-6) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Tag uppercase pequeño */
.eje-card__tag {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

/* Título posicionado en el header (no en body) */
.eje-card__header .eje-card__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-lg), 1.8vw, var(--text-2xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-snug);
    color: var(--color-white);
    margin: 0;
    padding-top: var(--space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.35s ease;
}

.eje-card:hover .eje-card__header .eje-card__title {
    color: #fff;
}

/* Body empujado al fondo — reset min-height del diseño anterior */
.eje-card__body {
    padding: var(--space-6);
    min-height: auto !important;
}

/* El título en el header no debe tener el transform del hover del body */
.eje-card:hover .eje-card__header .eje-card__title {
    transform: none;
}

/* ── Overlays por tipo de card ── */

/* Pink/Magenta (Telecomunicaciones, Seguridad) */
.eje-card--overlay-pink .eje-card__overlay {
    background: linear-gradient(180deg,
            rgba(185, 15, 95, 0.88) 0%,
            rgba(220, 30, 115, 0.78) 35%,
            rgba(236, 38, 143, 0.55) 65%,
            rgba(180, 15, 90, 0.28) 100%);
}

.eje-card--overlay-pink:hover .eje-card__overlay {
    background: linear-gradient(180deg,
            rgba(185, 15, 95, 0.94) 0%,
            rgba(220, 30, 115, 0.85) 35%,
            rgba(236, 38, 143, 0.65) 65%,
            rgba(180, 15, 90, 0.35) 100%);
}

/* Rose/Crimson (Internet Satelital) */
.eje-card--overlay-rose .eje-card__overlay {
    background: linear-gradient(180deg,
            rgba(160, 20, 70, 0.90) 0%,
            rgba(200, 30, 90, 0.78) 35%,
            rgba(220, 40, 100, 0.55) 65%,
            rgba(160, 15, 65, 0.28) 100%);
}

.eje-card--overlay-rose:hover .eje-card__overlay {
    background: linear-gradient(180deg,
            rgba(160, 20, 70, 0.96) 0%,
            rgba(200, 30, 90, 0.86) 35%,
            rgba(220, 40, 100, 0.65) 65%,
            rgba(160, 15, 65, 0.35) 100%);
}

/* Dark Crimson (Software) */
.eje-card--overlay-crimson .eje-card__overlay {
    background: linear-gradient(180deg,
            rgba(120, 10, 35, 0.92) 0%,
            rgba(170, 18, 55, 0.80) 35%,
            rgba(200, 25, 65, 0.58) 65%,
            rgba(140, 10, 45, 0.28) 100%);
}

.eje-card--overlay-crimson:hover .eje-card__overlay {
    background: linear-gradient(180deg,
            rgba(120, 10, 35, 0.97) 0%,
            rgba(170, 18, 55, 0.88) 35%,
            rgba(200, 25, 65, 0.68) 65%,
            rgba(140, 10, 45, 0.35) 100%);
}

/* Navy Blue (Datacenter, I+D+i) */
.eje-card--overlay-navy .eje-card__overlay {
    background: linear-gradient(180deg,
            rgba(0, 20, 50, 0.92) 0%,
            rgba(0, 40, 90, 0.80) 35%,
            rgba(6, 53, 101, 0.58) 65%,
            rgba(0, 25, 60, 0.28) 100%);
}

.eje-card--overlay-navy:hover .eje-card__overlay {
    background: linear-gradient(180deg,
            rgba(0, 20, 50, 0.97) 0%,
            rgba(0, 40, 90, 0.88) 35%,
            rgba(6, 53, 101, 0.68) 65%,
            rgba(0, 25, 60, 0.35) 100%);
}

/* ── Responsive: 2 columnas en tablet ── */
@media (max-width: 1024px) {
    .ejes__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .eje-card,
    .eje-card:first-child,
    .eje-card:last-child {
        border-radius: var(--radius-xl);
        grid-column: auto;
        min-height: 420px;
    }

    .eje-card__header .eje-card__title {
        font-size: var(--text-xl);
    }
}

/* ── Responsive: 1 columna en móvil ── */
@media (max-width: 600px) {
    .ejes__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .eje-card,
    .eje-card:first-child,
    .eje-card:last-child {
        min-height: 360px;
    }

    .eje-card__header {
        padding: var(--space-5) var(--space-5) 0;
    }

    .eje-card__header .eje-card__title {
        font-size: var(--text-lg);
    }

    .eje-card__cta {
        opacity: 1;
        transform: none;
    }

    .eje-card__desc {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   SOMOS EXPANSIÓN — banner full-width con mapa de fondo
============================================================ */
.expansion {
    position: relative;
    background: var(--color-primary);
    overflow: hidden;
    text-align: center;
    padding-block: var(--space-24);
}

.expansion__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.expansion__bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.32;
}

.expansion .u-container {
    position: relative;
    z-index: 1;
}

.expansion__eyebrow {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-5);
}

.expansion__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    color: var(--color-white);
    line-height: var(--leading-tight);
    max-width: 820px;
    margin-inline: auto;
}

/* ── Expansion slides — rotación de títulos ── */
.expansion__slides {
    display: grid;
    align-items: start;
}

.expansion__slide {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
    pointer-events: none;
}

.expansion__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.expansion__slide.is-leaving {
    opacity: 0;
    transform: translateY(-18px);
    transition:
        opacity 0.38s ease,
        transform 0.38s ease;
}

/* ============================================================
   SECCIÓN LOGO GOBIERNO DEL CHACO
============================================================ */
.secgob {
    background: var(--color-white);
    padding-block: var(--space-10);
}

.secgob__link {
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.secgob__card {
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6) var(--space-10);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 32, 58, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

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

.secgob__logo {
    height: auto;
    width: 88%;
    max-width: 780px;
    object-fit: contain;
    display: block;
}

@media (max-width: 600px) {
    .secgob__card {
        padding: var(--space-8) var(--space-12);
    }

    .secgob__logo {
        width: 85%;
    }
}

/* ============================================================
   CONECTIVIDAD SIN LÍMITES — sección two-column
============================================================ */
.conectividad {
    background: var(--color-dark);
}

.conectividad__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    padding-block: var(--space-4);
}

.conectividad__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: var(--font-extrabold);
    line-height: var(--leading-tight);
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.conectividad__desc {
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: rgba(240, 244, 248, 0.75);
    margin-bottom: var(--space-10);
    max-width: 420px;
}

.conectividad__img-wrap {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.conectividad__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.conectividad__img-label {
    position: absolute;
    top: var(--space-5);
    left: var(--space-5);
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    letter-spacing: 0.06em;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
}

@media (max-width: 820px) {
    .conectividad__inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .conectividad__desc {
        max-width: 100%;
    }
}

/* ============================================================
   BOTÓN IR ARRIBA
============================================================ */
.back-to-top {
    position: fixed;
    /* Apila encima del WhatsApp FAB: bottom(2rem) + alto(54px) + gap(12px) */
    bottom: calc(var(--space-8) + 54px + 12px);
    right: var(--space-8);
    z-index: 199;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-dark-2);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-white);
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity var(--transition-base),
        visibility var(--transition-base),
        transform var(--transition-base),
        background var(--transition-base),
        box-shadow var(--transition-base);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gradient-brand);
    box-shadow: var(--shadow-primary-sm);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: scale(0.94);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.back-to-top__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.back-to-top:hover .back-to-top__icon {
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .back-to-top {
        /* Sobre el WhatsApp móvil: bottom(1.5rem) + alto(50px) + gap(10px) */
        bottom: calc(var(--space-6) + 50px + 10px);
        right: var(--space-5);
        width: 40px;
        height: 40px;
    }

    .back-to-top__icon {
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   WHATSAPP FLOTANTE
============================================================ */
.whatsapp-fab {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: 200;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.40),
        0 2px 8px rgba(0, 0, 0, 0.18);
    transition:
        transform var(--transition-spring),
        box-shadow var(--transition-base),
        background var(--transition-fast);
    color: #ffffff;
}

.whatsapp-fab:hover {
    transform: scale(1.10) translateY(-2px);
    background: #1ebe5a;
    box-shadow:
        0 8px 32px rgba(37, 211, 102, 0.55),
        0 4px 14px rgba(0, 0, 0, 0.20);
}

.whatsapp-fab:active {
    transform: scale(0.96);
}

.whatsapp-fab:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.55);
    outline-offset: 3px;
}

.whatsapp-fab__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .whatsapp-fab {
        bottom: var(--space-6);
        right: var(--space-5);
        width: 50px;
        height: 50px;
    }

    .whatsapp-fab__icon {
        width: 25px;
        height: 25px;
    }
}

/* ============================================================
   NAV DROPDOWNS
============================================================ */

/* ── Item padre con posición relativa ── */
.nav__item--dropdown {
    position: relative;
}

/* ── Botón toggle: mismos estilos que nav__link ── */
.nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
}

/* Flecha chevron */
.nav__dropdown-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.nav__item--dropdown.is-open>.nav__dropdown-toggle .nav__dropdown-chevron {
    transform: rotate(180deg);
}

/* ── Panel desplegable ── */
.nav__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 260px;
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.20);
    overflow: hidden;
    z-index: 300;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
    pointer-events: none;
}

.nav__item--dropdown.is-open>.nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Ítem dentro del desplegable ── */
.nav__dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--color-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.nav__dropdown-item:last-child {
    border-bottom: none;
}

.nav__dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Ícono círculo con flecha ── */
.nav__dropdown-item-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background var(--transition-fast),
        transform var(--transition-spring);
}

.nav__dropdown-item:hover .nav__dropdown-item-icon {
    background: var(--color-primary-light);
    transform: scale(1.08);
}

.nav__dropdown-item-icon svg {
    width: 13px;
    height: 13px;
    color: var(--color-white);
    stroke-width: 2.5;
}

/* ── Contenedor texto + línea ── */
.nav__dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav__dropdown-item-label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    line-height: 1.2;
    transition: color var(--transition-fast);
}

.nav__dropdown-item:hover .nav__dropdown-item-label {
    color: rgba(255, 255, 255, 0.95);
}

/* ── Línea rosa que se expande en hover ── */
.nav__dropdown-item-line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width 0.30s ease, background 0.20s ease;
}

.nav__dropdown-item:hover .nav__dropdown-item-line {
    width: 64px;
    background: var(--color-primary-light);
}

/* ============================================================
   MOBILE SUBMENÚ (acordeón)
============================================================ */
.nav__mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.nav__mobile-dropdown-toggle .nav__dropdown-chevron {
    transition: transform var(--transition-base);
}

.nav__mobile-dropdown-toggle[aria-expanded="true"] .nav__dropdown-chevron {
    transform: rotate(180deg);
}

.nav__mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-left: var(--space-4);
    border-left: 2px solid var(--color-primary-muted);
    margin-left: var(--space-4);
    margin-bottom: var(--space-2);
}

.nav__mobile-submenu.is-open {
    display: flex;
}

.nav__mobile-submenu-item {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
}

.nav__mobile-submenu-item:hover {
    color: var(--color-primary);
    background: var(--color-primary-subtle);
}

/* Entre 901px–1024px: ajustar font-size del toggle para que entre */
@media (min-width: 901px) and (max-width: 1024px) {

    .nav__link,
    .nav__dropdown-toggle {
        font-size: var(--text-sm);
    }

    .nav__action-link {
        font-size: var(--text-sm);
    }
}

/* ============================================================
   NAV ACTIONS — Sumate | (IA) | Contactate
============================================================ */

/* Contenedor hereda el flex existente de nav__actions */
.nav__actions {
    align-items: center;
    gap: var(--space-3);
}

/* Links de texto (Sumate / Contactate) */
.nav__action-link {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav__action-link:hover {
    color: var(--color-primary);
}

.nav--scrolled .nav__action-link {
    color: var(--color-text-body);
}

.nav__mobile .nav__action-link {
    color: var(--color-text-body);
}

/* Separador vertical */
.nav__action-sep {
    display: inline-block;
    width: 2px;
    height: 16px;
    /* background: var(--color-text-muted); */
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0.35;
    border-radius: 1.5px;
    flex-shrink: 0;
}

/* Círculo IA — preparado para imagen futura */
.nav__action-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.nav__action-avatar:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-muted);
}

.nav--scrolled .nav__action-avatar {
    border-color: var(--color-text-body);
}

/* Texto "IA" dentro del círculo */
.nav__action-avatar-initials {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    color: #FFFFFF;
    letter-spacing: 0.03em;
    line-height: 1;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.nav__action-avatar:hover .nav__action-avatar-initials {
    color: var(--color-primary);
}

.nav--scrolled .nav__action-avatar-initials {
    color: var(--color-text-body);
}

.nav--scrolled .nav__action-sep {
    background-color: var(--color-text-body);
}

/* ============================================================
   NAV LOGO MÓVIL
============================================================ */

/* Oculto en desktop */
.nav__logo-mobile {
    display: none;
}

/* nav__inner necesita position relative para el posicionamiento absoluto */
.nav__inner {
    position: relative;
}

/* ============================================================
   ACCIONES EN MENÚ MÓVIL (Sumate | IA | Contactate)
============================================================ */
.nav__mobile-ia-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-4) 0 var(--space-2);
    border-top: 1px solid var(--color-light-2);
    margin-top: var(--space-2);
}

/* El texto IA en mobile — con círculo */
.nav__action-ia-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-text-body);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    color: var(--color-text-body);
    letter-spacing: 0.03em;
    line-height: 1;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE: logo móvil visible en ≤900px
============================================================ */
@media (max-width: 900px) {

    /* Mostrar logo centrado en la barra de nav */
    .nav__logo-mobile {
        display: grid;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        line-height: 0;
    }

    .nav__logo-mobile__img {
        height: 30px;
        width: auto;
        object-fit: contain;
        display: block;
        grid-column: 1;
        grid-row: 1;
        transition:
            opacity 0.30s ease,
            transform 0.30s ease,
            visibility 0.30s ease;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
    }

    .nav__logo-mobile__img--initial {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav__logo-mobile__img--scroll {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-6px);
        pointer-events: none;
    }

    .nav--scrolled .nav__logo-mobile__img--initial {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-6px);
        pointer-events: none;
    }

    .nav--scrolled .nav__logo-mobile__img--scroll {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Ajustar color de los action links en nav mobile-actions */
    .nav__mobile-actions .nav__action-link {
        font-size: var(--text-base);
        color: var(--color-text-body);
    }

    .nav__mobile-actions .nav__action-sep {
        background: var(--color-text-muted);
        opacity: 0.4;
    }
}

/* ============================================================
   HERO CODE STAGE — ventanas de código animadas
============================================================ */

.hero__code-stage {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: visible;
    pointer-events: none;
}

.code-win {
    position: absolute;
    background: rgba(0, 20, 40, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
    transition: opacity 0.6s ease;
    pointer-events: none;
    will-change: opacity;
    z-index: 1;
}

.code-win__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-win__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.code-win__dot--r {
    background: #ff5f56;
}

.code-win__dot--y {
    background: #febc2e;
}

.code-win__dot--g {
    background: #28c840;
}

.code-win__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    margin-left: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.code-win__body {
    padding: 12px 14px 14px;
}

.code-win__pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    line-height: 1.65;
    color: rgba(210, 230, 255, 0.70);
    white-space: pre;
    overflow: hidden;
}

.code-win__code {
    display: block;
}

.code-win__cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: rgba(236, 38, 143, 0.85);
    vertical-align: text-bottom;
    margin-left: 1px;
    animation: cursorBlink 0.9s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Estilos generales de la sección */
.soluciones-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Título */
.soluciones-title {
    color: #0d325c;
    /* Azul oscuro matching */
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .soluciones-container {
        padding: 32px 16px;
    }

    .soluciones-title {
        font-size: 2.2rem;
        margin-bottom: 28px;
    }

    .soluciones-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .soluciones-title {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .solucion-item {
        width: 110px;
    }

    .solucion-item img {
        width: 84px;
        height: 84px;
        margin-bottom: 12px;
    }

    .solucion-item span {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

/* Contenedor de la lista de soluciones */
.soluciones-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    /* Permite adaptarse mejor a pantallas más pequeñas */
}

/* Tarjeta individual (Enlace) */
.solucion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 130px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Efecto hover suave al pasar el cursor sobre la opción */
.solucion-item:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

/* Estilo para las imágenes SVG */
.solucion-item img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* Estilo para los textos */
.solucion-item span {
    color: #063565;
    /* font-weight: 700; */
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;


    /* color: #183e68; */
    /* font-size: 25px; */
    font-weight: 550;
    /* line-height: 1.35; */
    margin-bottom: 28px;
}

/*============================================================CONTACTO: Formulario "¿Querés saber más..."

============================================================*/ .sw-contact.sw-contact--pink {
    background: var(--color-primary);
    padding-block: var(--space-16);
}

.sw-contact__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--space-10);
}

.sw-contact__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: var(--font-extrabold);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.sw-contact__subtitle {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

.sw-contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-5);
}

.sw-contact__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.sw-contact__field label {
    color: var(--color-white);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.sw-contact__field input,
.sw-contact__field select,
.sw-contact__field textarea {
    background: var(--color-white);
    border: none;

    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-dark);
}

.sw-contact__field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300203a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    background-size: 16px;
    padding-right: var(--space-10);
    cursor: pointer;
}

.sw-contact__field input:focus,
.sw-contact__field select:focus,
.sw-contact__field textarea:focus {
    outline: 2px solid var(--color-dark);
    outline-offset: 2px;
}

.sw-contact__field--full {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
}

.sw-contact__field--full textarea {
    resize: vertical;
    min-height: 130px;
}

.sw-contact__submit-wrap {
    text-align: center;
}

.sw-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md, 6px);
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: background var(--transition-fast, 0.2s ease), transform var(--transition-fast, 0.2s ease);
}

.sw-contact__submit:hover {
    background: var(--color-dark-2);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 720px) {
    .sw-contact__row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

.rosa {
    background-color: #e6237a;

}
