/*
 * Tema site · colores y movimiento en todo el sitio (2.14.9, 2026-12-01).
 * Lleva a las demás páginas lo que se hizo en la portada (site-home-fx.css), sin la línea de luz. Se carga en todas las
 * páginas de la tienda (layouts/storefront.blade.php); la portada suma encima su propia hoja.
 *
 * Paleta del dueño: negro, azul y blanco. Lo oscuro es un azul marino muy profundo, casi negro (#05070d / #0a0f1c):
 * arriba (cabecera + hero) y en el pie; el contenido en blanco. Sin degradados, sin halos y sin punto que late
 * (Impeccable). Botones planos: el relleno sube al pasar el mouse y se hunden al presionar (Emil Kowalski).
 * No cambia el marcado ni los textos. Sin JS (o con «reducir movimiento») todo queda visible.
 */
:root {
    --iw-fx-k0: #05070d;
    --iw-fx-k: #0a0f1c;
    --iw-fx-k2: #111829;
    --iw-fx-k3: #172036;
    --iw-fx-kline: #1d2740;
    --iw-fx-on-k: #f5f7fb;
    --iw-fx-on-k2: #a9b3c6;
    --iw-fx-on-k3: #8c97ab;
    --iw-fx-w: #ffffff;
    --iw-fx-wline: #e5e5e5;
    --iw-fx-text: #05070d;
    --iw-fx-blue: var(--iw-brand, #196cdf);
    --iw-fx-blue-dk: #0a4fb0;
    --iw-fx-sky: #5ea8ff;
    --iw-fx-ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* ==========================================================================
   Hero de las páginas de servicio (Sistema web, Correo, Cursos, Quiénes somos): en negro, como la portada
   ========================================================================== */
.iw-site .iw-pv-hero { background: var(--iw-fx-k); color: var(--iw-fx-on-k); }
.iw-site .iw-pv-hero::before { display: none; animation: none; }          /* sin halos azules que derivan */
.iw-site .iw-pv-hero::after {                                            /* la malla de la portada */
    opacity: 1;
    background-image:
        linear-gradient(rgba(94, 168, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 168, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: calc(50% + 28px) 0;
    mask-image: none;
    -webkit-mask-image: none;
}
.iw-site .iw-pv-hero .iw-hero-visual::before { display: none; }
.iw-site .iw-pv-hero__eyebrow { color: var(--iw-fx-sky); }
.iw-site .iw-pv-hero__title { color: var(--iw-fx-on-k); }
.iw-site .iw-pv-hero__lead { color: var(--iw-fx-on-k2); }
.iw-site .iw-pv-hero__title .iw-text-mark {
    color: #fff;
    background-color: transparent;
    background-image: linear-gradient(var(--iw-fx-blue), var(--iw-fx-blue));
}
.iw-site .iw-pv-hero__btn-secondary { color: var(--iw-fx-on-k); text-decoration-color: rgba(255, 255, 255, .35); }
@media (hover: hover) and (pointer: fine) {
    .iw-site .iw-pv-hero__btn-secondary:hover { color: var(--iw-fx-sky); text-decoration-color: var(--iw-fx-sky); }
}
.iw-site .iw-pv-hero__trust { border-top-color: var(--iw-fx-kline); }
.iw-site .iw-pv-hero__trust-text,
.iw-site .iw-pv-hero__trust-meta { color: var(--iw-fx-on-k3); }
.iw-site .iw-pv-hero__trust-text strong,
.iw-site .iw-pv-hero__trust-meta strong { color: var(--iw-fx-on-k); }
.iw-site .iw-pv-hero__stars { color: var(--iw-fx-sky); }
/* Ilustraciones: sin sombra gris debajo (sobre negro se ve sucia). */
.iw-site .iw-pv-hero__photo { filter: none; }
/* Tarjetas flotantes: siguen blancas con texto negro, sin vidrio esmerilado; sin punto que late. */
.iw-site .iw-pv-hero__float {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .8);
}
.iw-site .iw-pv-hero__agents-live-ping { display: none; }

/* ==========================================================================
   Fondo general en blanco: sin halo, degradado ni malla detrás del contenido
   ========================================================================== */
.iw-site .iw-inner-shell { background: var(--iw-fx-w); }
.iw-site .iw-inner-shell::before { display: none; }

.iw-site.iw-site,
.iw-site .iw-main-inner { background-image: none; background-color: var(--iw-fx-w); }
/* Animaciones de Correo y de la guía de add-ons: sin caja celeste detrás (sin contenedores, pedido del dueño). */
.iw-site .iw-svc-alt-row__media,
.iw-site .iw-svc-alt-row__media--lottie,
.iw-site .iw-mod-guide-module__visual {
    background: transparent;
    border-color: transparent;
}

/* Rayita de los títulos de sección: azul liso. */
.iw-site .iw-section-head__line { background: var(--iw-fx-blue); }

/* ==========================================================================
   Paneles de cierre (Quiénes somos, Add-ons, Correo, Cursos): azul marino profundo y liso, sin degradado ni sombra
   ========================================================================== */
/* Cierre de Quiénes somos y Add-ons: sin caja oscura en medio del blanco (pedido del dueño: sin contenedores; lo oscuro
   solo arriba y en el pie). Abierto, entre dos líneas finas; textos oscuros; «Contacto» / «Ver los planes» en azul
   liso y el segundo botón con borde. El marcado trae utilidades con «!» (blanco sobre oscuro), por eso los !important. */
.iw-site .iw-service-cta:not(.iw-service-cta--light),
.iw-site .iw-service-cta--brand {
    background: transparent;
    border: 0;
    border-block: 1px solid var(--iw-fx-wline);
    border-radius: 0;
    box-shadow: none;
    color: var(--iw-fx-text);
}
.iw-site .iw-service-cta--brand .text-white { color: var(--iw-fx-text) !important; }
.iw-site .iw-service-cta--brand [class*="text-white/"],
.iw-site .iw-service-cta--brand .iw-about-cta__quote { color: #525252 !important; }
.iw-site .iw-service-cta--brand .iw-about-cta__quote { border-color: var(--iw-fx-wline); }
.iw-site .iw-service-cta:not(.iw-service-cta--light) .iw-text-mark { --iw-mark-fill: var(--iw-fx-blue-tint, #e8f0fc); color: inherit; }
.iw-site .iw-service-cta--brand a.iw-btn-secondary:first-child {
    background: var(--iw-fx-blue) !important;
    border-color: var(--iw-fx-blue) !important;
    color: #fff !important;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.iw-site .iw-service-cta--brand a.iw-btn-secondary:first-child::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--iw-fx-k);
    transform: translateY(101%);
    transition: transform .45s var(--iw-fx-ease-out);
}
.iw-site .iw-service-cta--brand a.iw-btn-secondary:not(:first-child),
.iw-site .iw-service-cta--brand .iw-btn-ghost-dark {
    background: transparent !important;
    border: 1px solid var(--iw-fx-wline) !important;
    color: var(--iw-fx-text) !important;
}
@media (hover: hover) and (pointer: fine) {
    .iw-site .iw-service-cta--brand a.iw-btn-secondary:first-child:hover { color: #fff !important; }
    .iw-site .iw-service-cta--brand a.iw-btn-secondary:first-child:hover::before { transform: none; }
    .iw-site .iw-service-cta--brand a.iw-btn-secondary:not(:first-child):hover,
    .iw-site .iw-service-cta--brand .iw-btn-ghost-dark:hover { border-color: var(--iw-fx-blue) !important; color: var(--iw-fx-blue) !important; background: transparent !important; }
}
.iw-site .iw-service-cta--brand a:active { transform: scale(.97); }
/* Infraestructura (Correo), en medio del contenido: sin caja; abierto, entre dos líneas finas, sobre blanco. */
.iw-site .iw-svc-highlight {
    background: transparent;
    border: 0;
    border-block: 1px solid var(--iw-fx-wline);
    border-radius: 0;
    box-shadow: none;
    color: var(--iw-fx-text);
}
.iw-site .iw-svc-highlight .iw-display-2 { color: var(--iw-fx-text); }
.iw-site .iw-svc-highlight .iw-type-lead { color: #525252; }
.iw-site .iw-svc-highlight .iw-eyebrow { color: var(--iw-fx-blue); }
.iw-site .iw-svc-highlight .iw-svc-page__note { color: #6b6b6b; }
.iw-site .iw-svc-highlight__action { box-shadow: none; border: 1px solid var(--iw-fx-wline); transition: transform .16s var(--iw-fx-ease-out), border-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
    .iw-site .iw-svc-highlight__action:hover { transform: none; box-shadow: none; border-color: var(--iw-fx-blue); }
}
.iw-site .iw-svc-highlight__action:active { transform: scale(.97); }

/* Barras de las tarjetas flotantes del hero: azul liso. */
.iw-site .iw-pv-hero__slider-fill { background: var(--iw-fx-blue); }
/* Mensual / Anual / Trienal: el activo en un azul más profundo para que se lea bien (contraste AA). */
.iw-site .iw-subscription-period-switch button[aria-pressed="true"] { color: var(--iw-fx-blue-dk); }
/* CRM Chat (Cursos): mismo fondo liso; conserva su verde (marca de CRM Chat) en el botón y el logo de fondo. */
.iw-site .iw-crmchat {
    background: var(--iw-fx-k);
    box-shadow: none;
}
.iw-site .iw-crmchat__btn { background: #25d366; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
    .iw-site .iw-crmchat__btn:hover { background: #3be07a; box-shadow: none; }
}

/* ==========================================================================
   Botones: azul liso; el relleno oscuro sube al pasar el mouse; se hunden al presionar
   ========================================================================== */
.iw-site .iw-pv-hero__btn-primary,
.iw-site .iw-brand-btn:not(.iw-brand-btn--outline) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--iw-fx-blue);
    filter: none;
    transition: transform .16s var(--iw-fx-ease-out), color .2s ease;
}
.iw-site .iw-pv-hero__btn-primary::before,
.iw-site .iw-brand-btn:not(.iw-brand-btn--outline)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--iw-fx-blue-dk);
    transform: translateY(101%);
    transition: transform .45s var(--iw-fx-ease-out);
}
.iw-site .iw-brand-btn:not(.iw-brand-btn--outline)::before { background: var(--iw-fx-k); }
@media (hover: hover) and (pointer: fine) {
    .iw-site .iw-pv-hero__btn-primary:hover,
    .iw-site .iw-brand-btn:not(.iw-brand-btn--outline):hover { filter: none; transform: none; }
    .iw-site .iw-pv-hero__btn-primary:hover::before,
    .iw-site .iw-brand-btn:not(.iw-brand-btn--outline):hover::before { transform: none; }
}
.iw-site .iw-pv-hero__btn-primary:active,
.iw-site .iw-brand-btn:active,
.iw-site .iw-btn-primary:active,
.iw-site .iw-btn-secondary:active { transform: scale(.97); }

/* Botón principal general (Contacto, fichas, formularios): azul liso con el mismo relleno que sube. */
.iw-site .iw-btn-primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--iw-fx-blue);
    filter: none;
}
.iw-site .iw-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--iw-fx-k);
    transform: translateY(101%);
    transition: transform .45s var(--iw-fx-ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .iw-site .iw-btn-primary:hover { filter: none; }
    .iw-site .iw-btn-primary:hover::before { transform: none; }
}
/* Etiqueta «Recomendado» de los planes: azul liso. */
.iw-site .iw-subscription-plan-card__badge:not(.iw-subscription-plan-card__badge--soon) { background: var(--iw-fx-blue); }

/* Planes: la tarjeta destacada en blanco con borde azul (sin tinte ni brillo); su botón, azul liso como los demás. */
.iw-site .iw-subscription-plan-card--featured {
    background: var(--iw-fx-w);
    border-color: var(--iw-fx-blue);
    box-shadow: 0 30px 60px -40px rgba(5, 7, 13, .35);
}
.iw-site .iw-subscription-plan-card--featured .iw-subscription-plan-card__button:not(.iw-subscription-plan-card__button--soon) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--iw-fx-blue);
    filter: none;
}
.iw-site .iw-subscription-plan-card--featured .iw-subscription-plan-card__button:not(.iw-subscription-plan-card__button--soon)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--iw-fx-k);
    transform: translateY(101%);
    transition: transform .45s var(--iw-fx-ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .iw-site .iw-subscription-plan-card__button:hover { filter: none; transform: none; }
    .iw-site .iw-subscription-plan-card--featured .iw-subscription-plan-card__button:hover::before { transform: none; }
}
.iw-site .iw-subscription-plan-card__button:not(.iw-subscription-plan-card__button--soon):active { transform: scale(.97); }

