:root {
            --brand-dark: #020617;
            /* Very deep slate/blue for base */
            --brand-panel: #0f172a;
            /* Slightly lighter for elements */
            --brand-light: #3b82f6;
            /* Classic CoachLab Blue */
            --brand-neon: #60a5fa;
            /* Glow Blue */
            --neon-green: #10b981;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --bg-outer: #000000;
        }

        /* CONFIGURACIÓN EXCLUSIVA PARA CREADOR DE PDF Y A4 PERFECTO */
        @page {
            size: A4 portrait;
            margin: 0;
        }

        html,
        body {
            margin: 0;
            padding: 0;
            font-family: 'Montserrat', sans-serif;
            background-color: var(--bg-outer);
            /* Outer background */
            color: var(--text-main);
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
            line-height: 1.5;
        }

        .page {
            width: 210mm;
            height: 296.8mm;
            /* Ajuste milimétrico A4 */
            margin: 10mm auto;
            /* DEEP DARK THEME BACKGROUND GRID */
            background-color: var(--brand-dark);
            background-image:
                radial-gradient(circle at top right, #0d1b3e, transparent 50%),
                linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
            background-size: 100% 100%, 30px 30px, 30px 30px;
            box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
            padding: 15mm;
            box-sizing: border-box;
            position: relative;
            overflow: hidden;
            /* Fuerza a la impresora a tratar cada div .page como una hoja nueva */
            page-break-after: always;
            break-after: page;
        }

        @media print {
            body {
                background: none;
                margin: 0;
            }

            .page {
                margin: 0;
                box-shadow: none;
                border: none;
            }
        }

        /* Abstract ambient glows behind the content for depth */
        .ambient-glow-1 {
            position: absolute;
            top: 20%;
            left: -10%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
            border-radius: 50%;
            z-index: 0;
            pointer-events: none;
        }

        .ambient-glow-2 {
            position: absolute;
            bottom: -5%;
            right: -5%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
            border-radius: 50%;
            z-index: 0;
            pointer-events: none;
        }

        .content-layer {
            position: relative;
            z-index: 1;
        }

        /* ================= HOJA 1 ================= */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        .header img {
            height: 35px;
            object-fit: contain;
            /* NO FILTER: We show the original white/blue logo natively now */
        }

        .confidential-badge {
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--brand-neon);
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            padding: 5px 12px;
            border-radius: 4px;
        }

        .h1-title {
            font-size: 36px;
            font-weight: 900;
            line-height: 1.1;
            color: #ffffff;
            margin: 10px 0 5px 0;
            letter-spacing: -1px;
        }

        .text-gradient {
            background: linear-gradient(135deg, var(--brand-light), #93c5fd);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .h1-subtitle {
            font-size: 15px;
            font-weight: 700;
            color: var(--brand-neon);
            margin: 0 0 20px 0;
        }

        /* Layout Dividido Hero */
        .hero-split {
            display: flex;
            gap: 25px;
            margin-bottom: 25px;
            align-items: stretch;
        }

        .hero-text {
            flex: 1.2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 12px;
        }

        .hero-visual {
            flex: 1;
            background: var(--brand-panel);
            border-radius: 20px;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }

        .hero-visual img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.85;
            /* Slightly blend into dark */
        }

        /* GLASSMORPHISM BOXES */
        .pain-point,
        .solution {
            padding: 16px;
            border-radius: 12px;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .pain-point {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(239, 68, 68, 0.2);
            border-left: 4px solid #ef4444;
        }

        .solution {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-left: 4px solid var(--brand-light);
        }

        .box-title {
            font-size: 14px;
            font-weight: 900;
            text-transform: uppercase;
            margin: 0 0 5px 0;
            letter-spacing: 1px;
        }

        .pain-point .box-title {
            color: #f87171;
        }

        .solution .box-title {
            color: var(--brand-neon);
        }

        .box-text {
            font-size: 13px;
            margin: 0;
            color: var(--text-main);
            font-weight: 400;
        }

        /* PIPELINE / EMBUDO 3 FASES (DARK MODE) */
        .pipeline-title {
            font-size: 16px;
            font-weight: 900;
            color: #ffffff;
            text-transform: uppercase;
            margin-bottom: 5px;
        }

        .pipeline-divider {
            height: 2px;
            width: 50px;
            background: var(--brand-light);
            margin-bottom: 15px;
            box-shadow: 0 0 8px var(--brand-light);
        }

        .pipeline-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            position: relative;
        }

        /* Next Level: Timeline Connector */
        .pipeline-container::before {
            content: '';
            position: absolute;
            left: 36px;
            top: 20px;
            bottom: 20px;
            width: 2px;
            background: linear-gradient(to bottom, var(--brand-light), transparent);
            z-index: 0;
            opacity: 0.6;
        }

        .pipeline-card {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(59, 130, 246, 0.2);
            backdrop-filter: blur(12px);
            border-radius: 12px;
            padding: 10px 15px;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        }

        .phase-number {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--brand-light), #2563eb);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 900;
            color: #fff;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

        .phase-title {
            font-size: 15px;
            font-weight: 900;
            color: #ffffff;
            margin: 0 0 4px 0;
        }

        .phase-tags {
            font-size: 9px;
            font-weight: 800;
            color: #60a5fa;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 6px;
            display: block;
        }

        .phase-text {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
            margin: 0;
            line-height: 1.4;
        }

        /* ================= HOJA 2 ================= */
        .page-title {
            font-size: 28px;
            font-weight: 900;
            color: #ffffff;
            text-align: center;
            margin-bottom: 25px;
        }

        /* Tabla Despiadada de Costos - B2B Premium */
        .comparison-table {
            display: flex;
            gap: 15px;
            margin-bottom: 30px;
        }

        .col-bad,
        .col-good {
            flex: 1;
            border-radius: 16px;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }

        .col-bad {
            background: rgba(15, 23, 42, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .col-good {
            background: linear-gradient(135deg, rgba(30, 58, 138, 0.6), rgba(2, 6, 23, 0.95));
            color: white;
            border: 1px solid rgba(96, 165, 250, 0.6);
            box-shadow: 0 10px 40px rgba(59, 130, 246, 0.25), inset 0 0 25px rgba(59, 130, 246, 0.15);
            position: relative;
        }

        .risk-badge {
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(90deg, #fbbf24, #f59e0b);
            color: #451a03;
            font-size: 9px;
            font-weight: 900;
            padding: 5px 16px;
            border-radius: 20px;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
            letter-spacing: 1px;
            z-index: 10;
            white-space: nowrap;
        }

        .col-good::before {
            content: '🚀 OFERTA B2B';
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(90deg, #1e3a8a, #3b82f6);
            color: #ffffff;
            font-size: 11px;
            font-weight: 900;
            padding: 5px 16px;
            border-radius: 20px;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            border: 1px solid rgba(96, 165, 250, 0.5);
        }

        .col-title {
            font-size: 16px;
            font-weight: 800;
            text-transform: uppercase;
            text-align: center;
            margin: 0 0 5px 0;
        }

        .col-bad .col-title {
            color: #64748b;
        }

        .col-good .col-title {
            color: #f8fafc;
        }

        .price-hero {
            font-size: 42px;
            font-weight: 900;
            text-align: center;
            margin: 10px 0;
        }

        .col-bad .price-hero {
            color: #64748b;
        }

        .col-good .price-hero {
            color: var(--brand-neon);
            text-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
        }

        .price-sub {
            font-size: 11px;
            text-align: center;
            font-weight: 600;
            margin-bottom: 20px;
        }

        .col-bad .price-sub {
            color: #475569;
        }

        .col-good .price-sub {
            color: #94a3b8;
        }

        .list-items {
            list-style: none;
            padding: 0;
            margin: 0;
            flex: 1;
        }

        .list-items li {
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 12px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            color: #cbd5e1;
        }

        .col-bad li::before {
            content: '❌';
            font-size: 10px;
            margin-top: 3px;
            opacity: 0.6;
        }

        .col-good li::before {
            content: '✔️';
            font-size: 10px;
            margin-top: 3px;
            color: var(--brand-neon);
            font-weight: 900;
            text-shadow: 0 0 5px var(--brand-neon);
        }

        /* Módulos Extra de Hoja 2 */
        .b2c-architecture {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.02));
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 30px;
            backdrop-filter: blur(10px);
        }

        .b2c-title {
            font-size: 18px;
            font-weight: 900;
            color: #ffffff;
            margin: 0 0 10px 0;
        }

        .b2c-text {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
            margin: 0;
        }

        .b2c-text strong {
            color: #ffffff;
        }

        /* Footer Call To Action PDF */
        .footer-cta {
            margin-top: auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-left: 8px solid var(--brand-light);
        }

        /* SOLICITUD EXPLÍCITA: Mantener el código QR en alto contraste / Blanco y negro puro */
        .qr-placeholder {
            width: 80px;
            height: 80px;
            background: #ffffff;
            border: 2px dashed #000000;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 900;
            color: #000000;
            text-align: center;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }

        .cta-content {
            margin-left: 20px;
            flex: 1;
        }

        .cta-h3 {
            font-size: 20px;
            font-weight: 900;
            color: #ffffff;
            margin: 0 0 5px 0;
        }

        .cta-p {
            font-size: 12px;
            font-weight: 500;
            color: #94a3b8;
            margin: 0 0 10px 0;
        }

        .btn-link {
            display: inline-block;
            background: var(--brand-light);
            color: #fff;
            text-decoration: none;
            padding: 8px 20px;
            font-size: 12px;
            font-weight: 800;
            border-radius: 6px;
            text-transform: uppercase;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

        .legal-footer {
            margin-top: 25px;
            font-size: 10px;
            color: #475569;
            text-align: center;
            font-weight: 600;
        }

        .helikon-watermark {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            opacity: 0.8;
            margin-bottom: 8px;
        }

        .helikon-watermark img {
            width: 45px;
            height: auto;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.1);
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
        }

        .helikon-watermark span {
            color: rgba(255, 255, 255, 0.7);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }