/*
 * Itza Pay — páginas públicas (layouts/public.blade.php). Usa los tokens de itza.css;
 * no se cargan Metronic ni Bootstrap, así que aquí va un reset mínimo.
 */

/* ---------- Base ---------- */
html.iz-site-root,
html.iz-site-root body { font-size: 16px !important; }
html.iz-site-root { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html.iz-site-root { scroll-behavior: auto; } }

.iz-site *, .iz-site *::before, .iz-site *::after { box-sizing: border-box; }
.iz-site {
    margin: 0;
    background: var(--iz-page);
    color: var(--iz-text);
    font-family: var(--iz-font);
    line-height: 1.6;
}
:where(.iz-site) :where(h1, h2, h3, p, ul) { margin: 0; }
:where(.iz-site) :where(ul) { padding: 0; list-style: none; }
:where(.iz-site) :where(a) { color: var(--iz-link); }
.iz-site img { max-width: 100%; height: auto; }
.iz-site svg { flex: none; width: 20px; height: 20px; }
.iz-site main:focus { outline: none; }
.iz-site :focus-visible { outline: 2px solid var(--iz-focus); outline-offset: 2px; }

.iz-site-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.iz-site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: var(--iz-radius-md);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color var(--iz-duration) var(--iz-ease), color var(--iz-duration) var(--iz-ease);
}
.iz-site a.iz-site-btn--primary { background: var(--iz-primary-bg); color: var(--iz-primary-on); }
.iz-site a.iz-site-btn--primary:hover { background: var(--iz-primary-hover); }
.iz-site a.iz-site-btn--ghost { border-color: var(--iz-input-border); background: var(--iz-surface); color: var(--iz-heading); }
.iz-site a.iz-site-btn--ghost:hover { background: var(--iz-surface-2); }

/* ---------- Encabezado ---------- */
.iz-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--iz-border);
    background: var(--iz-surface);
}
.iz-site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.iz-site-header__logo { display: inline-flex; }
.iz-site-nav { display: flex; gap: 24px; margin-right: auto; }
.iz-site-nav a { color: var(--iz-text); font-weight: 600; text-decoration: none; }
.iz-site-nav a:hover { color: var(--iz-heading); text-decoration: underline; text-underline-offset: 4px; }
.iz-site-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.iz-site-header__actions .iz-site-btn { min-height: 40px; padding: 8px 16px; }
.iz-site .iz-theme-toggle__icon svg { width: 18px; height: 18px; }
@media (max-width: 767.98px) {
    .iz-site-nav { display: none; }
    .iz-site-header__inner { gap: 12px; }
    .iz-site-header [data-iz-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .iz-site-header .iz-theme-toggle { min-width: 40px; min-height: 40px; justify-content: center; }
}

/* ---------- Hero (siempre sobre navy, en ambos temas) ---------- */
.iz-hero {
    position: relative;
    overflow: hidden;
    background: var(--iz-navy);
    color: rgba(255, 255, 255, 0.86);
}
.iz-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    padding-top: 88px;
    padding-bottom: 96px;
}
.iz-hero__eyebrow { margin-bottom: 12px; color: var(--iz-gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.875rem; }
.iz-hero__title { color: var(--iz-white); font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.01em; }
.iz-hero__title span { display: block; color: var(--iz-gold); }
.iz-hero__lead { max-width: 34rem; margin-top: 20px; font-size: 1.15rem; }
.iz-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Sobre navy: acción dorada con texto navy (9.9:1) en ambos temas */
.iz-hero a.iz-site-btn--primary { background: var(--iz-gold); color: var(--iz-navy); }
.iz-hero a.iz-site-btn--primary:hover { background: var(--iz-gold-hover); }
.iz-site a.iz-site-btn--outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--iz-white); }
.iz-site a.iz-site-btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); }

/* Teléfono ilustrativo */
.iz-phone {
    position: relative;
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border-radius: 36px;
    background: #071721;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.iz-phone__screen { padding: 22px 18px; border-radius: 26px; background: var(--iz-surface); color: var(--iz-text); }
.iz-phone__balance { padding: 18px; border-radius: 18px; background: var(--iz-navy); color: rgba(255, 255, 255, 0.86); font-size: 0.85rem; }
.iz-phone__balance strong { display: block; margin-top: 4px; color: var(--iz-white); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.iz-phone__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.iz-phone__actions span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 14px;
    background: var(--iz-surface-2);
    color: var(--iz-heading);
    font-size: 0.75rem;
    font-weight: 600;
}
.iz-phone__actions svg { color: var(--iz-primary-text); }
.iz-phone__list li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 2px; border-top: 1px solid var(--iz-border); font-size: 0.8rem; }
.iz-phone__list b { color: var(--iz-heading); font-variant-numeric: tabular-nums; }
.iz-phone__list b.is-in { color: var(--iz-success-text); }

