/* ==========================================================================
   Desarrollo21 — capa de estilos propia.
   Se carga DESPUES del theme del CDN (main.css) y del <style> inline de
   header.php, así gana la cascada por orden de carga sin usar !important.
   No se toca ni se depende de editar el CDN.
   ========================================================================== */

:root {
    --brand-primary: #044cb1;
    --brand-primary-dark: #033a87;
    --brand-primary-light: #e8f0fb;
    --brand-accent: #f26522;
    --brand-accent-dark: #d4550f;
    --brand-accent-light: #fdece1;

    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-300: #cbd5e1;
    --ink-100: #f1f5f9;
    --surface: #ffffff;
    --surface-alt: #f8fafc;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, .10);
    --shadow-lg: 0 26px 60px rgba(15, 23, 42, .16);

    --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Textura decorativa para secciones con fondo blanco/vacío
   Blobs de color difuminados + puntos sutiles (SVG inline, sin imágenes).
   Se ubican detrás del contenido (.container ya tiene position relative
   por el resto del sistema, pero lo forzamos aquí también por si acaso).
   ========================================================================== */
.bg-decor {
    position: relative;
    isolation: isolate;
}

.bg-decor::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 88% 12%, rgba(4, 76, 177, .07), transparent 42%),
        radial-gradient(circle at 8% 88%, rgba(242, 101, 34, .06), transparent 38%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23044cb1' fill-opacity='0.09'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, repeat;
}

.bg-decor > .container {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .bg-decor::before {
    background-image:
        radial-gradient(circle at 88% 12%, rgba(110, 168, 255, .1), transparent 42%),
        radial-gradient(circle at 8% 88%, rgba(242, 101, 34, .09), transparent 38%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Tema oscuro — activado con [data-theme="dark"] en <html>
   Redefine los tokens de color; como casi todos los componentes propios
   usan estas variables, se re-tiñen solos. El resto son overrides puntuales
   para clases genéricas del theme del CDN (card, bg-white, dropdown, etc).
   ========================================================================== */
:root[data-theme="dark"] {
    --brand-primary-light: rgba(4, 76, 177, .25);
    --brand-accent-light: rgba(242, 101, 34, .2);
    --ink-900: #f1f5f9;
    --ink-700: #cbd5e1;
    --ink-500: #94a3b8;
    --ink-300: #334155;
    --ink-100: #1e293b;
    --surface: #111c31;
    --surface-alt: #1a2740;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, .45);
    --shadow-lg: 0 26px 60px rgba(0, 0, 0, .55);
}

[data-theme="dark"] body {
    background-color: #0a1120;
    color: var(--ink-700);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .h1, [data-theme="dark"] .h2, [data-theme="dark"] .h3 {
    color: var(--ink-900);
}

[data-theme="dark"] p,
[data-theme="dark"] li {
    color: var(--ink-700);
}

[data-theme="dark"] a {
    color: #6ea8ff;
}

[data-theme="dark"] a:hover {
    color: #9cc4ff;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-black {
    color: var(--ink-900) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--ink-500) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .white-bg,
[data-theme="dark"] .single-pricing-pack,
[data-theme="dark"] .pricing-new-wrapper,
[data-theme="dark"] .single-review-wrap,
[data-theme="dark"] .single-promo-card,
[data-theme="dark"] .policy-toc-card,
[data-theme="dark"] .policy-section,
[data-theme="dark"] .policy-intro,
[data-theme="dark"] .hero-mockup-frame,
[data-theme="dark"] .hero-mockup-bar,
[data-theme="dark"] .tech-card,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .hs-mega-menu.main-sub-menu,
[data-theme="dark"] .offcanvas {
    background-color: var(--surface) !important;
    color: var(--ink-700);
    border-color: var(--ink-300) !important;
}

[data-theme="dark"] .gray-light-bg {
    background-color: #0d1729 !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
    border-color: var(--ink-300) !important;
}

[data-theme="dark"] .footer-bottom {
    background: #010914 !important;
}

[data-theme="dark"] .chat-panel,
[data-theme="dark"] #chatMsgs {
    background-color: var(--surface) !important;
}

[data-theme="dark"] #chatMsgs > div > div:last-child {
    background: var(--surface-alt) !important;
    color: var(--ink-700) !important;
}

[data-theme="dark"] .chat-opt-btn {
    background: var(--surface-alt) !important;
    color: var(--ink-700) !important;
    border-color: var(--ink-300) !important;
}

[data-theme="dark"] .cart-item {
    border-color: var(--ink-300) !important;
}

/* -------------------------------------------------------------------------
   Botón de cambio de tema
   ------------------------------------------------------------------------- */
.theme-toggle-btn {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: .5rem;
    transition: background-color .2s ease, transform .2s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, .22);
    transform: rotate(15deg);
}

#logoAndNav.is-scrolled .theme-toggle-btn {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .25);
}

