/*
Theme Name: IA Health Coach Landing
Theme URI: https://example.com/
Author: IA Health Coach
Author URI: https://example.com/
Description: Landing theme basado en landing.html
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ia-health-coach-landing
*/

:root {
    --primary: #00f2fe;
    --primary-dark: #0099cc;
    --accent: #ff0055;
    --success: #00ff88;
    --warning: #ffcc00;
    --bg-deep: #050505;
    --glass-bg: rgba(20, 20, 25, 0.7);
    --glass-bg-strong: rgba(10, 10, 14, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    /* ── Tokens de animación ── */
    --dur-fast: 0.18s;
    --dur-base: 0.32s;
    --dur-slow: 0.6s;
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    /* ── Tokens de blur (se sobreescriben en móvil) ── */
    --blur-sm: 8px;
    --blur-md: 18px;
    --blur-lg: 28px;
    --blur-xl: 34px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Outfit", sans-serif;
    background:
        radial-gradient(
            1200px 700px at 12% 15%,
            rgba(0, 242, 254, 0.12),
            transparent 60%
        ),
        radial-gradient(
            1000px 600px at 88% 20%,
            rgba(255, 0, 85, 0.12),
            transparent 62%
        ),
        radial-gradient(
            900px 600px at 50% 90%,
            rgba(0, 255, 136, 0.1),
            transparent 60%
        ),
        radial-gradient(circle at 10% 20%, #1a1a2e 0%, var(--bg-deep) 90%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
}

body.hc {
    --text-muted: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(255, 255, 255, 0.18);
    background-color: #030509;
    /* Negro profundo premium */
    background-image:
        radial-gradient(
            circle at top left,
            rgba(0, 242, 254, 0.07) 0%,
            transparent 45%
        ),
        radial-gradient(
            circle at top right,
            rgba(255, 0, 85, 0.05) 0%,
            transparent 45%
        ),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    background-attachment: fixed;
    background-size: cover;
}

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

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.hc .noise {
    opacity: 0.01;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    filter: blur(35px);
    opacity: 0.9;
}

body.hc .bg-orbs {
    filter: blur(44px);
    opacity: 0.32;
}

.orb {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: float 10s ease-in-out infinite;
}

.orb.one {
    left: -120px;
    top: -120px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 242, 254, 0.55),
        transparent 60%
    );
    animation-duration: 11s;
}

.orb.two {
    right: -180px;
    top: 0;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 0, 85, 0.45),
        transparent 62%
    );
    animation-duration: 13s;
    animation-delay: -3s;
}

.orb.three {
    left: 22%;
    bottom: -220px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(0, 255, 136, 0.35),
        transparent 62%
    );
    animation-duration: 15s;
    animation-delay: -4s;
}

@media (max-width: 520px) {
    .orb {
        width: 320px;
        height: 320px;
    }

    .orb.one {
        left: -140px;
        top: -160px;
    }

    .orb.two {
        right: -180px;
        top: -60px;
    }

    .orb.three {
        left: 10%;
        bottom: -240px;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -18px, 0) scale(1.03);
    }
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 28px);
    }
}

.glass {
    background: linear-gradient(
        135deg,
        rgba(25, 25, 30, 0.78),
        rgba(10, 10, 15, 0.6)
    );
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

body.hc .glass {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 24, 0.92),
        rgba(5, 5, 10, 0.82)
    );
    border-color: rgba(255, 255, 255, 0.18);
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition:
        width 0.6s ease,
        height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.6);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-ghost:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.15);
}

body.hc .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body.hc .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(10, 15, 25, 0.7);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Cristal Vivo (Luz rotatoria) */
.badge::before {
    content: "";
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(0, 242, 254, 0.1) 40%,
        var(--primary) 50%,
        white 51%,
        transparent 55%
    );
    animation: rotateBorder 4s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.badge::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        rgba(8, 14, 25, 0.98),
        rgba(2, 6, 12, 0.98)
    );
    z-index: 0;
}

.badge > * {
    position: relative;
    z-index: 1;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 200;
    /* Superar otros elementos */
    background: rgba(8, 10, 16, 0.42);
    backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    animation: headerReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

@keyframes headerReveal {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.nav > * {
    animation: headerItemReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo {
    animation-delay: 0.2s;
}

.nav-links {
    animation-delay: 0.3s;
}

.nav-cta {
    animation-delay: 0.4s;
}

@keyframes headerItemReveal {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

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

@media (max-width: 520px) {
    .nav {
        padding: 12px 0;
    }

    .logo span {
        font-size: 0.95rem;
    }

    .logo .logo-beta {
        margin-left: 4px;
        padding: 2px 6px;
        font-size: 0.55rem;
    }

    .logo svg {
        width: 58px;
        height: 58px;
    }

    .nav-cta {
        display: none;
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.2px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    /* overflow: visible by default to prevent drop-shadow clipping */
}

.logo:hover {
    transform: scale(1.02);
}

.logo svg {
    width: 58px;
    height: 58px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.35));
    transition: filter 0.4s ease;
}

.logo:hover svg {
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.6));
}

.logo span {
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span b {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.logo .logo-beta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.08);
    color: rgba(191, 247, 255, 0.95);
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--text-muted);
}

.nav-links .nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
}

.nav-links .nav-menu li {
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.2px;
    position: relative;
    padding: 6px 0;
    transition: color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );
    transform: translateX(-50%);
    transition:
        width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.4s;
    opacity: 0;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.nav-links a:hover::after {
    width: 80%;
    opacity: 1;
}

.nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.nav-icon:hover {
    transform: translateY(-3px) scale(1.04);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        inset 0 0 15px rgba(255, 255, 255, 0.08);
}

.nav-icon i {
    font-size: 1.05rem;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0));
}

.nav-icon:hover i {
    transform: rotate(8deg) scale(1.1);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

.nav-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #0b111b;
    box-shadow:
        0 10px 25px rgba(0, 242, 254, 0.25),
        inset 0 0 12px rgba(255, 255, 255, 0.15);
    /* overflow: visible by default */
}

.nav-icon.primary:hover {
    box-shadow:
        0 20px 45px rgba(0, 242, 254, 0.45),
        inset 0 0 20px rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #4ef8ff, #00f2fe);
}

body.hc .nav-icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

body.hc .nav-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: rgba(0, 242, 254, 0.28);
    color: #000;
}

.btn-contrast {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.btn-contrast:hover {
    transform: translateY(-3px) scale(1.04);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35),
        inset 0 0 15px rgba(255, 255, 255, 0.08);
}