/* ---------- Secciones ---------- */
.iz-section { padding: 88px 0; }
.iz-section--alt { background: var(--iz-surface); border-top: 1px solid var(--iz-border); border-bottom: 1px solid var(--iz-border); }
.iz-section__title { color: var(--iz-heading); font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; }
.iz-section__lead { max-width: 40rem; margin-top: 12px; color: var(--iz-text-muted); font-size: 1.1rem; }

.iz-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.iz-feature { padding: 24px; border: 1px solid var(--iz-border); border-radius: var(--iz-radius-lg); background: var(--iz-surface); box-shadow: var(--iz-shadow-sm); }
.iz-feature h3 { margin-top: 16px; color: var(--iz-heading); font-size: 1.1rem; }
.iz-feature p { margin-top: 8px; color: var(--iz-text-muted); }
.iz-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--iz-primary-soft);
    color: var(--iz-primary-text);
}
.iz-feature__icon svg { width: 24px; height: 24px; }

/* Comercios */
.iz-merchants { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
.iz-checklist { display: grid; gap: 12px; margin-top: 24px; }
.iz-checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--iz-text); }
.iz-checklist svg { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--iz-success-soft); color: var(--iz-success-text); }
.iz-merchants__card { padding: 28px; border: 1px solid var(--iz-border); border-radius: var(--iz-radius-lg); background: var(--iz-page); box-shadow: var(--iz-shadow-md); }
.iz-merchants__label { color: var(--iz-text-muted); font-size: 0.9rem; font-weight: 600; }
.iz-merchants__amount { display: block; margin-top: 4px; color: var(--iz-heading); font-size: 2.2rem; font-variant-numeric: tabular-nums; }
.iz-merchants__meta { color: var(--iz-success-text); font-size: 0.9rem; font-weight: 600; }
.iz-merchants__bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 24px; }
.iz-merchants__bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--iz-chart-1); }
.iz-merchants__bars span:last-child { background: var(--iz-gold); }

/* Descarga */
.iz-download__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.iz-download__logo { width: 96px; margin-bottom: 20px; border-radius: 24px; background: var(--iz-white); padding: 8px; box-shadow: var(--iz-shadow-sm); }
.iz-download .iz-section__lead { margin-left: auto; margin-right: auto; }
.iz-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.iz-site a.iz-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    padding: 10px 20px;
    border-radius: var(--iz-radius-md);
    background: var(--iz-dark-bg);
    color: var(--iz-dark-on);
    text-align: left;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}
.iz-site a.iz-store:hover { background: var(--iz-dark-hover); }
.iz-store small { display: block; font-size: 0.75rem; font-weight: 500; }
.iz-store svg { width: 24px; height: 24px; }

/* ---------- Pie ---------- */
.iz-site-footer { padding-top: 56px; background: var(--iz-surface); border-top: 1px solid var(--iz-border); }
.iz-site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.iz-site-footer__tagline { margin-top: 12px; color: var(--iz-text-muted); }
.iz-site-footer__title { margin: 0 0 12px; color: var(--iz-heading); font-size: 0.95rem; }
.iz-site-footer li + li { margin-top: 8px; }
.iz-site-footer a { color: var(--iz-text); text-decoration: underline; text-underline-offset: 3px; }
.iz-site-footer a:hover { color: var(--iz-heading); }
.iz-site-footer__legal { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--iz-border); color: var(--iz-text-muted); font-size: 0.875rem; }

/* ---------- Páginas legales ---------- */
.iz-legal-hero { padding: 64px 0 48px; background: var(--iz-navy); color: rgba(255, 255, 255, 0.86); }
.iz-legal-hero .iz-section__eyebrow,
:root[data-theme="dark"] .iz-legal-hero .iz-section__eyebrow { color: var(--iz-gold); }
.iz-legal-hero h1 { color: var(--iz-white); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.iz-legal-hero__meta { margin-top: 12px; font-size: 0.95rem; }

.iz-legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 88px; }
.iz-legal-toc { position: sticky; top: 92px; }
.iz-legal-toc__title { margin-bottom: 12px; color: var(--iz-text-muted); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.iz-site .iz-legal-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--iz-border); }
.iz-legal-toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: var(--iz-text); font-size: 0.95rem; text-decoration: none; }
.iz-legal-toc a:hover { border-left-color: var(--iz-gold); color: var(--iz-heading); }