/* ==========================================================================
   Pie en negro en todas las páginas (cierre). La cabecera publica --iw-logo-dark en :root.
   ========================================================================== */
.iw-site .iw-footer-light { background: var(--iw-fx-k0); color: var(--iw-fx-on-k2); border-top: 0; }
.iw-site .iw-footer-light::before { display: none; }
.iw-site .iw-footer-light__body { border-top: 0; }
.iw-site .iw-footer-bottom { background: var(--iw-fx-k0); border-top: 1px solid var(--iw-fx-kline); color: var(--iw-fx-on-k3); }
.iw-site .iw-footer-col-title,
.iw-site .iw-footer-phone { color: var(--iw-fx-on-k); }
.iw-site .iw-footer-link,
.iw-site .iw-footer-meta,
.iw-site .iw-footer-copyright,
.iw-site .iw-footer-copyright p { color: var(--iw-fx-on-k2); }
.iw-site .iw-footer-eyebrow { color: var(--iw-fx-sky); }
/* Íconos de contacto del pie: sin contenedor y centrados con su texto (pedido del dueño). */
.iw-site .iw-footer-contact-item { align-items: center; }
.iw-site .iw-footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--iw-fx-sky);
}
.iw-site .iw-footer-contact-icon svg { width: 1.125rem; height: 1.125rem; }
.iw-site .iw-footer-meta-row { border-color: var(--iw-fx-kline); }
.iw-site .iw-footer-meta-row__social a { border-color: var(--iw-fx-kline); color: var(--iw-fx-on-k2); }
/* Botón de WhatsApp en el verde de WhatsApp (pedido del dueño); texto oscuro para que se lea. */
.iw-site .iw-footer-whatsapp-cta {
    background: #25d366;
    border-color: #25d366;
    color: var(--iw-fx-k0);
    transition: background-color .2s ease, transform .16s var(--iw-fx-ease-out);
}
.iw-site .iw-footer-whatsapp-cta svg { color: var(--iw-fx-k0); }
.iw-site .iw-footer-whatsapp-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
    .iw-site .iw-footer-whatsapp-cta:hover { background: #3be07a; border-color: #3be07a; color: var(--iw-fx-k0); }
    .iw-site .iw-footer-link:hover { color: var(--iw-fx-sky); }
}
.iw-site .iw-footer-logo img {
    object-position: -99999px 0;
    background: var(--iw-logo-dark) left center / contain no-repeat;
}