.btn-contrast i {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-contrast:hover i {
    transform: rotate(180deg) scale(1.1);
}

.btn-contrast::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.btn-contrast:hover::after,
.btn-contrast:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

body.hc .btn-contrast {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.22);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
}

body.hc .btn-contrast i {
    transform: rotate(180deg);
}

@media (prefers-contrast: more) {
    body:not(.hc) {
        background: linear-gradient(180deg, #070a10 0%, #03050a 55%, #000 100%);
    }
}

.hero {
    padding: 70px 0 30px;
    position: relative;
    /* overflow: hidden; <- Eliminado intencionadamente para evitar el corte recto inferior */
}

/* Luces de Fondo Dinámicas del Hero */
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(0, 242, 254, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 60%,
            rgba(255, 0, 85, 0.06) 0%,
            transparent 55%
        );
    pointer-events: none;
    z-index: -1;
    animation: heroMeshSlow 18s ease-in-out infinite alternate;
    /* Difuminar los bordes del gradiente para que jamás genere "cortes" o líneas rectas */
    -webkit-mask-image: radial-gradient(
        ellipse at center,
        black 40%,
        transparent 70%
    );
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

@keyframes heroMeshSlow {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(5%, 2%);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 26px;
    align-items: stretch;
    /* Cambiado de start a stretch */
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

    .nav-links {
        display: none;
    }
}

.hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-top: 24px;
    margin-bottom: 26px;
    /* Aumentado */
    animation: heroTitleFloat 6.5s ease-in-out infinite;
    will-change: transform;
    max-width: 56ch;
    position: relative;
}

.hero h1 .grad {
    background: linear-gradient(135deg, var(--primary), var(--accent), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: heroGradShift 6s ease-in-out infinite alternate;
    /* Extra Glow OLED */
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.4));
    position: relative;
    display: inline-block;
}

@keyframes heroGradShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes heroTitleFloat {
    0% {
        transform: translateY(0);
    }

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

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

body.hc .hero p,
body.hc .section-desc,
body.hc .card p,
body.hc .demo-sub,
body.hc .demo-subtle,
body.hc .hint,
body.hc footer {
    color: rgba(255, 255, 255, 0.9);
}

.hero p {
    margin-bottom: 22px;
    /* Espacio para separar del sub-hero o acciones */
}

body.hc .hero h1,
body.hc .section-title,
body.hc .demo-title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}

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

@media (max-width: 520px) {
    .hero {
        padding: 42px 0 18px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        gap: 10px;
    }

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

    .badge {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.metric {
    padding: 14px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.03)
    );
    backdrop-filter: blur(12px);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.3);
}

.metric .k {
    font-weight: 900;
    font-size: 1.25rem;
}

.metric .l {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.demo-card {
    padding: 22px;
    border-radius: calc(var(--radius-xl) + 8px);
    position: relative;
    background: rgba(8, 12, 18, 0.65);
    backdrop-filter: blur(34px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(255, 255, 255, 0.02);
    transform-origin: center right;
}

@media (max-width: 520px) {
    .demo-card {
        padding: 16px;
        border-radius: 30px;
    }

    .demo-inner {
        padding: 16px;
        border-radius: 24px;
    }
}

/* Efecto Luz Rotatoria del Fondo */
.demo-card::before {
    content: "";
    position: absolute;
    inset: -50% -50%;
    background: conic-gradient(
        from 180deg,
        rgba(0, 242, 254, 0),
        rgba(0, 242, 254, 0.2),
        rgba(255, 0, 85, 0.12),
        rgba(0, 255, 136, 0.1),
        rgba(0, 242, 254, 0)
    );
    animation: spin 10s linear infinite;
    opacity: 0.7;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
    /* Suavizado extremo Premium */
}

/* Oscurecedor base */
.demo-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-xl) + 7px);
    background: radial-gradient(
        circle at top left,
        rgba(14, 20, 30, 0.95),
        rgba(4, 6, 10, 0.98)
    );
    pointer-events: none;
    z-index: -1;
}

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

.demo-inner {
    position: relative;
    z-index: 2;
    padding: 22px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 5, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.demo-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.demo-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition:
        color var(--dur-fast) var(--ease-out),
        background var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        transform var(--dur-fast) var(--ease-out);
}

.demo-app-btn i {
    font-size: 0.72rem;
    opacity: 0.8;
}

.demo-app-btn span {
    line-height: 1;
}

.demo-app-btn:hover {
    color: var(--primary);
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-1px);
}

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

.demo-title {
    font-weight: 900;
    letter-spacing: 0.3px;
    font-size: 1.02rem;
}

.demo-sub {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-top: 3px;
}

.stepper {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 rgba(0, 242, 254, 0);
    transition: all 0.25s ease;
}

.step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.55);
}

.step-label {
    margin-left: auto;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.field label {
    display: block;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 8px;
}

select,
input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
    color-scheme: dark;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

select::placeholder,
input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select option,
select optgroup {
    background-color: var(--bg-deep);
    color: #ffffff;
}

select:focus,
input:focus {
    border-color: rgba(0, 242, 254, 0.8);
    background: rgba(0, 242, 254, 0.03);
    box-shadow:
        0 0 0 4px rgba(0, 242, 254, 0.15),
        0 12px 30px rgba(0, 242, 254, 0.25),
        inset 0 0 10px rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
}

select:hover:not(:focus),
input:hover:not(:focus) {
    border-color: rgba(0, 242, 254, 0.3);
    background: rgba(0, 0, 0, 0.35);
}

body.hc select,
body.hc input {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

body.hc select:focus,
body.hc input:focus {
    border-color: rgba(0, 242, 254, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.grid-3,
.grid-4 {
    display: grid;
    gap: 22px;
}

.pill-grid,
.pill-grid-interactive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 520px) {
    .pill-grid {
        grid-template-columns: 1fr;
    }
    .pill-grid-interactive {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .pill-choice {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}

.pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
    user-select: none;
}

.pill:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 242, 254, 0.55);
    background: rgba(0, 242, 254, 0.06);
}

.pill input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.pill span {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.demo-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.demo-actions .btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.demo-actions .btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow:
        0 15px 30px rgba(0, 242, 254, 0.4),
        0 0 40px rgba(0, 242, 254, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (max-width: 520px) {
    .demo-actions {
        flex-direction: column;
    }

    .demo-actions .btn {
        width: 100%;
    }

    .demo-top {
        align-items: stretch;
    }

    .demo-app-btn {
        align-self: flex-start;
        flex-shrink: 0;
    }
}

.result {
    display: none;
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    padding: 14px 14px;
}

.result.show {
    display: block;
    animation: pop 0.42s ease;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

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

.result h4 {
    font-size: 0.95rem;
}

.result p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

.result .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    animation: demoModalOverlay 0.3s ease;
}

.demo-modal-content {
    width: min(760px, 92vw);
    max-height: 90vh;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    background: rgba(8, 12, 18, 0.95);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: demoModalIn 0.35s ease;
}

.demo-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            520px 180px at 15% 0%,
            rgba(0, 242, 254, 0.16),
            transparent 60%
        ),
        radial-gradient(
            420px 160px at 85% 10%,
            rgba(255, 0, 85, 0.12),
            transparent 60%
        );
    pointer-events: none;
}

.demo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.demo-modal-title small {
    display: block;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    margin-top: 2px;
}

.demo-modal-title i {
    color: var(--primary);
}

.demo-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-modal-close:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 242, 254, 0.4);
    color: var(--primary);
}