.theme-toggle-btn-mobile {
    width: auto;
    height: auto;
    border-radius: var(--radius-pill);
    padding: .5rem 1rem;
    gap: .5rem;
    background: var(--surface-alt);
    color: var(--ink-700);
    border: 1px solid var(--ink-100);
}

.theme-toggle-btn-mobile:hover {
    transform: none;
    background: var(--ink-100);
}

/* -------------------------------------------------------------------------
   Base / tipografía
   ------------------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    color: var(--ink-700);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--ink-900);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lead {
    color: var(--ink-500);
    font-weight: 400;
}

p {
    color: var(--ink-700);
}

a {
    color: var(--brand-primary);
}

a:hover {
    color: var(--brand-primary-dark);
}

/* -------------------------------------------------------------------------
   Eyebrow label (kicker) usado antes de un <h2> de sección
   ------------------------------------------------------------------------- */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: var(--brand-primary-light);
    padding: .4rem 1rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.section-eyebrow.on-dark {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.section-eyebrow i {
    color: var(--brand-accent);
}

.section-heading h2 {
    margin-bottom: .75rem;
}

/* -------------------------------------------------------------------------
   Hero con textura de marca (se suma a .gradient-bg existente)
   ------------------------------------------------------------------------- */
.hero-modern {
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .10), transparent 40%),
        radial-gradient(circle at 88% 82%, rgba(242, 101, 34, .28), transparent 45%);
    pointer-events: none;
}

.hero-modern > .container {
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.card {
    border-radius: var(--radius-md);
}

.card.border-0.shadow-sm,
.card-modern {
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card.border-0.shadow-sm:hover,
.card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-modern {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.card-modern .card-modern-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

/* -------------------------------------------------------------------------
   Botones
   ------------------------------------------------------------------------- */
.btn {
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: .01em;
}

.btn-tertiary {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.btn-tertiary:hover {
    background: var(--brand-accent-dark);
    border-color: var(--brand-accent-dark);
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--brand-primary);
}

/* -------------------------------------------------------------------------
   Fondos de marca (clases ya usadas en el theme)
   ------------------------------------------------------------------------- */
.primary-bg {
    background-color: var(--brand-primary) !important;
}

.accent-bg {
    background-color: var(--brand-accent) !important;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #023a8a 55%, #021f4a 100%) !important;
}

/* -------------------------------------------------------------------------
   Navegación — estado "scrolled" (alternado por assets/js/custom.js)
   ------------------------------------------------------------------------- */
#logoAndNav {
    transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

#logoAndNav.is-scrolled {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #023a8a 55%, #021f4a 100%) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.logo-swap {
    position: relative;
    display: inline-block;
}

.logo-swap .logo-color {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* Mega-menu con más aire y sombra */
.hs-mega-menu.main-sub-menu {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-100);
    border-top: 3px solid var(--brand-primary);
    overflow: hidden;
}

.mega-menu-col {
    position: relative;
    border-left: 1px solid var(--ink-100);
    transition: background-color .2s ease;
}

.mega-menu-col:first-child {
    border-left: none;
}

.mega-menu-col:hover {
    background: var(--surface-alt);
}

.mega-menu-col-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
}

.mega-menu-col-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
    flex: 0 0 auto;
    transition: transform .2s ease;
}

.mega-menu-col:hover .mega-menu-col-icon {
    transform: scale(1.08) rotate(-4deg);
}

.mega-menu-col-icon.cat-blue {
    background: var(--brand-primary);
    box-shadow: 0 6px 14px rgba(4, 76, 177, .35);
}

.mega-menu-col-icon.cat-orange {
    background: var(--brand-accent);
    box-shadow: 0 6px 14px rgba(242, 101, 34, .35);
}

.mega-menu-col-icon.cat-green {
    background: #16a34a;
    box-shadow: 0 6px 14px rgba(22, 163, 74, .3);
}