/* ==========================================================================
   Barra de scroll minimalista (pedido del dueño): fina, sin flechas ni carril, como la del panel.
   Solo pseudos webkit en Chrome/Edge: scrollbar-width/scrollbar-color ahí activan la barra nativa con flechas.
   ========================================================================== */
html:has(body.iw-site)::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
html:has(body.iw-site)::-webkit-scrollbar-track,
html:has(body.iw-site)::-webkit-scrollbar-track-piece,
html:has(body.iw-site)::-webkit-scrollbar-corner { background: transparent; }
html:has(body.iw-site)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
html:has(body.iw-site)::-webkit-scrollbar-thumb { background: rgba(110, 120, 140, .45); border: 0; border-radius: 999px; }
html:has(body.iw-site)::-webkit-scrollbar-thumb:hover { background: rgba(110, 120, 140, .75); }
@supports not selector(::-webkit-scrollbar) {
    html:has(body.iw-site) { scrollbar-width: thin; scrollbar-color: rgba(110, 120, 140, .55) transparent; }
}

/* Una sola barra de scroll: los envoltorios de página recortan lo que se sale con clip (hidden los convertía en una
   segunda zona con scroll propio cuando el movimiento desplaza el hero o las tarjetas). */
.iw-site .iw-svc-page,
.iw-site .iw-pv-page,
.iw-site .iw-pv-page.iw-svc-page--motion { overflow-x: clip; }