.demo-modal-body {
    padding: 16px 18px 20px;
    overflow: auto;
    position: relative;
    z-index: 1;
}

.demo-modal-body .result {
    display: block;
    margin-top: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.demo-modal-body .demo-block {
    background: rgba(8, 18, 32, 0.75);
    border: 1px solid rgba(0, 242, 254, 0.18);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.demo-modal-body .demo-kpis .kpi {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
}

.demo-modal-body .demo-subtle {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes demoModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

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

@keyframes demoModalOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.result .demo-block {
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
}

.demo-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 560px) {
    .demo-kpis {
        grid-template-columns: 1fr;
    }
}

.kpi {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    padding: 10px 12px;
}

.kpi .k {
    font-weight: 900;
    color: #fff;
}

.kpi .l {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 2px;
}

.demo-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.88);
}

.demo-list li {
    color: rgba(255, 255, 255, 0.86);
}

.demo-subtle {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-top: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
}

.chip.primary {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.28);
    color: var(--primary);
}

.chip.accent {
    background: rgba(255, 0, 85, 0.1);
    border-color: rgba(255, 0, 85, 0.28);
    color: #ff7aa3;
}

section {
    padding: 56px 0;
}

@media (max-width: 520px) {
    section {
        padding: 40px 0;
    }
}

.section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: -0.3px;
}

.section-desc {
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 34px;
    max-width: 65ch;
    line-height: 1.7;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 6px;
    position: relative;
}

.step-card {
    position: relative;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
        135deg,
        rgba(18, 20, 28, 0.9),
        rgba(8, 10, 16, 0.7)
    );
    box-shadow: var(--shadow-md);
    transition: transform var(--dur-base) var(--ease-spring), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
    min-height: 170px;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 254, 0.45);
    box-shadow: 0 18px 40px rgba(0, 242, 254, 0.12);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1.2rem;
    color: #001016;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.85), rgba(0, 242, 254, 0.45));
    box-shadow: 0 10px 22px rgba(0, 242, 254, 0.2);
    margin-bottom: 14px;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.step-content h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.step-connector {
    position: absolute;
    top: 32px;
    right: -22px;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.6), rgba(0, 242, 254, 0));
}

@media (max-width: 980px) {
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-connector {
        display: none;
    }
}

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

.grid-3,
.grid-4 {
    display: grid;
    gap: 22px;
    margin-top: 10px;
}

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

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

@media (max-width: 980px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.adapt-group-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.85;
}

.adapt-group-label i {
    font-size: 0.8rem;
}

.card {
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
        135deg,
        rgba(25, 25, 30, 0.85),
        rgba(10, 10, 15, 0.65)
    );
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 254, 0.15),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 254, 0.6),
        transparent
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.45);
    background: linear-gradient(
        135deg,
        rgba(0, 242, 254, 0.1),
        rgba(0, 0, 0, 0.3)
    );
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 242, 254, 0.2);
}

.card h3 {
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.card p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.faq-item {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 14, 18, 0.6);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-family: inherit;
}

.faq-question span:first-child {
    text-align: left;
}

.faq-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--primary);
    transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: rgba(0, 242, 254, 0.2);
}

body.hc .card {
    background: linear-gradient(
        135deg,
        rgba(18, 18, 24, 0.95),
        rgba(5, 5, 10, 0.85)
    );
    border-color: rgba(255, 255, 255, 0.2);
}

/* TABS SYSTEM (Fase 2) */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 24px;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 12px;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), rgba(0, 242, 254, 0.1));
    box-shadow: 0 6px 16px rgba(0, 242, 254, 0.25);
    transition: width var(--dur-base) var(--ease-out), left var(--dur-base) var(--ease-out);
    pointer-events: none;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.tab-btn i {
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

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

.tab-btn.active {
    background: rgba(0, 242, 254, 0.15);
    border-color: rgba(0, 242, 254, 0.5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.tab-btn.active i {
    opacity: 1;
}

.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.card-key {
    /* Mismos estilos que .card normal pero con un tinte más notable inactivo */
    border-color: rgba(0, 242, 254, 0.25);
    background: linear-gradient(
        135deg,
        rgba(25, 25, 30, 0.5),
        rgba(10, 10, 15, 0.3)
    );
    border-left: 3px solid rgba(0, 242, 254, 0.65);
}

@media (max-width: 640px) {
    .tabs-header {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 4px 10px;
    }
    .tab-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 12px 10px;
        white-space: nowrap;
    }
    .tab-indicator {
        display: none;
    }
    .card {
        padding: 22px 16px;
        border-radius: 20px;
        min-height: 120px;
    }
}

.pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
    align-items: stretch;
}

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

@media (max-width: 520px) {
    .price {
        border-radius: 26px;
    }

    .cta-banner {
        padding: 16px;
        border-radius: 26px;
    }

    .form-lead {
        padding: 16px;
        border-radius: 26px;
    }
}

.price {
    padding: 32px 28px 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 18, 26, 0.55);
    backdrop-filter: blur(20px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0.9;
    transform: scale(0.98);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.price:hover {
    opacity: 1;
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    background: rgba(22, 28, 38, 0.65);
}

/* Tarjeta PRO - Borde Animado Holográfico */
.price.featured {
    opacity: 1;
    transform: scale(1.05);
    /* Ligeramente más grande */
    border: 1px solid rgba(0, 242, 254, 0);
    background: linear-gradient(
        135deg,
        rgba(5, 12, 22, 0.95),
        rgba(0, 5, 12, 0.98)
    );
    z-index: 2;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 40px rgba(0, 242, 254, 0.05);
}

/* El Borde Animado Giratorio (Glow Beam) */
.price.featured::before {
    content: "";
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(0, 242, 254, 0.1) 35%,
        var(--primary) 50%,
        white 51%,
        transparent 60%
    );
    animation: rotateBorder 5s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}

/* Contenido interior aislado del giro */
.price.featured::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    /* Grosor del borde brillante */
    border-radius: calc(var(--radius-xl) - 1px);
    background: linear-gradient(
        135deg,
        rgba(8, 14, 25, 0.98),
        rgba(2, 6, 12, 0.98)
    );
    z-index: 0;
}

