@charset "UTF-8";

/* ==========================================================================
   AutoonomIA Global — Hoja de estilos principal
   Sistema de diseño heredado del portal Exquy, adaptado a AutoonomIA Global.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de diseño
   -------------------------------------------------------------------------- */

:root {
    /* Color — sobrescribible desde el Personalizador (ver inc/customizer.php) */
    --color-primary: #2563eb;
    --color-secondary: #7c3aed;
    --color-accent: #06b6d4;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    --bg-dark: #0f172a;
    --bg-dark-soft: #1e293b;
    --bg-light: #ffffff;
    --bg-light-soft: #f8fafc;

    --text-strong: #0f172a;
    --text-base: #334155;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --text-invert: #ffffff;

    --border: #e2e8f0;
    --border-dark: rgba(255, 255, 255, 0.12);

    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    --gradient-dark: linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #0f172a 100%);

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .10);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14);
    --shadow-glow: 0 0 48px rgba(37, 99, 235, .28);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    /* Botones: rectángulo redondeado, como en las referencias enterprise. */
    --radius-btn: 12px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Poppins', var(--font-body);

    --container: 1280px;
    --container-narrow: 880px;
    --gutter: 24px;
    --header-h: 76px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul[class], ol[class] { list-style: none; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-base);
    background: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* WordPress sustituye los emoji por <img class="emoji">. Sin esto heredan el
   display:block de arriba y se estiran dentro de sus contenedores. */
img.emoji {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -.1em;
    background: none;
    padding: 0;
}

a { color: var(--color-primary); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--color-secondary); }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--text-strong);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 2000;
    background: var(--bg-dark);
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section--soft { background: var(--bg-light-soft); }
.section--dark { background: var(--gradient-dark); color: #cbd5e1; }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.section-header {
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: .75rem;
}

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.0625rem;
    color: var(--text-muted);
}