/* ==========================================================================
   Estados que usa js/site-fx.js (solo con html.iw-fx)
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* Lo que anima GSAP deja de transicionar transform/opacidad para no pelear con él. */
html.iw-fx [data-iw-fx-owned],
html.iw-fx [data-iw-fx-owned] > * {
    transition-property: color, background-color, border-color, box-shadow, filter !important;
}
.iw-fx-line { overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.iw-fx-word { display: inline-block; }   /* sin will-change fijo: GSAP sube la capa solo mientras anima */

@media (prefers-reduced-motion: reduce) {
    .iw-site .iw-pv-hero__btn-primary::before,
    .iw-site .iw-brand-btn::before { transition: none; }
}

/* Sin el brillo blanco que recorre los botones y paneles en bucle (sin degradados ni destellos, pedido del dueño). */
.iw-site .iw-pv-hero__btn-primary::after,
.iw-site .iw-service-cta::after,
.iw-site .iw-btn-primary::after,
.iw-site .iw-contact-submit::after,
.iw-site .iw-crmchat__btn::after { content: none; animation: none; }
/* Rayita bajo los títulos del pie: azul liso. */
.iw-site .iw-footer-col-title::after { background: var(--iw-fx-sky); }

/* Ficha de servicio (/servicio/…): botón de compra, opción elegida, imagen y barrita de los títulos, lisos. La hoja de
   la ficha se carga después; por eso estos selectores llevan «body» para ganarle. */
body.iw-site .iw-offer .iw-brand-btn:not(.iw-brand-btn--outline) { background: var(--iw-fx-blue); filter: none; }
body.iw-site .iw-offer .iwc-offer__option[aria-current="true"] {
    background: var(--iw-fx-w);
    box-shadow: 0 0 0 1px var(--iw-fx-blue);
}
body.iw-site .iw-offer .iwc-offer__media { background: transparent; }
body.iw-site .iw-offer .iwc-offer__h2::before { background: var(--iw-fx-blue); }
/* Cinta «Próximamente» de la guía de add-ons: lila liso, sin degradado ni sombra. */
.iw-site .iw-mod-guide-module__ribbon { background: #7c3aed; box-shadow: none; }