/* Elevando el contenido de las tarjetas por encima de los fondos */
.price > * {
    position: relative;
    z-index: 1;
}

.price.featured:hover {
    transform: scale(1.07) translateY(-6px);
    box-shadow:
        0 40px 80px rgba(0, 242, 254, 0.15),
        inset 0 0 60px rgba(0, 242, 254, 0.1);
}

/* Eliminamos el ::before estático porque lo usamos para el gradiente superior.
   La etiqueta "Más usado" la meteremos directamente en HTML o como ::after del .price-head */
.price.featured .price-head::before {
    content: "Más usado";
    position: absolute;
    top: -24px;
    right: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        rgba(0, 242, 254, 0.15),
        rgba(0, 242, 254, 0.05)
    );
    border: 1px solid rgba(0, 242, 254, 0.5);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.2);
    z-index: 10;
}

.price-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.price.featured .price-head {
    border-bottom-color: rgba(0, 242, 254, 0.14);
}

.price .t {
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.price.featured .t {
    color: rgba(0, 242, 254, 0.7);
}

.pricing .price:nth-child(1) .t::after,
.pricing .price:nth-child(2) .t::after,
.pricing .price:nth-child(3) .t::after {
    content: attr(data-tag);
}

.pricing .price .t::after {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
}

.pricing .price.featured .t::after {
    background: rgba(0, 242, 254, 0.14);
    border-color: rgba(0, 242, 254, 0.4);
    color: var(--primary);
}

.price.upcoming {
    border-color: rgba(167, 139, 250, 0.2);
    background: linear-gradient(
        135deg,
        rgba(20, 14, 34, 0.88),
        rgba(12, 8, 22, 0.82)
    );
}

.price.upcoming:hover {
    border-color: rgba(167, 139, 250, 0.32);
    background: linear-gradient(
        135deg,
        rgba(24, 18, 38, 0.92),
        rgba(14, 10, 26, 0.88)
    );
}

.price.upcoming .price-head {
    border-bottom-color: rgba(167, 139, 250, 0.18);
}

.price.upcoming .t {
    color: rgba(167, 139, 250, 0.72);
}

.pricing .price.upcoming .t::after {
    background: rgba(167, 139, 250, 0.14);
    border-color: rgba(167, 139, 250, 0.32);
    color: #d8ccff;
}

.price.upcoming .v {
    font-size: 2.2rem;
    letter-spacing: -1px;
    color: #efe7ff;
}

.price.upcoming .v span,
.price.upcoming .v-year,
.price.upcoming .v-year span {
    color: rgba(239, 231, 255, 0.58);
}

.price.upcoming li i {
    color: #c4b5fd;
}

.price.upcoming small {
    background: rgba(167, 139, 250, 0.06);
    border-color: rgba(167, 139, 250, 0.12);
    color: rgba(255, 255, 255, 0.62);
}

.price-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.28);
    color: #e9ddff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.price-status-badge i {
    color: #c4b5fd;
}

.price .v {
    font-size: 3.2rem;
    font-weight: 900;
    margin-top: 2px;
    line-height: 1;
    letter-spacing: -2px;
    color: #fff;
}

.price .v span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.45;
    letter-spacing: 0;
    margin-left: 2px;
}

.price .v-year {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0;
}

.price .v-year span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    letter-spacing: 0;
    opacity: 1;
}

/* ── Feature list ─────────────────────────────────────────── */
.price ul {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    flex: 1;
}

.price li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
}

.price li i {
    color: var(--primary);
    font-size: 0.65rem;
    opacity: 0.85;
    margin-top: 5px;
    justify-self: center;
}

.price li strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* ── Tagline ──────────────────────────────────────────────── */
.price small {
    display: block;
    margin-top: 22px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.55;
}

.price.featured small {
    background: rgba(0, 242, 254, 0.04);
    border-color: rgba(0, 242, 254, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ── Footer de botones ────────────────────────────────────── */
.price-footer {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: 14px;
    padding: 13px 20px;
    letter-spacing: 0.1px;
}

.price-footer .btn-primary {
    box-shadow:
        0 8px 20px rgba(0, 242, 254, 0.22),
        0 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.price-footer .btn-primary:hover {
    box-shadow:
        0 14px 32px rgba(0, 242, 254, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.price-footer .btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    padding: 11px 16px;
    font-weight: 600;
}

.price-footer .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .price-footer {
        margin-top: 20px;
    }
}

/* Orden: Pro primero en móvil/tablet */
@media (max-width: 980px) {
    .pricing .price.featured {
        order: -1;
        transform: scale(1);
        /* Reseteo para móvil */
    }

    .pricing .price.featured:hover {
        transform: translateY(-4px);
    }
}

/* CTA BANNER & B2B LEAD FORM (Deep Glassmorphism) */
.cta-banner {
    padding: 32px 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(0, 242, 254, 0.1),
            transparent 60%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(255, 0, 85, 0.05),
            transparent 60%
        ),
        rgba(8, 12, 18, 0.65);
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* Fondo de luz moviéndose en el CTA */
.cta-banner::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(
        circle at center,
        rgba(0, 242, 254, 0.06) 0%,
        transparent 50%
    );
    animation: driftCTA 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes driftCTA {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(15%, 10%);
    }
}

.cta-banner .row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.form-lead {
    margin-top: 24px;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(0, 242, 254, 0.15);
    background: rgba(10, 15, 22, 0.7);
    backdrop-filter: blur(30px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* Lluvia de luz en el Formulario B2B */
.form-lead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(
        ellipse at top,
        rgba(0, 242, 254, 0.12) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.form-lead .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Inputs form B2B Premium */
.form-lead label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

.form-lead input,
.form-lead select,
.form-lead textarea {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    padding: 14px 16px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-lead input:focus,
.form-lead select:focus,
.form-lead textarea:focus {
    background: rgba(0, 242, 254, 0.05);
    border-bottom-color: var(--primary);
    box-shadow: 0 10px 20px -10px rgba(0, 242, 254, 0.2);
    outline: none;
}

.form-lead input::placeholder,
.form-lead textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 720px) {
    .form-lead .two {
        grid-template-columns: 1fr;
    }
}

.hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
}

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

/* Stagger escalonado para grids de cards */
.grid-3 .card.reveal:nth-child(1),
.grid-4 .card.reveal:nth-child(1) {
    transition-delay: 0ms;
}
.grid-3 .card.reveal:nth-child(2),
.grid-4 .card.reveal:nth-child(2) {
    transition-delay: 70ms;
}
.grid-3 .card.reveal:nth-child(3),
.grid-4 .card.reveal:nth-child(3) {
    transition-delay: 140ms;
}
.grid-4 .card.reveal:nth-child(4) {
    transition-delay: 210ms;
}

footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: linear-gradient(
        135deg,
        rgba(15, 18, 24, 0.95),
        rgba(8, 12, 18, 0.9)
    );
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 14px 16px;
    display: none;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    z-index: 60;
    max-width: 980px;
    width: calc(100% - 24px);
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0, 242, 254, 0.08);
}

.cookie-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary);
    box-shadow: 0 10px 22px rgba(0, 242, 254, 0.18);
}