.mega-menu-col-icon.cat-purple {
    background: #7c3aed;
    box-shadow: 0 6px 14px rgba(124, 58, 237, .3);
}

.mega-menu-col-icon.cat-dark {
    background: var(--ink-900);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .3);
}

.mega-menu-col-title h6 {
    margin: 0;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mega-menu-col:nth-child(1) .mega-menu-col-title h6 {
    color: var(--brand-primary);
}

.mega-menu-col:nth-child(2) .mega-menu-col-title h6 {
    color: var(--brand-accent-dark);
}

.mega-menu-col:nth-child(3) .mega-menu-col-title h6 {
    color: #16a34a;
}

.mega-menu-col:nth-child(4) .mega-menu-col-title h6 {
    color: #7c3aed;
}

.mega-menu-col:nth-child(5) .mega-menu-col-title h6 {
    color: var(--ink-900);
}

.mega-menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .6rem;
    margin: 0 -.2rem;
    border-radius: 10px;
    color: var(--ink-900) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: .88rem;
    border-left: 3px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, padding-left .15s ease;
}

.mega-menu-link .emoji {
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.mega-menu-link:hover {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding-left: .85rem;
}

.mega-menu-col:nth-child(1) .mega-menu-link:hover {
    border-left-color: var(--brand-primary);
}

.mega-menu-col:nth-child(2) .mega-menu-link:hover {
    border-left-color: var(--brand-accent);
}

.mega-menu-col:nth-child(3) .mega-menu-link:hover {
    border-left-color: #16a34a;
}

.mega-menu-col:nth-child(4) .mega-menu-link:hover {
    border-left-color: #7c3aed;
}

.mega-menu-col:nth-child(5) .mega-menu-link:hover {
    border-left-color: var(--ink-900);
}

.mega-menu-badge {
    margin-left: auto;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: var(--brand-accent-light);
    color: var(--brand-accent-dark);
    padding: .15rem .5rem;
    border-radius: var(--radius-pill);
    flex: 0 0 auto;
    animation: badgePulse 2.2s ease-in-out infinite;
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-menu-badge {
        animation: none;
    }
}

/* -------------------------------------------------------------------------
   Pestañas de catálogo (home)
   ------------------------------------------------------------------------- */
.catalog-tabs .nav-pills .nav-link {
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--ink-500);
    padding: .65rem 1.4rem;
    margin: 0 .25rem .5rem;
}

.catalog-tabs .nav-pills .nav-link.active {
    background: var(--brand-primary);
    color: #fff;
}

.catalog-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--ink-100);
    background: var(--surface);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}

.catalog-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.catalog-item-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
}

.catalog-item-title {
    display: block;
    font-weight: 700;
    color: var(--ink-900);
    font-size: .95rem;
}

.catalog-item-tag {
    display: block;
    font-size: .78rem;
    color: var(--ink-500);
}

/* -------------------------------------------------------------------------
   Accordion / FAQ
   ------------------------------------------------------------------------- */
.accordion-item {
    border: 1px solid var(--ink-100) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: .75rem;
}

.accordion-button {
    font-weight: 600;
    color: var(--ink-900);
}

.accordion-button:not(.collapsed) {
    background-color: var(--brand-primary-light);
    color: var(--brand-primary-dark);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--ink-100);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer-modern {
    background: linear-gradient(180deg, #0b234f 0%, #061532 100%);
}

.footer-whatsapp-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform .2s ease;
}

.footer-whatsapp-btn:hover {
    transform: scale(1.08);
    color: #fff;
}

.footer-bottom {
    background: #021f4a !important;
    color: rgba(255, 255, 255, .7);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom .copyright-wrap p {
    color: rgba(255, 255, 255, .7);
}

.footer-bottom .copyright-wrap p strong {
    color: var(--brand-accent);
    font-weight: 700;
}

.chat-fab {
    position: fixed;
    bottom: 94px;
    right: 24px;
    z-index: 1049;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #02305e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: 1.4rem;
    transition: transform .2s ease;
}

.chat-fab:hover {
    transform: scale(1.06);
}

.chat-panel {
    position: fixed;
    bottom: 160px;
    right: 24px;
    width: 340px;
    max-height: 460px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1048;
    overflow: hidden;
    flex-direction: column;
}

.chat-panel-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #02305e 100%);
    color: #fff;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-opt-btn {
    padding: .4rem .9rem;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    cursor: pointer;
    font-size: .78rem;
    color: var(--ink-700);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    max-width: 280px;
    background: var(--ink-900);
    color: #fff;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    z-index: 1060;
    box-shadow: var(--shadow-lg);
}