.iz-legal { max-width: 760px; }
.iz-legal__section { padding: 28px 32px; border: 1px solid var(--iz-border); border-radius: var(--iz-radius-lg); background: var(--iz-surface); scroll-margin-top: 92px; }
.iz-legal__section + .iz-legal__section { margin-top: 16px; }
.iz-legal h2 { color: var(--iz-heading); font-size: 1.25rem; }
.iz-legal p { margin-top: 12px; text-align: pretty; }
.iz-legal a { color: var(--iz-link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.iz-legal__footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 991.98px) {
    .iz-legal-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
    .iz-legal-toc { position: static; }
}
@media (max-width: 575.98px) {
    .iz-legal__section { padding: 20px; }
}
@media print {
    .iz-site-header, .iz-site-footer, .iz-legal-toc, .iz-legal__footer, .iz-skip-link { display: none !important; }
    .iz-legal-hero { padding: 0 0 16px; background: none; color: #000; }
    .iz-legal-hero h1 { color: #000; }
    .iz-legal-layout { display: block; padding: 0; }
    .iz-legal__section { border: 0; padding: 0 0 12px; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
    .iz-hero__inner, .iz-merchants { grid-template-columns: 1fr; }
    .iz-hero__inner { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
    .iz-features { grid-template-columns: repeat(2, 1fr); }
    .iz-site-footer__grid { grid-template-columns: 1fr 1fr; }
    .iz-site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .iz-section { padding: 64px 0; }
    .iz-features { grid-template-columns: 1fr; }
    .iz-hero__actions .iz-site-btn { flex: 1 1 100%; }
    .iz-site-footer__grid { grid-template-columns: 1fr; }
}

@media (forced-colors: active) {
    .iz-site-btn, .iz-store, .iz-feature, .iz-merchants__card { border: 1px solid CanvasText; }
}

/* =====================================================================
   Animaciones y efectos (public/js/site.js)
   Todo se desactiva con prefers-reduced-motion (bloque al final).
   ===================================================================== */

/* ---------- Aparición al hacer scroll (solo con JS: html.iz-js) ---------- */
.iz-js .iz-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0ms);
}
.iz-js .iz-reveal--left { transform: translateX(-24px); }
.iz-js .iz-reveal--zoom { transform: translateY(24px) scale(0.94); }
.iz-js .iz-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Encabezado ---------- */
.iz-site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.iz-site-header.is-scrolled { box-shadow: var(--iz-shadow-md); }
.iz-site-nav a { position: relative; padding: 4px 0; }
.iz-site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--iz-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.iz-site-nav a:hover { text-decoration: none; }
.iz-site-nav a:hover::after,
.iz-site-nav a.is-active::after { transform: scaleX(1); }
.iz-site-nav a.is-active { color: var(--iz-heading); }

/* ---------- Botones ---------- */
.iz-site-btn { position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.iz-site-btn:hover { transform: translateY(-2px); box-shadow: var(--iz-shadow-md); }
.iz-site-btn:active { transform: translateY(0); }
.iz-site-btn__arrow { display: inline-block; transition: transform 0.25s ease; }
.iz-site-btn:hover .iz-site-btn__arrow { transform: translateX(4px); }
/* Destello que cruza el botón dorado del hero */
.iz-hero a.iz-site-btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: iz-shine 4.5s ease-in-out 1.5s infinite;
}
@keyframes iz-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* ---------- Hero ---------- */
.iz-hero { isolation: isolate; }
.iz-hero__orb { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.iz-hero__orb--gold {
    width: 380px; height: 380px; top: -150px; right: -110px;
    background: radial-gradient(circle at 35% 35%, var(--iz-gold-hover), var(--iz-gold) 60%);
    opacity: 0.92;
    animation: iz-orb-float 12s ease-in-out infinite;
}
.iz-hero__orb--ring {
    width: 540px; height: 540px; bottom: -340px; left: -170px;
    border: 56px solid var(--iz-blue);
    opacity: 0.5;
    animation: iz-orb-float 16s ease-in-out -4s infinite reverse;
}
.iz-hero__orb--dot {
    width: 14px; height: 14px; top: 78%; left: 54%;
    background: var(--iz-green);
    box-shadow: 0 0 0 8px rgba(3, 140, 117, 0.18);
    animation: iz-orb-float 7s ease-in-out infinite;
}
@keyframes iz-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-18px, 22px) scale(1.04); }
}

/* "transforma" con subrayado azul que se dibuja */
.iz-hero__title em { position: relative; font-style: normal; white-space: nowrap; }
.iz-hero__title em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.02em;
    height: 0.14em;
    border-radius: 0.1em;
    background: var(--iz-blue);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s;
}
.iz-hero__title.is-visible em::after,
html:not(.iz-js) .iz-hero__title em::after { transform: scaleX(1); }