.cookie-content {
    flex: 1;
}

.cookie-title {
    font-weight: 800;
    color: #fff;
    font-size: 0.9rem;
}

.cookie-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.plan-table {
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-top: 18px;
}

.plan-table-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.4fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    margin-bottom: 10px;
}

.plan-table-head {
    font-weight: 800;
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.2);
}

.plan-table-row > div {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.plan-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: fit-content;
}

.plan-pill.pro {
    border-color: rgba(0, 242, 254, 0.5);
    color: var(--primary);
}

.plan-pill.empresa {
    border-color: rgba(255, 204, 0, 0.6);
    color: #ffd24d;
}

.plan-pill.supremo {
    border-color: rgba(255, 0, 85, 0.6);
    color: #ff7da8;
}

.plan-table-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.plan-features {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    list-style: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}

.plan-features li {
    padding-left: 16px;
    position: relative;
}

.plan-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 14px;
}

.compare-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
        135deg,
        rgba(25, 25, 30, 0.85),
        rgba(10, 10, 15, 0.65)
    );
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.compare-card.featured {
    border-color: rgba(0, 242, 254, 0.45);
    box-shadow: 0 18px 36px rgba(0, 242, 254, 0.18);
}

.compare-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 18px 36px rgba(0, 242, 254, 0.18);
}

.compare-title {
    font-weight: 900;
    font-size: 1.05rem;
}

.compare-tag {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.compare-list {
    margin-top: 12px;
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

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

@media (max-width: 900px) {
    .plan-table-row {
        grid-template-columns: 1fr 1fr;
    }

    .plan-table-head {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ── Optimización de rendimiento en móvil ──────────────────────────────────
   En pantallas pequeñas se reducen blur y sombras pesadas para mantener
   60 fps en devices de gama media/baja.
   ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --blur-sm: 4px;
        --blur-md: 10px;
        --blur-lg: 14px;
        --blur-xl: 18px;
        --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.3);
    }

    .demo-card {
        backdrop-filter: blur(var(--blur-xl));
    }

    .card {
        backdrop-filter: blur(var(--blur-md));
        box-shadow: var(--shadow-md);
    }

    .form-lead {
        backdrop-filter: blur(var(--blur-lg));
    }

    .cta-banner {
        backdrop-filter: blur(var(--blur-md));
    }

    .glass {
        backdrop-filter: blur(var(--blur-md));
    }

    .demo-modal {
        backdrop-filter: blur(4px);
    }

    /* Stagger desactivado en móvil para no retrasar contenido visible */
    .grid-3 .card.reveal,
    .grid-4 .card.reveal {
        transition-delay: 0ms !important;
    }
}

@media (hover: none) {
    .nav-icon::after,
    .btn-contrast::after {
        display: none;
    }
}

/* Mobile Floating Dock */
.mobile-dock {
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - 18px);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    z-index: 50;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    isolation: isolate;
    transition: opacity 0.25s ease;
    opacity: 1;
    box-sizing: border-box;
    overflow: hidden;
    will-change: opacity;
}

.mobile-dock.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.mobile-dock::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: conic-gradient(
        from 180deg,
        rgba(0, 242, 254, 0),
        rgba(0, 242, 254, 0.35),
        rgba(255, 0, 85, 0.2),
        rgba(0, 255, 136, 0.18),
        rgba(0, 242, 254, 0)
    );
    opacity: 0.55;
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

.mobile-dock::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(0, 242, 254, 0.12),
            transparent 55%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 0, 85, 0.1),
            transparent 55%
        );
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
}

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

.dock-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    position: relative;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.dock-btn:focus-visible {
    outline: 2px solid rgba(0, 242, 254, 0.9);
    outline-offset: 3px;
}

.dock-btn:active {
    transform: scale(0.96);
    filter: brightness(1.05);
}

.dock-btn i {
    transition: transform 0.25s ease;
}

.dock-btn:active i {
    transform: scale(0.98);
}

.dock-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 10px 26px rgba(0, 242, 254, 0.14);
}

.dock-btn.contrast {
    background: rgba(0, 0, 0, 0.4);
}

.dock-btn.contrast[aria-pressed="true"] {
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 10px 26px rgba(0, 242, 254, 0.18);
}

.dock-btn.contrast[aria-pressed="true"] i {
    transform: rotate(180deg);
}

.dock-btn::after {
    content: attr(data-tip);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.dock-btn:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 520px) {
    .mobile-dock {
        display: inline-flex;
        padding: 8px;
        gap: 8px;
        max-width: calc(100vw - 14px);
    }

    body {
        padding-bottom: 86px;
    }

    .cookie-banner {
        bottom: 80px !important;
    }
}

@media (hover: none) {
    .dock-btn::after {
        display: none;
    }
}

body.hc .mobile-dock {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.16);
}

body.hc .mobile-dock::before {
    opacity: 0.4;
    filter: blur(12px);
}

body.hc .dock-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

body.hc .dock-btn.contrast {
    background: rgba(0, 0, 0, 0.55);
}

.help-app-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 999px;
    color: #001018;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 1px solid rgba(0, 242, 254, 0.35);
    box-shadow:
        0 10px 26px rgba(0, 242, 254, 0.22),
        0 18px 45px rgba(0, 0, 0, 0.42);
    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.help-app-fab-wrap {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 48;
    display: inline-flex;
    align-items: center;
}