.cookie-banner span {
    font-size: .78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
}

.cookie-banner a {
    color: #7dd3fc;
}

.cookie-banner-btn {
    background: var(--brand-accent);
    color: #fff;
    border: none;
    padding: .45rem 1.2rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    font-size: .82rem;
    align-self: flex-end;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        max-width: none;
        bottom: 12px;
    }
}

.cookie-banner-btn:hover {
    background: var(--brand-accent-dark);
}

/* -------------------------------------------------------------------------
   Badge "Disponible en Google Play"
   ------------------------------------------------------------------------- */
.btn-google-play {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    background: #0f172a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-md);
    padding: .55rem 1.1rem;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.btn-google-play:hover {
    background: #1e293b;
    color: #fff;
    transform: translateY(-2px);
}

.btn-google-play i {
    font-size: 1.6rem;
}

.btn-google-play span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.btn-google-play small {
    font-size: .68rem;
    color: rgba(255, 255, 255, .75);
}

.btn-google-play strong {
    font-size: 1rem;
    font-weight: 700;
}

/* -------------------------------------------------------------------------
   Scroll-reveal (activado por assets/js/custom.js)
   ------------------------------------------------------------------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Entrada/salida repetible por sección al hacer scroll (sube o baja) */
.section-reveal {
    opacity: 0;
    transform: translateY(50px) scale(.98);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -------------------------------------------------------------------------
   Pricing / FAQ legacy markup (facturacion.php, restaurant.php)
   Se estiliza por selector para no tocar el HTML/JS funcional existente.
   ------------------------------------------------------------------------- */
.single-pricing-pack {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.single-pricing-pack:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.popular-price {
    box-shadow: var(--shadow-lg);
}

.pricing-new-wrapper {
    border-radius: var(--radius-lg) !important;
}

.faq-wrap .card {
    border: 1px solid var(--ink-100) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.faq-wrap .card-header {
    font-weight: 600;
    cursor: pointer;
}

.page-header-section.hero-modern {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

/* -------------------------------------------------------------------------
   Home — hero con mockup de producto
   ------------------------------------------------------------------------- */
.stat-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1.5rem 0;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: .82rem;
    font-weight: 600;
}

.stat-pill i {
    color: var(--brand-accent);
}

.hero-mockup {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
}

.hero-mockup-frame {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
    border: 1px solid rgba(255, 255, 255, .2);
}

.hero-mockup-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .7rem .9rem;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--ink-100);
}

.hero-mockup-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ink-300);
}

.hero-mockup-frame img {
    display: block;
    width: 100%;
}

/* Variante de altura fija (usada en apps/clientes21.php) */
.hero-mockup-compact .hero-mockup-frame {
    width: fit-content;
    margin: 0 auto;
}

.hero-mockup-compact .hero-mockup-frame img {
    width: auto;
    height: 220px;
    max-width: none;
}

@media (min-width: 768px) {
    .hero-mockup-compact .hero-mockup-frame img {
        height: 450px;
    }
}

.floating-badge {
    position: absolute;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink-900);
    animation: floatY 4s ease-in-out infinite;
}

.floating-badge i {
    color: var(--brand-accent);
}

.floating-badge.badge-top {
    top: -18px;
    right: -18px;
}

.floating-badge.badge-bottom {
    bottom: -20px;
    left: -24px;
    animation-delay: 1.2s;
}

@media (max-width: 767.98px) {
    .hero-mockup {
        max-width: 220px;
    }

    .hero-mockup-frame {
        transform: none;
    }

    .floating-badge {
        font-size: .68rem;
        padding: .4rem .6rem;
        gap: .35rem;
        border-radius: var(--radius-md);
    }

    .floating-badge.badge-top {
        top: -10px;
        right: -8px;
    }

    .floating-badge.badge-bottom {
        bottom: -10px;
        left: -10px;
    }

    .hero-mockup-compact .floating-badge {
        font-size: .58rem;
        padding: .3rem .5rem;
    }

    .hero-mockup-compact .floating-badge.badge-top {
        top: -6px;
        right: -6px;
    }

    .hero-mockup-compact .floating-badge.badge-bottom {
        bottom: -6px;
        left: -6px;
    }
}