/* Teléfono: flota y se inclina con el cursor */
.iz-phone-wrap {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 300px;
    perspective: 1000px;
}
.iz-phone {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.4s ease-out;
    animation: iz-float 6s ease-in-out infinite;
}
@keyframes iz-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}
.iz-phone__balance { position: relative; overflow: hidden; }
/* Brillo que recorre la tarjeta de saldo */
.iz-phone__balance::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: iz-sweep 5s ease-in-out 2s infinite;
}
@keyframes iz-sweep { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.iz-phone__actions span { transition: transform 0.2s ease; }
.iz-phone-wrap:hover .iz-phone__actions span { transform: translateY(-3px); }
.iz-phone-wrap:hover .iz-phone__actions span:nth-child(2) { transition-delay: 60ms; }
.iz-phone-wrap:hover .iz-phone__actions span:nth-child(3) { transition-delay: 120ms; }
/* Movimientos que entran uno por uno */
.iz-js .iz-phone__list li { opacity: 0; transform: translateX(16px); transition: opacity 0.5s ease, transform 0.5s ease; transition-delay: calc(900ms + var(--i) * 180ms); }
.iz-js .iz-phone-wrap.is-visible .iz-phone__list li { opacity: 1; transform: none; }

/* Notificación flotante */
.iz-toast-demo {
    position: absolute;
    z-index: 2;
    top: -20px;
    right: -28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background: var(--iz-surface);
    color: var(--iz-heading);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 18px 40px rgba(7, 23, 33, 0.35);
    animation: iz-toast 4.5s cubic-bezier(0.2, 0.7, 0.2, 1) 2.2s infinite both;
}
.iz-toast-demo__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--iz-success-bg);
    color: var(--iz-success-on);
}
.iz-site .iz-toast-demo__icon svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .iz-toast-demo { background: var(--iz-surface-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
@keyframes iz-toast {
    0% { opacity: 0; transform: translate(-16px, 10px) scale(0.92); }
    10%, 78% { opacity: 1; transform: none; }
    90%, 100% { opacity: 0; transform: translate(0, -10px) scale(0.96); }
}

/* Indicador para bajar */
.iz-hero__scroll {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 22px;
    display: flex;
    justify-content: center;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
}
.iz-hero__scroll span { width: 4px; height: 8px; margin-top: 7px; border-radius: 2px; background: var(--iz-gold); animation: iz-scroll 1.8s ease-in-out infinite; }
@keyframes iz-scroll { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Cinta de servicios ---------- */
.iz-marquee {
    overflow: hidden;
    padding: 18px 0;
    background: var(--iz-gold);
    color: var(--iz-navy);
}
.iz-marquee__track { display: flex; width: max-content; animation: iz-marquee 32s linear infinite; }
.iz-marquee:hover .iz-marquee__track { animation-play-state: paused; }
.iz-site .iz-marquee__group { display: flex; flex: none; }
.iz-marquee__group li { display: flex; align-items: center; padding: 0 22px; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.iz-marquee__group li::after { content: "\2726"; margin-left: 44px; font-size: 0.8em; opacity: 0.6; }
@keyframes iz-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.iz-section__eyebrow { margin-bottom: 8px; color: var(--iz-primary-text); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
:root[data-theme="dark"] .iz-section__eyebrow { color: var(--iz-gold); }

/* Tarjetas: se elevan, el ícono se colorea y una luz sigue al cursor */
.iz-feature,
.iz-merchants__card { position: relative; overflow: hidden; }
.iz-js .iz-feature.iz-reveal,
.iz-feature { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms; }
.iz-js .iz-feature.iz-reveal.is-visible:hover,
.iz-feature:hover { transform: translateY(-6px); border-color: var(--iz-gold); box-shadow: var(--iz-shadow-lg); transition-duration: 0.3s; transition-delay: 0ms; }
.iz-feature__icon { transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.iz-feature:hover .iz-feature__icon { background: var(--iz-primary-bg); color: var(--iz-primary-on); transform: rotate(-8deg) scale(1.08); }
[data-iz-spotlight]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 198, 66, 0.16), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
[data-iz-spotlight]:hover::before { opacity: 1; }
[data-iz-spotlight] > * { position: relative; z-index: 1; }

/* Cómo funciona */
.iz-site .iz-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; padding: 0; list-style: none; }
/* Línea punteada que une los pasos */
.iz-steps::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--iz-input-border) 0 8px, transparent 8px 16px);
    animation: iz-dash 1s linear infinite;
}
@keyframes iz-dash { to { background-position: 16px 0; } }
.iz-step { position: relative; text-align: center; }
.iz-step__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--iz-page);
    border: 2px solid var(--iz-border);
    color: var(--iz-primary-text);
    transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.3s ease;
}
:root[data-theme="dark"] .iz-step__icon { color: var(--iz-gold); }
.iz-site .iz-step__icon svg { width: 30px; height: 30px; }
.iz-step:hover .iz-step__icon { transform: scale(1.1); border-color: var(--iz-gold); }
.iz-step__num {
    position: absolute;
    z-index: 1;
    top: -6px;
    left: calc(50% + 18px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--iz-gold);
    color: var(--iz-navy);
    font-weight: 800;
    font-size: 0.85rem;
}
.iz-step h3 { margin-top: 18px; color: var(--iz-heading); font-size: 1.15rem; }
.iz-step p { max-width: 18rem; margin: 8px auto 0; color: var(--iz-text-muted); }