.help-app-fab-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(32%, -32%);
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.68rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
    z-index: 2;
}

.help-app-fab:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 14px 32px rgba(0, 242, 254, 0.3),
        0 22px 48px rgba(0, 0, 0, 0.45);
}

.help-app-fab:active {
    transform: translateY(0);
}

.help-app-fab i {
    font-size: 1rem;
}

@media (max-width: 520px) {
    .help-app-fab-wrap {
        right: 14px;
        bottom: 96px;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    body.fab-hidden .help-app-fab-wrap {
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }

    .help-app-fab {
        width: auto;
        height: 46px;
        min-height: 46px;
        padding: 0 12px;
        font-size: 0.88rem;
        gap: 7px;
        right: auto;
        bottom: auto;
        position: relative;
    }

    .help-app-fab span {
        display: inline;
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.2px;
        line-height: 1;
    }

    .help-app-fab-close {
        width: 20px;
        height: 20px;
        font-size: 0.62rem;
        transform: translate(28%, -28%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-dock::before {
        animation: none !important;
    }

    .mobile-dock {
        animation: none !important;
    }

    .hero h1 {
        animation: none !important;
    }

    .hero h1 .grad {
        animation: none !important;
    }
}

/* TESTIMONIOS Y CASOS REALES (Marquee) */
.testimonials-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    margin-top: 22px;
}

.testimonials-marquee-container::before,
.testimonials-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #050505, transparent);
}

.testimonials-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #050505, transparent);
}

body.hc .testimonials-marquee-container::before {
    background: linear-gradient(to right, #000, transparent);
}

body.hc .testimonials-marquee-container::after {
    background: linear-gradient(to left, #000, transparent);
}

.testimonials-marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: marqueeScroll 34s linear infinite;
    will-change: transform;
}

/* Solo pausar en dispositivos con puntero (ratón) */
@media (hover: hover) {
    .testimonials-marquee-container:hover .testimonials-marquee-track {
        animation-play-state: paused;
    }
}

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

    100% {
        transform: translateX(calc(-50% - 9px));
    }
}

.testimonial-card {
    flex: 0 0 320px;
    width: 320px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.02)
    );
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 18px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 254, 0.08),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    border-color: rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.06);
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 242, 254, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #001018;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.9), rgba(0, 242, 254, 0.4));
    border: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 10px 18px rgba(0, 242, 254, 0.2);
}

.testimonial-avatar.avatar--fitness {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.95), rgba(0, 255, 136, 0.35));
    border-color: rgba(0, 255, 136, 0.45);
    box-shadow: 0 10px 18px rgba(0, 255, 136, 0.25);
}

.testimonial-avatar.avatar--salud {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.95), rgba(0, 242, 254, 0.35));
    border-color: rgba(0, 242, 254, 0.45);
}

.testimonial-avatar.avatar--bienestar {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.9), rgba(255, 0, 85, 0.35));
    border-color: rgba(255, 0, 85, 0.45);
    box-shadow: 0 10px 18px rgba(255, 0, 85, 0.2);
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.testimonial-condition {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.testimonial-rating {
    display: flex;
    gap: 3px;
    color: #ffc107;
    font-size: 0.9rem;
}

.testimonial-quote {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 16px;
    font-style: italic;
    position: relative;
    z-index: 1;
    border-left: 3px solid rgba(0, 242, 254, 0.6);
    padding-left: 12px;
}

.testimonial-quote::before {
    content: "“";
    color: rgba(0, 242, 254, 0.7);
    margin-right: 4px;
}

.testimonial-quote::after {
    content: "”";
    color: rgba(0, 242, 254, 0.7);
    margin-left: 4px;
}

.testimonial-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.18);
    position: relative;
    z-index: 1;
}

.testimonial-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-result-item:last-child {
    margin-bottom: 0;
}

.testimonial-result-icon {
    color: var(--success);
    font-weight: bold;
}

.testimonial-metric {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive - Tablets (820px) */
@media (max-width: 820px) {
    .testimonial-card {
        padding: 20px;
        gap: 12px;
    }

    .testimonial-card h3 {
        font-size: 1.1rem;
    }

    .testimonial-quote {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Responsive - Mobile (520px) */
@media (max-width: 520px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .testimonial-card {
        padding: 16px;
        gap: 12px;
    }

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

    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .testimonial-meta {
        gap: 6px;
    }

    .testimonial-card h3 {
        font-size: 1rem;
    }

    .condition-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .testimonial-quote {
        font-size: 0.85rem;
    }

    .testimonial-results {
        font-size: 0.8rem;
    }
}

.hero-sub {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.demo-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.proof-strip {
    padding: 24px 0 10px;
}

.chat-live-section {
    padding-top: 34px;
}

.chat-live-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.chat-live-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(20, 22, 30, 0.9), rgba(8, 10, 16, 0.74));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.45);
    padding: 18px;
}

.chat-live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
}

.chat-live-header i {
    color: var(--primary);
}

.chat-live-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 172px;
}

.chat-live-bubble {
    max-width: 88%;
    border-radius: 18px;
    padding: 12px 14px;
    font-size: 0.93rem;
    line-height: 1.45;
}

.chat-live-bubble.user {
    align-self: flex-end;
    background: rgba(0, 242, 254, 0.11);
    border: 1px solid rgba(0, 242, 254, 0.28);
    color: rgba(255, 255, 255, 0.96);
}

.chat-live-bubble.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
}

.chat-live-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.chat-live-chip {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-out);
}

.chat-live-chip:hover {
    border-color: rgba(0, 242, 254, 0.45);
}

.chat-live-chip.active {
    background: rgba(0, 242, 254, 0.14);
    border-color: rgba(0, 242, 254, 0.55);
    color: var(--primary);
}

.chat-live-plan {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 9px;
    color: rgba(255, 255, 255, 0.9);
}

.chat-live-plan li {
    line-height: 1.45;
}

.chat-live-cta {
    margin-top: 14px;
}

@media (max-width: 980px) {
    .chat-live-grid {
        grid-template-columns: 1fr;
    }
}

/* Glass Bar Premium (Fase 3) */
.proof-glass-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(
        135deg,
        rgba(20, 20, 25, 0.35),
        rgba(5, 5, 10, 0.55)
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    padding: 24px;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(28px);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.proof-item {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.proof-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    flex-shrink: 0;
}

.proof-kpi {
    font-size: 1.8rem;
    font-weight: 900;
    /* Efecto holográfico animado */
    background: linear-gradient(
        to right,
        #fff 20%,
        var(--primary) 50%,
        #fff 80%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 4s linear infinite;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    text-align: center;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

.proof-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    line-height: 1.3;
}

.proof-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.proof-logos .logo-pill {
    position: relative;
    z-index: 1;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.02)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.proof-logos .logo-pill-icon {
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.25));
}