@keyframes floatY {

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

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

/* -------------------------------------------------------------------------
   Marquee (logos de clientes / stack tecnológico)
   ------------------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-logo {
    height: 34px;
    width: auto;
    opacity: .55;
    filter: grayscale(1);
    transition: opacity .2s ease, filter .2s ease;
}

.marquee-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-pill);
    padding: .6rem 1.3rem;
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink-900);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Bento grid ("Por qué elegirnos")
   ------------------------------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    grid-auto-flow: dense;
    gap: 1.25rem;
}

.bento-card {
    grid-column: span 4;
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform .25s ease, box-shadow .25s ease;
}

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

.bento-card-lg {
    grid-column: span 4;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #023a8a 100%);
    color: #fff;
}

.bento-card-lg h3,
.bento-card-lg p {
    color: #fff;
}

@media (min-width: 768px) {
    .bento-card {
        grid-column: span 2;
    }

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

@media (min-width: 992px) {
    .bento-card {
        grid-column: span 1;
    }

    .bento-card-lg {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* -------------------------------------------------------------------------
   Línea de tiempo del proceso
   ------------------------------------------------------------------------- */
.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.timeline-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.timeline-step-num {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .timeline-steps {
        flex-direction: row;
    }

    .timeline-step {
        flex-direction: column;
        text-align: center;
        flex: 1;
        position: relative;
    }

    .timeline-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 26px;
        left: calc(50% + 40px);
        width: calc(100% - 40px);
        height: 2px;
        background: var(--ink-100);
    }
}

/* -------------------------------------------------------------------------
   Testimonios (grid editorial)
   ------------------------------------------------------------------------- */
.testimonial-card-v2 {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
}

.testimonial-quote-mark {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--brand-primary-light);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.avatar-initials {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 auto;
}

/* -------------------------------------------------------------------------
   Mockup tipo teléfono para capturas de apps
   ------------------------------------------------------------------------- */
.phone-frame {
    position: relative;
    background: linear-gradient(155deg, #1e293b 0%, #0f172a 55%, #020617 100%);
    border-radius: 46px;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06);
    max-width: 320px;
    margin: 0 auto;
}

.phone-frame::before,
.phone-frame::after {
    content: '';
    position: absolute;
    background: #1e293b;
    border-radius: 3px;
}

.phone-frame::before {
    right: -3px;
    top: 120px;
    width: 3px;
    height: 60px;
    box-shadow: 0 90px 0 #1e293b;
}

.phone-frame::after {
    left: -3px;
    top: 90px;
    width: 3px;
    height: 36px;
}

.phone-frame-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 20px;
    background: #020617;
    border-radius: 999px;
    z-index: 2;
}

.phone-frame-screen {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 390 / 844;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.phone-frame-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.phone-frame-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 28%);
    pointer-events: none;
}

/* -------------------------------------------------------------------------
   Carrusel de funciones (teléfono + texto sincronizado)
   ------------------------------------------------------------------------- */
.feature-slide-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.25rem;
}

.carousel-item.active .feature-slide-icon,
.carousel-item.active .feature-slide-text {
    animation: featureSlideIn .6s ease both;
}

.carousel-item.active .feature-slide-text {
    animation-delay: .08s;
}

@keyframes featureSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.feature-slide-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.feature-slide-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .6rem;
    color: rgba(255, 255, 255, .9);
}