/* Comercios: barras que crecen y punto "en vivo" */
.iz-merchants__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.iz-merchants__live { display: inline-flex; align-items: center; gap: 6px; color: var(--iz-success-text); font-size: 0.8rem; font-weight: 700; }
.iz-merchants__live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--iz-success-text); }
.iz-merchants__live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: iz-ping 1.6s ease-out infinite; }
@keyframes iz-ping { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.8); opacity: 0; } }
.iz-merchants__bars span { height: var(--h); transform-origin: bottom; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.2s ease; transition-delay: calc(300ms + var(--i) * 90ms), 0ms; }
.iz-js .iz-merchants__bars span { transform: scaleY(0); }
.iz-js .iz-merchants__card.is-visible .iz-merchants__bars span { transform: scaleY(1); }
.iz-merchants__bars span:hover { filter: brightness(1.12); }
.iz-merchants__card { background: var(--iz-surface); }
.iz-site .iz-checklist svg { transition: transform 0.3s ease; }
.iz-checklist li:hover svg { transform: scale(1.2) rotate(-10deg); }

/* Descarga: resplandor de fondo y logo que flota */
.iz-download { position: relative; overflow: hidden; }
.iz-download__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 640px;
    height: 640px;
    margin: -320px 0 0 -320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 198, 66, 0.22), transparent 65%);
    animation: iz-glow 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes iz-glow { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
.iz-download__inner { position: relative; }
.iz-download__logo.is-visible { animation: iz-float 5s ease-in-out 1s infinite; }
.iz-site a.iz-store { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.iz-site a.iz-store:hover { transform: translateY(-3px); box-shadow: var(--iz-shadow-md); }
.iz-site .iz-store svg { transition: transform 0.3s ease; }
.iz-store:hover svg { transform: translateY(3px); }

@media (max-width: 991.98px) {
    .iz-hero__orb--dot,
    .iz-hero__scroll { display: none; }
}
@media (max-width: 767.98px) {
    .iz-site .iz-steps { grid-template-columns: 1fr; gap: 36px; }
    .iz-steps::before { display: none; }
}
@media (max-width: 575.98px) {
    .iz-hero__orb--gold { width: 220px; height: 220px; top: -110px; right: -90px; }
    .iz-toast-demo { right: -4px; font-size: 0.8rem; }
}

/* ---------- Sin animaciones si el usuario lo pidió ---------- */
@media (prefers-reduced-motion: reduce) {
    .iz-site *, .iz-site *::before, .iz-site *::after {
        animation: none !important;
        transition: none !important;
    }
    .iz-js .iz-reveal, .iz-js .iz-phone__list li { opacity: 1; transform: none; }
    .iz-js .iz-merchants__bars span { transform: none; }
    .iz-hero__title em::after { transform: scaleX(1); }
    .iz-toast-demo { opacity: 1; }
    .iz-marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
    .iz-marquee__group + .iz-marquee__group { display: none; }
}