.proof-logos .logo-pill.is-fallback .logo-pill-icon {
    display: inline-flex;
}

.proof-logos .logo-pill.is-fallback img {
    display: none;
}

.proof-logos .logo-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 242, 254, 0.4);
}

.proof-logos .logo-pill img {
    width: 20px;
    height: 20px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.2));
}

.trust-strip {
    padding: 26px 0 10px;
}

.trust-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 14, 20, 0.6);
    backdrop-filter: blur(16px);
}

.trust-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.trust-title {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}

.trust-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.trust-badge i {
    color: var(--primary);
}

@media (max-width: 980px) {
    .proof-glass-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 24px;
        gap: 20px;
    }

    .proof-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent
        );
    }

    .d-none-mobile {
        display: none;
    }
}

@media (max-width: 820px) {
    .trust-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.b2b-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.b2b-copy .section-desc {
    margin-bottom: 20px;
}

.b2b-benefits {
    display: grid;
    gap: 16px;
    margin-top: 10px;
}

.b2b-benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.b2b-benefit-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary);
    font-size: 1.1rem;
}

.b2b-benefit-title {
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.b2b-benefit-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.b2b-testimonial {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.b2b-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.9), rgba(0, 242, 254, 0.4));
    color: #001018;
    font-weight: 900;
    font-size: 0.95rem;
}

.b2b-testimonial-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.b2b-testimonial-meta {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
}

.b2b-form .form-lead {
    margin-top: clamp(140px, 11vw, 200px);
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.b2b-form {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    align-self: start;
    padding-top: 0;
    margin-top: 0;
}

@media (max-width: 980px) {
    .b2b-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .b2b-form {
        align-self: start;
        align-items: flex-start;
        margin-top: 0;
    }

    .b2b-form .form-lead {
        margin-top: 0;
    }
}

.b2b-highlights {
    margin-top: 16px;
    display: grid;
    gap: 8px;
}

.b2b-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.b2b-item i {
    color: var(--primary);
}

/* ===== ULTRA-PREMIUM PWA INSTALL BANNER ===== */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 999999;
    width: min(480px, calc(100% - 40px));
    background: rgba(10, 12, 20, 0.82);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition:
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.5s;
    opacity: 0;
    pointer-events: none;
}

.pwa-install-banner.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.pwa-icon-box {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 242, 254, 0.25);
}

.pwa-icon-box i {
    color: #0b111b;
    font-size: 1.5rem;
}

.pwa-content {
    flex-grow: 1;
}

.pwa-content h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
}

.pwa-content p {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.pwa-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-pwa-install {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-pwa-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-pwa-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.btn-pwa-close:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .pwa-install-banner {
        top: auto;
        bottom: calc(96px + env(safe-area-inset-bottom));
        transform: translateX(-50%) translateY(120%);
        padding: 12px 14px;
        gap: 12px;
    }
    .pwa-install-banner.is-visible {
        transform: translateX(-50%) translateY(0);
    }

    .pwa-icon-box {
        width: 42px;
        height: 42px;
    }

    .pwa-icon-box i {
        font-size: 1.2rem;
    }

    .pwa-content h4 {
        font-size: 0.9rem;
    }

    .pwa-content p {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .btn-pwa-install {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .btn-pwa-close {
        width: auto;
        height: auto;
        font-size: 0.78rem;
        padding: 2px 4px;
        white-space: nowrap;
    }
}

/* --- ENHANCED DEMO WIDGET STYLES --- */
.demo-column {
    display: flex;
    flex-direction: column;
}

.demo-inner {
    position: relative;
    z-index: 2;
    padding: 22px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 5, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.demo-inner .form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.demo-inner .demo-actions {
    margin-top: auto;
    padding-top: 20px;
}

.pill-grid-interactive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.pill-choice {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-spring);
    user-select: none;
}

.pill-choice:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-color: rgba(0, 242, 254, 0.5);
}

.pill-choice i {
    color: var(--primary);
    font-size: 1.1rem;
    opacity: 0.6;
}

.pill-choice.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.15);
}

.pill-choice.active i {
    opacity: 1;
    transform: scale(1.1);
}

.icon-selector {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.icon-choice {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-choice i {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.icon-choice span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.icon-choice.active {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--primary);
}

.icon-choice.active i,
.icon-choice.active span {
    color: var(--primary);
}

.icon-choice:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-color: rgba(0, 242, 254, 0.5);
}

.pill:focus-within {
    border-color: rgba(0, 242, 254, 0.45);
    background: rgba(0, 242, 254, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.12);
}

.ai-processing-visual {
    padding: 20px 0;
    text-align: center;
}

.ai-loader {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.ai-core {
    position: absolute;
    inset: 15px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 25px var(--primary);
    animation: ai-pulse-demo 2s infinite;
}

.ai-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 242, 254, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rotate-demo 1.5s linear infinite;
}

@keyframes ai-pulse-demo {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes rotate-demo {
    100% {
        transform: rotate(360deg);
    }
}

.ai-status-text {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.ai-log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    font-family: monospace;
    font-size: 0.85rem;
}

.log-line {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.log-line:last-child {
    color: #fff;
    animation: demo-blink 1s infinite;
}

@keyframes demo-blink {
    50% {
        opacity: 0.5;
    }
}

/* === DEMO RESULT MODAL & PLAN STYLES === */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.demo-modal-content {
    background: linear-gradient(135deg, #0a0a0f, #151520);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 242, 254, 0.1);
}

.demo-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 10;
}

.demo-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-modal-title i {
    color: var(--primary);
    font-size: 1.4rem;
}

.demo-modal-title div {
    display: flex;
    flex-direction: column;
}

.demo-modal-title span {
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
}

.demo-modal-title small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.demo-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-modal-close:hover {
    background: rgba(255, 24, 24, 0.2);
    color: #ff4a4a;
    transform: rotate(90deg);
}

.demo-modal-body {
    padding: 24px;
}

.demo-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.demo-modal-actions .btn {
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding-inline: 16px;
}

.demo-modal-actions .btn i {
    flex-shrink: 0;
}

.demo-modal-app-btn {
    flex: 1.35 1 260px;
}

.demo-modal-pro-btn {
    flex: 1 1 180px;
}

.result h4 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--primary);
}

.result .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.result .chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result .chip.primary {
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary);
    border-color: rgba(0, 242, 254, 0.3);
}