.section--dark .section-subtitle { color: #94a3b8; }

.section-action { text-align: center; margin-top: clamp(40px, 5vw, 56px); }

.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section--dark .gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */

.btn {
    --btn-bg: var(--gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    background: var(--btn-bg);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

.btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active { transform: translateY(0); }

.btn--lg { padding: 1rem 2.1rem; font-size: 1.0625rem; }
.btn--sm { padding: .55rem 1.15rem; font-size: .875rem; }
.btn--block { width: 100%; }

.btn--ghost {
    --btn-bg: transparent;
    border-color: rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--outline {
    --btn-bg: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: #fff; }

.section--dark .btn--outline { border-color: rgba(255, 255, 255, .4); color: #fff; }
.section--dark .btn--outline:hover { background: #fff; color: var(--bg-dark); }

.btn--white { --btn-bg: #fff; color: var(--bg-dark); }
.btn--white:hover { color: var(--color-primary); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--color-primary);
}
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. Cabecera y navegación
   -------------------------------------------------------------------------- */

/* Cabecera clara: el logotipo se muestra sobre su fondo original. */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 4px 22px rgba(15, 23, 42, .10);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.site-brand,
.custom-logo-link { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.site-brand img,
.custom-logo-link img {
    height: 42px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.site-brand__text {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-brand__tagline {
    display: block;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* Menú principal */
.main-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }

.main-nav li { position: relative; }

.main-nav a {
    display: block;
    padding: .6rem 0;
    color: var(--text-base);
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}

/* Con ocho entradas (Productos incluido) el menú no cabe a 1440px con 2rem de hueco. */
@media (max-width: 1500px) {
    .main-nav ul { gap: 1.25rem; }
}

/* Entre el escritorio pequeño y el menú plegable (992px) hay que apretar más. */
@media (max-width: 1400px) and (min-width: 992px) {
    .site-header__inner { gap: 1rem; }
    .site-brand img,
    .custom-logo-link img { max-width: 220px; }
    .main-nav ul { gap: .9rem; }
    .main-nav a { font-size: .875rem; }
}

/* Justo antes del menú plegable no caben siete entradas, idioma y botón:
   el botón sobra aquí (el mismo llamado está en el hero) y el logo se encoge. */
@media (max-width: 1199px) and (min-width: 992px) {
    .header-actions .btn { display: none; }
    .site-brand img,
    .custom-logo-link img { max-width: 180px; }
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { color: var(--color-primary); }

.main-nav .current-menu-item > a::after,
.main-nav .current-menu-ancestor > a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: .2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
}

/* Submenús */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 264px;
    padding: .75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: all .25s var(--ease);
    display: block;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.main-nav .sub-menu a {
    padding: .6rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
}

.main-nav .sub-menu a:hover {
    background: rgba(37, 99, 235, .08);
    color: var(--color-primary);
}

.main-nav .menu-item-has-children > a::before {
    content: '▾';
    float: right;
    margin-left: .4rem;
    font-size: .7em;
}

.header-actions { display: flex; align-items: center; gap: .75rem; }

/* Selector de idioma, patrón Globant: código actual + desplegable. */
.lang-switcher { position: relative; }

.lang-switcher__current {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .8rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-strong);
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .04em;
    cursor: pointer;
    transition: border-color .25s var(--ease), color .25s var(--ease);
}

.lang-switcher__current:hover { border-color: var(--color-primary); color: var(--color-primary); }
.lang-switcher__chevron { font-size: .65em; }

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 72px;
    margin: 0;
    padding: .4rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .22s var(--ease);
    z-index: 1100;
}

.lang-switcher:hover .lang-switcher__menu,
.lang-switcher:focus-within .lang-switcher__menu,
.lang-switcher.is-open .lang-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lang-switcher__menu a {
    display: block;
    padding: .45rem .7rem;
    border-radius: 6px;
    color: var(--text-base);
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .04em;
    text-align: center;
}

.lang-switcher__menu a:hover { background: rgba(37, 99, 235, .08); color: var(--color-primary); }
.lang-switcher__menu a[aria-current="true"] { color: var(--color-primary); }

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    padding: 0;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    margin: 4px auto;
    background: var(--text-strong);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-main { padding-top: var(--header-h); }

/* --------------------------------------------------------------------------
   6. Hero — claro, tipografía gigante, tarjetas flotantes
   Híbrido: lavado degradado y tarjetas de producto (Globant) + palabra
   tecleada y CTA sólido (Master of Code), en la paleta propia.
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    min-height: min(86vh, 800px);
    padding-block: clamp(64px, 9vw, 110px);
    background:
        radial-gradient(1100px 620px at 88% -10%, rgba(124, 58, 237, .14), transparent 60%),
        radial-gradient(1000px 640px at -12% 4%, rgba(37, 99, 235, .13), transparent 55%),
        radial-gradient(720px 480px at 55% 118%, rgba(6, 182, 212, .10), transparent 60%),
        var(--bg-light);
    color: var(--text-base);
    overflow: hidden;
}

.hero > * { position: relative; z-index: 1; }

.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: center;
    text-align: left;
}

@media (min-width: 1024px) {
    .hero__layout { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, .35);
    border-radius: var(--radius-pill);
    background: rgba(37, 99, 235, .07);
    color: var(--color-primary);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.hero__title {
    color: var(--text-strong);
    font-size: clamp(2.5rem, 5.4vw, 4.15rem);
    letter-spacing: -.03em;
    max-width: 15ch;
}

/* Cursor de tecleo sobre la palabra destacada. */
.typed-caret {
    display: inline-block;
    width: 3px;
    height: .92em;
    margin-left: 2px;
    vertical-align: text-top;
    background: var(--color-secondary);
    animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.hero__subtitle {
    max-width: 54ch;
    margin: 1.5rem 0 0;
    font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

/* Tarjetas flotantes de producto, estilo Globant. */
.hero__cards {
    display: grid;
    gap: 1rem;
    padding-block: .5rem;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
    backdrop-filter: blur(6px);
    color: inherit;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.hero-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15, 23, 42, .16); color: inherit; }

.hero-card:nth-child(2) { transform: translateX(clamp(0px, 2.5vw, 34px)); }
.hero-card:nth-child(2):hover { transform: translateX(clamp(0px, 2.5vw, 34px)) translateY(-4px); }

.hero-card__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
}

.hero-card__icon .icon-svg { width: 24px; height: 24px; }

.hero-card__title { display: block; font-weight: 700; color: var(--text-strong); font-size: .975rem; line-height: 1.3; }
.hero-card__meta { display: block; font-size: .8125rem; color: var(--text-muted); margin-top: .15rem; }

/* --------------------------------------------------------------------------
   6 ter. Hero con vídeo de fondo
   El titular manda: el vídeo va detrás de un velo oscuro regulable desde el
   personalizador y todo el texto pasa a blanco para conservar el contraste.
   -------------------------------------------------------------------------- */

.hero--video {
    --scrim: .82;
    background: #060a1a;
    color: #e2e8f0;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Velo: más denso sobre la columna del texto, más leve sobre la imagen. */
.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg,
            rgba(6, 10, 26, var(--scrim)) 0%,
            rgba(6, 10, 26, calc(var(--scrim) * .97)) 36%,
            rgba(6, 10, 26, calc(var(--scrim) * .62)) 68%,
            rgba(6, 10, 26, calc(var(--scrim) * .48)) 100%),
        linear-gradient(to top, rgba(6, 10, 26, .82), transparent 34%);
}

/* Apilado en móvil: el texto ocupa todo el ancho, el velo se vuelve uniforme. */
@media (max-width: 1023px) {
    .hero--video .hero__scrim {
        background:
            linear-gradient(rgba(6, 10, 26, calc(var(--scrim) * .94)), rgba(6, 10, 26, var(--scrim))),
            linear-gradient(to top, rgba(6, 10, 26, .8), transparent 40%);
    }
}

.hero--video .hero__title { color: #fff; }
.hero--video .hero__subtitle { color: #cbd5e1; }

.hero--video .hero__badge {
    border-color: rgba(148, 197, 255, .5);
    background: rgba(148, 197, 255, .13);
    color: #bfdbfe;
}

/* El degradado de marca pierde contraste sobre fondo oscuro: se aclara. */
.hero--video .gradient-text,
.hero--video .trust-item__number {
    background: linear-gradient(120deg, #7dd3fc, #c4b5fd 58%, #f5b8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero--video .typed-caret { background: #7dd3fc; }

/* Tarjetas de servicio en versión cristal oscuro. */
.hero--video .hero-card {
    background: rgba(226, 240, 255, .09);
    border-color: rgba(226, 240, 255, .19);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
    backdrop-filter: blur(14px);
}

.hero--video .hero-card:hover {
    background: rgba(226, 240, 255, .14);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .48);
}

.hero--video .hero-card__title { color: #fff; }
.hero--video .hero-card__meta { color: #a5c4e8; }

.hero--video .trust-bar { border-top-color: rgba(226, 240, 255, .2); }
.hero--video .trust-item__label { color: #a5c4e8; }

.hero--video .btn--outline {
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

.hero--video .btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* Indicadores de confianza */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 1.5rem;
    margin-top: clamp(44px, 5.5vw, 64px);
    padding-top: 2.25rem;
    border-top: 1px solid var(--border);
    text-align: left;
}

.trust-item__number {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-item__label {
    font-size: .875rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6 bis. Banner deslizante
   -------------------------------------------------------------------------- */

.slider {
    position: relative;
    isolation: isolate;
    background: var(--bg-dark);
    overflow: hidden;
}

.slider__track {
    display: grid;
    /* Todas las diapositivas ocupan la misma celda; la altura la marca la más
       alta, así el carrusel no da saltos al cambiar. */
    grid-template-areas: "slide";
    grid-template-columns: minmax(0, 1fr);
}

.slider__slide {
    grid-area: slide;
    position: relative;
    display: grid;
    align-content: center;
    min-height: clamp(400px, 56vh, 620px);
    padding-block: clamp(48px, 7vw, 88px);
}

/* Las diapositivas solo se ocultan una vez que el JavaScript ha tomado el
   control (.is-ready). Antes de eso, y si el JS nunca llega a ejecutarse, la
   primera queda visible: el contenido nunca depende de que una transición
   termine para poder verse. */
.slider.is-ready .slider__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s var(--ease);
}

.slider.is-ready .slider__slide.is-active { opacity: 1; visibility: visible; }

.slider:not(.is-ready) .slider__slide ~ .slider__slide { display: none; }

.slider__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 9s linear;
}

.slider__slide.is-active .slider__image { transform: scale(1); }

.slider__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 15, 34, .96) 0%, rgba(10, 15, 34, .82) 42%, rgba(10, 15, 34, .35) 72%, rgba(10, 15, 34, .2) 100%),
        linear-gradient(180deg, rgba(10, 15, 34, .5) 0%, transparent 30%, rgba(10, 15, 34, .55) 100%);
}

/* Sin max-width propio: hereda el ancho de .container para alinearse con el
   resto de la página. Los hijos sí se limitan, para que el texto no se estire. */
.slider__content { color: #cbd5e1; padding-bottom: 72px; }
.slider__content > * { max-width: 34rem; }

.slider__eyebrow {
    display: inline-block;
    padding: .35rem .9rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(6, 182, 212, .45);
    border-radius: var(--radius-pill);
    background: rgba(6, 182, 212, .12);
    color: #67e8f9;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.slider__title {
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 3.15rem);
    margin-bottom: 1rem;
}

.slider__text { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #cbd5e1; }
.slider__actions { margin-top: 2rem; }

/* La diapositiva activa entra con un desplazamiento suave. Se anima solo la
   posición, nunca la opacidad: si la animación se congelara, el texto seguiría
   siendo legible en lugar de desaparecer. */
.slider.is-ready .slider__slide.is-active .slider__eyebrow,
.slider.is-ready .slider__slide.is-active .slider__title,
.slider.is-ready .slider__slide.is-active .slider__text,
.slider.is-ready .slider__slide.is-active .slider__actions { animation: slider-in .8s var(--ease) both; }

.slider.is-ready .slider__slide.is-active .slider__title { animation-delay: .08s; }
.slider.is-ready .slider__slide.is-active .slider__text { animation-delay: .16s; }
.slider.is-ready .slider__slide.is-active .slider__actions { animation-delay: .24s; }

@keyframes slider-in {
    from { transform: translateY(22px); }
    to { transform: none; }
}

/* Barra de controles: alineada con el contenedor, nunca sobre el texto. */
.slider__controls {
    position: absolute;
    left: 0; right: 0;
    bottom: clamp(18px, 3vw, 32px);
    z-index: 3;
}

.slider__controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.slider__buttons { display: flex; gap: .5rem; }

.slider__btn {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: background .25s var(--ease), border-color .25s var(--ease);
}

.slider__btn:hover { background: var(--color-primary); border-color: transparent; }
.slider__btn span { display: block; margin-top: -4px; }
.slider__btn--pause span { margin-top: 0; }

/* Puntos */
.slider__dots {
    display: flex;
    gap: .6rem;
}

.slider__dot {
    width: 34px; height: 22px;
    padding: 9px 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.slider__dot span {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .35);
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.slider__dot:hover span { background: rgba(255, 255, 255, .6); }
.slider__dot.is-active span { background: var(--color-accent); transform: scaleX(1.25); }

.slider__pause-icon {
    width: 10px; height: 12px;
    border-left: 3px solid #fff;
    border-right: 3px solid #fff;
}

/* Estado pausado: el icono pasa a triángulo de reproducción. */
.slider__btn--pause[aria-pressed="true"] .slider__pause-icon {
    width: 0; height: 0;
    border: 6px solid transparent;
    border-left: 10px solid #fff;
    border-right: 0;
    margin-left: 3px;
}

@media (max-width: 767px) {
    .slider__btn { width: 38px; height: 38px; font-size: 1.3rem; }
    .slider__btn--pause { display: none; }
    .slider__slide { min-height: clamp(360px, 62vh, 520px); }
    .slider__content { padding-bottom: 64px; }
    .slider__veil {
        background:
            linear-gradient(180deg, rgba(10, 15, 34, .7) 0%, rgba(10, 15, 34, .88) 55%, rgba(10, 15, 34, .96) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .slider__image { transition: none; transform: none; }
    .slider__slide.is-active .slider__eyebrow,
    .slider__slide.is-active .slider__title,
    .slider__slide.is-active .slider__text,
    .slider__slide.is-active .slider__actions { animation: none; }
}

/* --------------------------------------------------------------------------
   7. Tarjetas
   -------------------------------------------------------------------------- */

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
}

/* Tamaño propio: si se deja heredar de h2/h3 el titular desborda la tarjeta. */
.card__title { font-size: 1.25rem; line-height: 1.3; margin-bottom: .75rem; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--color-primary); }

.card__text { color: var(--text-muted); font-size: .95rem; flex: 1; }

.card__footer { margin-top: 1.5rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

.tag {
    padding: .3rem .75rem;
    border-radius: var(--radius-pill);
    background: rgba(37, 99, 235, .09);
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 600;
}

.section--dark .card {
    background: rgba(255, 255, 255, .04);
    border-color: var(--border-dark);
    color: #cbd5e1;
}
.section--dark .card__text { color: #94a3b8; }
.section--dark .tag { background: rgba(6, 182, 212, .14); color: #67e8f9; }

/* Tarjeta con imagen (casos, blog) */
.media-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.media-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    display: grid;
    align-items: center;
    justify-items: stretch;
    text-align: center;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .16), transparent 52%),
        var(--gradient-primary);
    font-size: 3rem;
    overflow: hidden;
}

.media-card__thumb > a { display: block; height: 100%; }

/* Icono SVG dentro de la miniatura: aro translúcido + trazo blanco. */
.media-card__thumb .icon-svg {
    width: 76px;
    height: 76px;
    margin-inline: auto;
    padding: 17px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .28);
    color: #fff;
    backdrop-filter: blur(3px);
}

.icon-svg { display: block; }

.card__icon .icon-svg { width: 30px; height: 30px; color: #fff; }
.feature__icon .icon-svg { width: 22px; height: 22px; color: #fff; }

.page-hero .icon-svg {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    padding: 16px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.media-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.media-card__badge {
    position: absolute;
    top: 1rem; left: 1rem;
    padding: .3rem .8rem;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.media-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
.media-card__body > .link-arrow { margin-top: auto; padding-top: 1.25rem; }

.media-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: .75rem;
    font-size: .8125rem;
    color: var(--text-faint);
}

/* Métricas */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(110px, 100%), 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.metric__value {
    display: block;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-success);
}

.metric__label { font-size: .78rem; color: var(--text-muted); }

.section--dark .metrics { border-color: var(--border-dark); }
.section--dark .metric__label { color: #94a3b8; }

/* --------------------------------------------------------------------------
   8. Sección "Por qué"
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.feature-list { display: grid; gap: 1.5rem; margin-top: 2rem; }

.feature {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.feature__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    background: var(--gradient-accent);
    font-size: 1.25rem;
}

.feature__title { font-size: 1.0625rem; margin-bottom: .25rem; }
.feature__text { font-size: .9375rem; color: var(--text-muted); }
.section--dark .feature__text { color: #94a3b8; }

.visual-panel {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
    font-size: 4.5rem;
    overflow: hidden;
}

.visual-panel img { width: 100%; height: 100%; object-fit: cover; }

.floating-stats {
    position: absolute;
    right: -12px; bottom: -18px;
    display: flex;
    gap: 1.75rem;
    padding: 1.25rem 1.75rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.floating-stats .metric__value { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   9. Fases / Precios
   -------------------------------------------------------------------------- */

.phase-grid { display: grid; gap: clamp(20px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.phase {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.phase:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.phase.is-featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12), var(--shadow-md);
}

.phase__flag {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    padding: .3rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.phase__step {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.phase__title { margin: .5rem 0 1rem; }

.phase__price {
    font-family: var(--font-head);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-strong);
    line-height: 1.2;
}

.phase__price small { display: block; font-size: .875rem; font-weight: 500; color: var(--text-muted); }

.phase__duration {
    margin: .75rem 0 1.5rem;
    padding: .4rem .85rem;
    align-self: flex-start;
    border-radius: var(--radius-pill);
    background: var(--bg-light-soft);
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.check-list { display: grid; gap: .7rem; flex: 1; margin: 0 0 1.75rem; padding: 0; list-style: none; }

.check-list li {
    display: flex;
    gap: .65rem;
    font-size: .9375rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: '✓';
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 20px; height: 20px;
    margin-top: .15rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, .14);
    color: var(--color-success);
    font-size: .7rem;
    font-weight: 700;
}

/* Comparativa ROI */
.roi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; }

.roi-stat {
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .04);
}

.roi-stat__value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    background: linear-gradient(135deg, #34d399, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.roi-stat__label { font-size: .9375rem; color: #94a3b8; }

/* --------------------------------------------------------------------------
   9 bis. Fases de prestación del servicio (infografía)
   -------------------------------------------------------------------------- */

.fases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(20px, 2.5vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fase;
}

.fase {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.85rem 1.6rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.fase:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

/* Conector entre fases: hilo continuo que marca el orden obligatorio. */
@media (min-width: 1080px) {
    .fase::after {
        content: '';
        position: absolute;
        top: 3.35rem;
        right: calc(-1 * clamp(20px, 2.5vw, 28px) - 1px);
        width: clamp(20px, 2.5vw, 28px);
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), rgba(37, 99, 235, .25));
    }
    .fase:last-child::after { display: none; }
}

.fase__cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.fase__numero {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fase__icono {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: #fff;
}

.fase__icono .icon-svg { width: 24px; height: 24px; }

.fase__etapa {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.fase__titulo { font-size: 1.3rem; margin: .35rem 0 .2rem; }
.fase__sub { font-size: .9rem; font-weight: 600; color: var(--color-primary); margin-bottom: .85rem; }
.fase__texto { font-size: .9375rem; color: var(--text-muted); }

.fase__lista {
    display: grid;
    gap: .55rem;
    flex: 1;
    margin: 1.15rem 0 1.25rem;
    padding: 0;
    list-style: none;
}

.fase__lista li {
    position: relative;
    padding-left: 1.35rem;
    font-size: .9rem;
    color: var(--text-base);
}

.fase__lista li::before {
    content: '';
    position: absolute;
    left: 0; top: .5em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

.fase__para {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: .8125rem;
    color: var(--text-muted);
}

.fase__para strong { color: var(--text-strong); }

/* Oferta de pago por resultados: banda oscura que rompe el ritmo claro. */
.oferta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    margin-top: clamp(40px, 5vw, 64px);
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 88% 12%, rgba(6, 182, 212, .22), transparent 55%),
        var(--gradient-dark);
    color: #cbd5e1;
    box-shadow: var(--shadow-lg);
}

.oferta__flag {
    display: inline-block;
    padding: .35rem .9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(6, 182, 212, .45);
    border-radius: var(--radius-pill);
    background: rgba(6, 182, 212, .12);
    color: #67e8f9;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.oferta__titulo { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .85rem; }
.oferta__intro { color: #94a3b8; font-size: 1.0625rem; }

.oferta__remate {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-dark);
    color: #fff;
    font-weight: 600;
    font-size: 1.0625rem;
}

.oferta__modelos { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }

.modelo {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05);
}

.modelo__icono {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: #fff;
}

.modelo__icono .icon-svg { width: 20px; height: 20px; }
.modelo__titulo { display: block; color: #fff; font-size: .9875rem; }
.modelo__texto { display: block; margin-top: .15rem; font-size: .875rem; color: #94a3b8; }

/* --------------------------------------------------------------------------
   10. Proceso / Timeline
   -------------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 2rem; counter-reset: step; }

.step { position: relative; counter-increment: step; padding-top: 3.5rem; }

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0; left: 0;
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
}

.step__title { margin-bottom: .5rem; }
.step__text { font-size: .9375rem; color: var(--text-muted); }
.section--dark .step__text { color: #94a3b8; }

/* --------------------------------------------------------------------------
   11. CTA
   -------------------------------------------------------------------------- */

.cta-band {
    position: relative;
    padding-block: clamp(64px, 8vw, 96px);
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 55%);
    pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin: 1rem auto 0; color: rgba(255, 255, 255, .9); }

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.25rem;
}

.contact-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    font-size: .95rem;
}

.contact-chips a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   12. Formularios
   -------------------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.25rem; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
    display: block;
    margin-bottom: .4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text-strong);
}

.form-field .required { color: var(--color-error); }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: .8rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.form-field textarea { min-height: 150px; resize: vertical; }

.form-consent {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    font-size: .8125rem;
    color: var(--text-muted);
}

.form-consent input { width: auto; margin-top: .25rem; }

.form-notice {
    display: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
}

.form-notice.is-visible { display: block; }
.form-notice--ok { background: rgba(16, 185, 129, .12); color: #047857; border: 1px solid rgba(16, 185, 129, .35); }
.form-notice--error { background: rgba(239, 68, 68, .1); color: #b91c1c; border: 1px solid rgba(239, 68, 68, .3); }

.honeypot { position: absolute; left: -9999px; }

/* Calculadora ROI */
.roi-calc {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(28px, 4vw, 48px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.roi-calc__output {
    display: grid;
    align-content: center;
    gap: 1.25rem;
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--gradient-dark);
    color: #cbd5e1;
    text-align: center;
}

.roi-calc__output .metric__value { color: #34d399; font-size: 2.25rem; }
.roi-calc__output .metric__label { color: #94a3b8; }

/* --------------------------------------------------------------------------
   13. Contenido editorial (WYSIWYG)
   -------------------------------------------------------------------------- */

.entry-content > * + * { margin-top: 1.35rem; }
.entry-content h2 { margin-top: 2.75rem; }
.entry-content h3 { margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: .4rem; }
.entry-content img, .entry-content figure { border-radius: var(--radius); }

.entry-content blockquote {
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--color-primary);
    background: var(--bg-light-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-strong);
}

/* Las tablas anchas hacen scroll dentro de su propia caja, nunca en la página. */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
}

.entry-content table { width: 100%; min-width: 520px; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .75rem 1rem; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--bg-light-soft); font-weight: 700; }

.entry-content code {
    padding: .15em .4em;
    background: var(--bg-light-soft);
    border-radius: 4px;
    font-size: .9em;
}

.entry-content pre {
    padding: 1.25rem;
    overflow-x: auto;
    background: var(--bg-dark);
    color: #e2e8f0;
    border-radius: var(--radius);
}

.alignwide { max-width: min(1100px, 100%); margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }

/* Cabecera de página interior */
.page-hero {
    padding-block: clamp(56px, 7vw, 88px);
    background: var(--gradient-dark);
    color: #94a3b8;
    text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 62ch; margin: 1rem auto 0; }

.breadcrumbs { margin-bottom: 1rem; font-size: .8125rem; color: var(--text-faint); }
.breadcrumbs a { color: var(--color-accent); }
.breadcrumbs span + span::before { content: '/'; margin: 0 .5rem; color: var(--text-faint); }

/* Navegación de entradas y paginación */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding-inline: .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--gradient-primary); border-color: transparent; color: #fff; }

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-nav a { display: block; font-weight: 600; }
.post-nav span { display: block; font-size: .8125rem; color: var(--text-faint); font-weight: 400; }

/* --------------------------------------------------------------------------
   14. Barra lateral y widgets
   -------------------------------------------------------------------------- */

.content-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
}

@media (min-width: 1024px) {
    .content-sidebar.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}

.widget + .widget { margin-top: 2rem; }

.widget__title {
    padding-bottom: .75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    font-size: 1.0625rem;
}

.widget ul { display: grid; gap: .6rem; list-style: none; padding: 0; }
.widget a { color: var(--text-base); }
.widget a:hover { color: var(--color-primary); }

/* --------------------------------------------------------------------------
   15. Pie de página
   -------------------------------------------------------------------------- */

.site-footer {
    padding-top: clamp(56px, 7vw, 80px);
    background: var(--bg-dark);
    color: #94a3b8;
    font-size: .9375rem;
}

.site-footer h3 {
    margin-bottom: 1.1rem;
    color: #fff;
    font-size: 1rem;
    letter-spacing: .02em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(28px, 4vw, 48px);
}

.footer-grid > div:first-child { grid-column: span 1; max-width: 340px; }

.site-footer ul { display: grid; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: var(--color-accent); }

.social-links { display: flex; gap: .65rem; margin-top: 1.25rem; }

.social-links a {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    transition: background .25s var(--ease), border-color .25s var(--ease);
}

.social-links a:hover { background: var(--gradient-primary); border-color: transparent; color: #fff; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(40px, 5vw, 64px);
    padding-block: 1.75rem;
    border-top: 1px solid var(--border-dark);
    font-size: .875rem;
}

.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Botón volver arriba */
.to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    box-shadow: var(--shadow-lg);
    transition: all .3s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* --------------------------------------------------------------------------
   16. Animaciones
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .nav-toggle { display: block; }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        max-height: calc(100vh - var(--header-h));
        padding: 1.25rem var(--gutter) 2rem;
        overflow-y: auto;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 32px rgba(15, 23, 42, .12);
        transform: translateY(-120%);
        transition: transform .35s var(--ease);
    }

    .main-nav.is-open { transform: translateY(0); }

    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > div > ul > li { border-bottom: 1px solid var(--border); }
    .main-nav a { padding: .95rem 0; }

    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        margin: 0 0 .75rem;
        padding: 0 0 0 1rem;
        background: none;
        border: none;
        border-left: 2px solid var(--border);
        border-radius: 0;
        box-shadow: none;
    }

    .main-nav .current-menu-item > a::after,
    .main-nav .current-menu-ancestor > a::after { display: none; }

    .header-actions .btn { display: none; }

    .floating-stats { position: static; margin-top: 1.25rem; justify-content: center; }
}

@media (max-width: 599px) {
    :root { --gutter: 18px; }
    .card, .phase { padding: 1.5rem; }
    .media-card__body { padding: 1.35rem; }
    .hero__actions .btn { width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom ul { justify-content: center; }
}

/* --------------------------------------------------------------------------
   18. Impresión
   -------------------------------------------------------------------------- */

@media print {
    .site-header, .site-footer, .to-top, .cta-band, .hero__actions { display: none !important; }
    .site-main { padding-top: 0; }
    body { color: #000; background: #fff; }
}