.feature-slide-list li i {
    margin-top: .2rem;
    flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {

    .carousel-item.active .feature-slide-icon,
    .carousel-item.active .feature-slide-text {
        animation: none;
    }
}

/* -------------------------------------------------------------------------
   Scrim para banners/imágenes que quedan detrás del nav transparente
   ------------------------------------------------------------------------- */
.banner-nav-scrim {
    position: relative;
}

.banner-nav-scrim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(180deg, rgba(4, 76, 177, .65) 0%, rgba(4, 76, 177, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* -------------------------------------------------------------------------
   Páginas legales (políticas de privacidad de apps, términos, etc.)
   ------------------------------------------------------------------------- */
.policy-toc-card {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.policy-toc-card h6 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-500);
    margin-bottom: 1rem;
}

.policy-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.policy-toc-list li {
    margin-bottom: .35rem;
}

.policy-toc-list a {
    display: block;
    padding: .4rem .6rem;
    border-radius: 8px;
    color: var(--ink-700);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}

.policy-toc-list a:hover {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
}

.policy-contact-card {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #023a8a 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: #fff;
    margin-top: 1.5rem;
}

.policy-contact-card h6 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .85;
    margin-bottom: 1rem;
}

.policy-contact-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.policy-contact-card li {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .7rem;
    font-size: .85rem;
}

.policy-contact-card li:last-child {
    margin-bottom: 0;
}

.policy-contact-card i {
    color: var(--brand-accent);
    width: 18px;
    text-align: center;
    flex: 0 0 auto;
}

.policy-section {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    scroll-margin-top: 100px;
}

.policy-section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.policy-section-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.policy-section-title h3 {
    margin: 0;
    font-size: 1.15rem;
}

.policy-section p,
.policy-section li {
    color: var(--ink-700);
    line-height: 1.7;
}

.policy-section ul {
    padding-left: 1.2rem;
}

.policy-section li {
    margin-bottom: .4rem;
}

.policy-intro {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .policy-sidebar-sticky {
        position: sticky;
        top: 100px;
    }
}

/* -------------------------------------------------------------------------
   Placeholder pages ("en construcción")
   ------------------------------------------------------------------------- */
.coming-soon-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* -------------------------------------------------------------------------
   Accesibilidad (widget flotante)
   ------------------------------------------------------------------------- */
.a11y-fab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1055;
    width: 52px;
    height: 52px;
    border-radius: 50% 0 0 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    border: none;
    transition: width .2s ease, transform .2s ease;
}

.a11y-fab:hover {
    width: 58px;
    color: #fff;
}

.a11y-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1056;
    width: 300px;
    max-height: 86vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.1rem;
}

.a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--ink-100);
}

.a11y-panel-header strong {
    font-size: .95rem;
    color: var(--ink-900);
}

.a11y-panel-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ink-500);
    cursor: pointer;
    padding: 0 .2rem;
}

.a11y-fontsize-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .9rem;
}

.a11y-fontsize-row span {
    flex: 1;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-700);
}

.a11y-fs-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--ink-100);
    background: var(--surface-alt);
    color: var(--ink-900);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-fs-btn:hover {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
}

.a11y-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: .9rem;
}

.a11y-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    text-align: center;
    padding: .65rem .4rem;
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    background: var(--surface-alt);
    color: var(--ink-700);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
}

.a11y-option i {
    font-size: 1.05rem;
    color: var(--brand-primary);
}

.a11y-option:hover {
    border-color: var(--brand-primary);
}

.a11y-option.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.a11y-option.active i {
    color: #fff;
}

.a11y-reset-btn {
    width: 100%;
    border: 1px solid var(--ink-100);
    background: var(--surface-alt);
    color: var(--ink-700);
    border-radius: var(--radius-pill);
    padding: .55rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.a11y-reset-btn:hover {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

@media (max-width: 480px) {
    .a11y-panel {
        width: 88vw;
    }
}

/* Estados aplicados al <html> */
html.a11y-contrast {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-grayscale {
    filter: grayscale(1);
}

html.a11y-contrast.a11y-grayscale {
    filter: invert(1) hue-rotate(180deg) grayscale(1);
}

html.a11y-contrast img,
html.a11y-contrast video,
html.a11y-contrast iframe,
html.a11y-contrast svg {
    filter: invert(1) hue-rotate(180deg);
}

html.a11y-contrast.a11y-grayscale img,
html.a11y-contrast.a11y-grayscale video,
html.a11y-contrast.a11y-grayscale iframe,
html.a11y-contrast.a11y-grayscale svg {
    filter: invert(1) hue-rotate(180deg) grayscale(1);
}

html.a11y-hide-images img,
html.a11y-hide-images .hero-mockup-frame img,
html.a11y-hide-images .phone-frame-screen img {
    visibility: hidden !important;
}

html.a11y-underline-links a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

html.a11y-readable-font,
html.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

html.a11y-text-spacing,
html.a11y-text-spacing * {
    letter-spacing: .04em !important;
    word-spacing: .12em !important;
    line-height: 1.7 !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path fill="black" stroke="white" stroke-width="1" d="M2 2 L2 20 L7 16 L10 22 L13 20.5 L10 15 L16 15 Z"/></svg>') 2 2, auto !important;
}

html.a11y-no-motion,
html.a11y-no-motion * {
    animation-play-state: paused !important;
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}