.result .chip.accent {
    background: rgba(187, 134, 252, 0.15);
    color: #bb86fc;
    border-color: rgba(187, 134, 252, 0.3);
}

.result p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.demo-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.demo-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.demo-kpis .kpi {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.demo-kpis .kpi .k {
    font-weight: 900;
    font-size: 0.95rem;
    color: #fff;
}

.demo-kpis .kpi .l {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.demo-list {
    margin: 12px 0;
    font-size: 0.9rem;
    list-style: none;
    padding: 0;
}

.demo-list li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

ul.demo-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

.result .hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 20px;
    text-align: center;
    font-style: italic;
}

.demo-subtle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ══════════════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE PREMIUM POLISH
   Covers all sections not yet adapted for small screens.
   ══════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 820px) ──────────────────────────────────────────── */
@media (max-width: 820px) {
    /* B2B layout: stack */
    .b2b-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* Tabs header: horizontal scroll instead of wrap-to-4-lines */
    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        gap: 8px;
        padding-left: 4px;
        padding-right: 4px;
    }
    .tabs-header::-webkit-scrollbar { display: none; }
    .tab-btn {
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 10px 16px;
    }
    .tab-indicator { display: none; } /* indicator doesn't work well in scrollable */

    /* CTA banner row: stack */
    .cta-banner .row {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Phone (≤ 520px) ───────────────────────────────────────────── */
@media (max-width: 520px) {
    /* Hero sub-text */
    .hero-sub {
        font-size: 0.78rem;
        line-height: 1.55;
    }

    /* Nav actions */
    .nav-actions {
        gap: 6px;
    }
    .nav-actions .btn {
        padding: 8px 12px;
        font-size: 0.72rem;
    }
    .nav-icon {
        width: 36px;
        height: 36px;
    }

    /* Hero metrics: 3 cols → centered row */
    .hero-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .metric {
        padding: 10px 8px;
    }
    .metric .k {
        font-size: 1rem;
    }
    .metric .l {
        font-size: 0.72rem;
    }

    /* Proof strip KPIs tighter */
    .proof-glass-bar {
        padding: 18px 14px;
        border-radius: 18px;
        gap: 16px;
    }
    .proof-item {
        padding: 0 8px;
    }
    .proof-kpi {
        font-size: 1.1rem;
        animation: none !important;
        background: none !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        text-shadow: none !important;
    }
    .proof-label {
        font-size: 0.72rem;
    }

    /* Chat live: wrap chips, bubble smaller */
    .chat-live-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
    .chat-live-chip {
        font-size: 0.8rem;
        padding: 8px 14px;
        white-space: nowrap;
    }
    .chat-live-bubble {
        font-size: 0.88rem;
        padding: 12px 14px;
    }
    .chat-live-card {
        border-radius: 20px;
    }

    /* Pricing: tighter padding */
    .price {
        padding: 22px 18px 22px;
    }
    .price big {
        font-size: 2.4rem;
    }
    .price-footer {
        gap: 8px;
        margin-top: 16px;
    }
    .price-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* CTA banner + B2B */
    .cta-banner {
        padding: 18px 14px;
    }
    .cta-banner .row {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .form-lead {
        padding: 18px 14px;
    }
    .form-lead .two {
        grid-template-columns: 1fr;
    }

    /* Trust badges wrap */
    .trust-row {
        gap: 10px;
    }
    .trust-badge {
        padding: 10px 12px;
        font-size: 0.72rem;
    }

    /* Steps cards */
    .step-card {
        padding: 18px;
        min-height: auto;
    }
    .step-number {
        font-size: 1rem;
    }

    /* Cards grid tighter */
    .grid-3,
    .grid-4 {
        gap: 14px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.35rem;
    }
    .section-desc {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    /* Demo modal */
    .demo-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
        border-radius: 24px;
    }
    .demo-modal-header {
        padding: 14px 16px;
    }
    .demo-modal-body {
        padding: 16px;
    }

    .demo-modal-actions .btn {
        flex-basis: 100%;
    }

    /* Cookie banner */
    .cookie-banner {
        flex-direction: column;
        padding: 16px;
        gap: 14px;
        bottom: calc(80px + env(safe-area-inset-bottom));
        margin: 0 10px;
        width: auto;
    }
    .cookie-banner .cookie-text {
        text-align: center;
        font-size: 0.82rem;
    }
    .cookie-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 0.85rem;
    }

    /* Compare grid */
    .compare-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .compare-card {
        padding: 14px;
    }

    /* Plan table */
    .plan-table {
        padding: 12px;
    }
}

@media (max-width: 820px) {
    #adaptacion .tabs-header {
        scroll-snap-type: x mandatory;
        touch-action: pan-x;
    }

    #adaptacion .tab-btn {
        scroll-snap-align: start;
        white-space: nowrap;
    }

    #adaptacion .card h3 {
        font-size: 0.98rem;
        line-height: 1.35;
    }

    #adaptacion .card p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .testimonials-marquee-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 0 14px;
    }

    .testimonials-marquee-container::-webkit-scrollbar {
        display: none;
    }

    .testimonials-marquee-container::before,
    .testimonials-marquee-container::after {
        display: none;
    }

    .testimonials-marquee-track {
        width: auto;
        animation: none;
        gap: 12px;
        padding: 0 2px;
    }

    .testimonials-marquee-track .testimonial-card[aria-hidden="true"] {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 min(86vw, 340px);
        width: min(86vw, 340px);
    }

    .testimonial-rating {
        flex-wrap: nowrap;
    }
}

@media (max-width: 520px) {
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .demo-inner {
        padding: 24px 18px 24px;
        min-height: auto;
    }

    .demo-actions {
        flex-direction: column;
    }

    .demo-actions .btn {
        width: 100%;
    }

    .icon-selector {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .icon-choice {
        padding: 10px 6px;
        min-width: 0;
    }

    .icon-choice span {
        font-size: 0.66rem;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    .demo-kpis {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex-basis: min(90vw, 320px);
        width: min(90vw, 320px);
        border-radius: 16px;
    }

    .testimonial-header {
        gap: 8px;
    }

    .testimonial-rating {
        font-size: 0.82rem;
    }

    .cta-banner .row > div:last-child {
        width: 100%;
    }

    .cta-banner .row > div:last-child .btn {
        width: 100%;
        justify-content: center;
    }
}
