:root {
            --primary: #000000;
            --accent: #c5a021;
            --bg: #ffffff;
            --text: #0a0a0a;
            --text-muted: #525252;
            --radius: 32px;
            --border: #e2e8f0;
            --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.05);

            /* ── Typography Scale ── */
            --fs-2xs:  11px;   /* metadatos, badges pequeños */
            --fs-xs:   12px;   /* notas, hints, etiquetas de campo */
            --fs-sm:   13px;   /* texto secundario, captions */
            --fs-base: 15px;   /* cuerpo principal */
            --fs-md:   16px;   /* subtítulos, texto de selección */
            --fs-lg:   18px;   /* títulos de sección / card */
            --fs-xl:   clamp(20px, 2.5vw, 24px);  /* subtítulos de pantalla */
            --fs-2xl:  clamp(26px, 3.5vw, 32px);  /* títulos de módulo */
            --fs-3xl:  clamp(28px, 4vw, 40px);    /* títulos de paso */
            --fs-hero: clamp(40px, 6.5vw, 68px);  /* hero */
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg);
            background-image:
                radial-gradient(circle at 10% 20%, rgba(197, 160, 33, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
            background-attachment: fixed;
            color: var(--text);
            line-height: 1.5;
            overflow-x: hidden;
        }

        nav {
            padding: 12px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        nav::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.8);
            pointer-events: none;
        }

        .logo {
            display: flex;
            align-items: baseline;
            gap: 0;
            font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            text-decoration: none;
            color: var(--text);
            font-size: 32px;
            letter-spacing: 2px;
            text-transform: none;
        }

        .logo b {
            font-weight: 700;
        }

        .logo i {
            font-weight: 300;
            font-style: normal;
            font-size: 0.55em;
            margin-left: -1px;
        }

        .hero {
            min-height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 150px 20px 80px;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 60px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            align-items: center;
            justify-content: center;
        }

        .hero-left {
            max-width: 900px;
            margin: 0 auto;
        }

        h1 {
            font-size: clamp(40px, 6.5vw, 68px);
            font-weight: 800;
            letter-spacing: -3px;
            line-height: 0.95;
            margin-bottom: 24px;
            animation: slideUp 1s ease-out;
        }

        .hero p {
            font-size: 19px;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0 auto 40px;
            animation: slideUp 1s ease-out 0.2s both;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }

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

        .cta-group {
            display: flex;
            gap: 16px;
            justify-content: center;
            animation: slideUp 1s ease-out 0.4s both;
        }

        @media (min-width: 992px) {
            .hero {
                text-align: left;
                padding: 150px 20px 80px;
            }
            .hero-grid {
                grid-template-columns: 1fr 1.25fr;
                gap: 80px;
                text-align: left;
                max-width: 1500px;
            }
            .hero-left {
                margin: 0;
                max-width: 100%;
            }
            h1 {
                font-size: clamp(48px, 4.8vw, 76px);
                text-align: left;
            }
            .hero p {
                text-align: left;
                margin: 0 0 40px;
            }
            .cta-group {
                justify-content: flex-start !important;
            }
        }

        .btn {
            padding: 14px 28px;
            border-radius: 100px;
            font-size: 16px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            border: 2px solid transparent;
        }

        .btn-primary:hover {
            transform: scale(1.05);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .btn-secondary {
            background: white;
            border: 2px solid #e2e8f0;
            color: var(--text);
        }

        .btn-secondary:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
        }

        .features {
            padding: 60px 40px 80px;
            max-width: 1200px;
            margin: 0 auto;
            scroll-margin-top: 90px;
        }
        .features-header {
            text-align: center;
            margin-bottom: 48px;
        }
        @media (min-width: 992px) {
            .features {
                display: grid;
                grid-template-columns: 1.2fr 1.8fr;
                gap: 80px;
                align-items: start;
                max-width: 1300px;
            }
            .features-header {
                text-align: left;
                position: sticky;
                top: 120px;
                margin-bottom: 0;
            }
        }
        .features-label {
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--accent);
            margin-bottom: 10px;
        }
        .features-title {
            font-size: clamp(26px, 4vw, 36px);
            font-weight: 800;
            letter-spacing: -1px;
            color: var(--text);
        }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        /* === STEPS TIMELINE === */
        .steps-list {
            max-width: 720px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            width: 100%;
        }
        .step-row {
            display: grid;
            grid-template-columns: 64px 28px 1fr;
            gap: 0 16px;
            align-items: stretch;
        }
        .step-row.last {
            grid-template-columns: 64px 28px 1fr;
        }
        .step-number {
            font-size: 24px;
            font-weight: 900;
            color: var(--accent);
            letter-spacing: -1px;
            line-height: 1.2;
            padding-top: 22px;
            text-align: right;
        }
        .step-connector {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding-top: 22px;
        }
        .step-connector::before {
            content: '';
            width: 2px;
            flex: 1;
            background: linear-gradient(to bottom, var(--accent), #e2e8f0);
            border-radius: 2px;
            margin-top: 24px;
        }
        .step-connector::after {
            content: '';
            position: absolute;
            top: 28px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--accent);
            border: 2px solid var(--bg);
            box-shadow: 0 0 0 2px var(--accent);
        }
        .step-row.last .step-connector::before {
            display: none;
        }
        .step-content {
            padding: 24px 30px;
            background: #ffffff;
            border-radius: 20px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-premium);
            margin-bottom: 24px;
            transition: all 0.3s ease;
        }
        .step-content:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
            border-color: var(--accent);
        }
        .step-row.last .step-content {
            margin-bottom: 0;
        }
        .step-content h3 {
            font-size: 18px;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 8px;
            letter-spacing: -0.3px;
        }
        .step-content p {
            font-size: 14px;
            color: var(--text-muted);
            line-height: 1.65;
            margin: 0;
        }

        .feature-card {
            background: #f8fafc;
            padding: 40px;
            border-radius: var(--radius);
            transition: all 0.3s ease;
            text-align: left;
        }

        .feature-card:hover {
            background: #f1f5f9;
            transform: translateY(-10px);
        }

        .feature-card i {
            font-size: 32px;
            color: var(--accent);
            margin-bottom: 24px;
            display: block;
        }

        .feature-card h3 {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 12px;
        }



        .subscription-badge {
            background: var(--accent);
            color: white;
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 14px;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 16px;
        }

        /* ── Questionnaire Overrides ── */
        .wrapper {
            max-width: 1100px;
            margin: 0 auto;
            padding: 100px 20px 30px;
            position: relative;
        }

        #cuestionario-section {
            display: none;
            min-height: 80vh;
            animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        .form-card {
            background: #ffffff;
            border-radius: var(--radius);
            padding: 24px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-premium);
            position: relative;
            overflow: hidden;
        }

        .progress-bar-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: #f1f5f9;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--accent);
            width: 0%;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .step-label {
            display: flex;
            align-items: center;
            font-size: var(--fs-md);
            font-weight: 700;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .step-back {
            display: none;
            cursor: pointer;
            padding: 8px 12px 8px 0;
            margin-right: 4px;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .step-back:active {
            opacity: 0.6;
            transform: scale(0.9);
        }

        .step-title {
            font-size: var(--fs-3xl);
            font-weight: 800;
            color: var(--text);
            margin-bottom: 0;
            letter-spacing: -1.5px;
            line-height: 1.1;
        }

        .step-sub {
            font-size: var(--fs-base);
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .step-count {
            font-size: var(--fs-sm);
            font-weight: 600;
            color: var(--text-muted);
            opacity: 0.6;
        }

        /* ── Inputs Styling ── */
        .lead-capture-grid, .options-grid {
            display: grid;
            gap: 20px;
        }

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

        .span-2 {
            grid-column: span 2;
        }

        .span-3 {
            grid-column: span 3;
        }

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

        @media (max-width: 1100px) {
            .lead-capture-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 850px) {
            .lead-capture-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .span-3 {
                grid-column: span 2;
            }
        }

        @media (max-width: 768px) {
            .lead-capture-grid, .options-grid {
                grid-template-columns: 1fr !important;
            }
            .span-2, .span-3 {
                grid-column: span 1 !important;
            }
            .step-back {
                display: inline-flex;
            }
            .patron-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 12px !important;
            }
            .patron-card {
                padding: 6px !important;
                border-radius: 16px !important;
            }
            .patron-card img {
                margin-bottom: 8px !important;
            }
            .patron-card .label {
                font-size: 14px !important;
            }
        }

        .option-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px 24px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: #ffffff;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
            font-size: 16px;
            font-weight: 500;
        }

        .option-item:hover {
            background: #f8fafc;
            border-color: #cbd5e1;
            transform: translateY(-4px);
        }

        .option-item.selected {
            border-color: var(--accent);
            background: #eff6ff;
            box-shadow: 0 4px 12px rgba(197, 160, 33, 0.1);
        }

        .dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid #cbd5e1;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }

        .option-item.selected .dot {
            border-color: var(--accent);
            background: var(--accent);
        }

        .option-item.selected .dot::after {
            content: '';
            width: 8px;
            height: 8px;
            background: #fff;
            border-radius: 50%;
        }

        .nested-box {
            margin-top: 16px;
            padding: 24px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            animation: slideUp 0.3s ease-out;
            text-align: left;
            width: 100%;
        }

        .nested-box-title {
            font-size: 15px;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 12px;
            line-height: 1.45;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text);
        }


        .form-input {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 16px 20px;
            font-size: 16px;
            font-family: inherit;
            transition: all 0.3s;
            background: #ffffff;
            color: var(--text);
            outline: none;
            appearance: none;
        }

        select.form-input {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1.2em;
            padding-right: 2.5rem !important;
        }

        .form-input:disabled {
            background: #f1f5f9 !important;
            background-color: #f1f5f9 !important;
            color: #64748b !important;
            -webkit-text-fill-color: #64748b !important;
            border-color: #e2e8f0 !important;
            cursor: not-allowed !important;
            opacity: 1 !important;
            -webkit-opacity: 1 !important;
        }

        .form-input:focus {
            border-color: var(--accent);
            background: white;
            box-shadow: 0 0 0 4px rgba(197, 160, 33, 0.1);
        }

        .form-input.error {
            border-color: #ef4444;
            background: #fef2f2;
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
        }

        /* Resaltado de error para selección de opciones (radio/checkbox) */
        .options-grid.needs-selection .option-item:not(.selected),
        .patron-grid.needs-selection .patron-card:not(.selected) {
            border-color: #ef4444;
            background: #fef2f2;
            animation: shakeError 0.35s ease-out;
        }

        /* Resaltado de nested-box y adicional-section cuando falta selección dentro */
        .nested-box.needs-selection,
        .adicional-section.needs-selection {
            border-color: #ef4444 !important;
            background: #fef9f9;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
            animation: shakeError 0.35s ease-out;
        }

        /* Resaltado de file-item cuando falta foto */
        .file-item.needs-file:not(.has-file) {
            border: 2px dashed #ef4444 !important;
            background: #fef2f2 !important;
            animation: shakeError 0.35s ease-out;
        }

        /* Mensaje de error general de paso */
        .step-error-msg {
            color: #ef4444;
            font-size: 13px;
            font-weight: 600;
            margin-top: 10px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            animation: slideInLeft 0.25s ease-out;
        }

        @keyframes shakeError {
            0%   { transform: translateX(0); }
            20%  { transform: translateX(-5px); }
            40%  { transform: translateX(5px); }
            60%  { transform: translateX(-4px); }
            80%  { transform: translateX(4px); }
            100% { transform: translateX(0); }
        }

        .error-msg {
            color: #ef4444;
            font-size: 12px;
            font-weight: 600;
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
            animation: slideInLeft 0.3s ease-out;
        }

        @keyframes slideInLeft {
            from { opacity: 0; transform: translateX(-10px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .btn-inactive {
            background: #cbd5e1 !important;
            color: #64748b !important;
            box-shadow: none !important;
            transform: none !important;
        }

        .patron-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .patron-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .patron-card:hover {
            border-color: var(--accent);
            transform: translateY(-5px);
        }

        .patron-card.selected {
            border-color: var(--accent);
            background: #eff6ff;
            box-shadow: 0 10px 30px rgba(197, 160, 33, 0.1);
        }

        .patron-card img {
            width: 100%;
            height: auto;
            border-radius: 16px;
            padding: 0;
            margin-bottom: 16px;
        }

        .patron-card .label {
            font-size: 16px;
            font-weight: 700;
        }

        .file-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin: 0 auto;
        }

        .file-item {
            border: 2px dashed #cbd5e1;
            border-radius: 24px;
            background: #f8fafc;
            height: 220px; /* More compact for vertical photos */
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s;
            padding: 16px;
            text-align: center;
        }

        .file-item:hover {
            border-color: var(--accent);
            background: #eff6ff;
        }

        .file-item.has-file {
            border-style: solid;
            border-color: var(--accent);
            padding: 0;
        }

        .file-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 22px;
        }

        .file-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            padding: 30px 10px 15px;
            color: white;
            font-weight: 700;
        }

        .file-remove {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 36px;
            height: 36px;
            background: #ef4444;
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            transition: transform 0.2s;
            z-index: 10;
            font-size: 18px;
            text-decoration: none;
            line-height: 1;
        }

        .file-remove:hover {
            transform: scale(1.1);
            background: #dc2626;
        }

        .file-icon-wrapper {
            width: 56px;
            height: 56px;
            background: rgba(197, 160, 33, 0.75);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1.5px solid rgba(255, 255, 255, 0.45);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            box-shadow: 0 8px 24px rgba(197, 160, 33, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.6);
            color: #ffffff;
        }
        
        .file-icon-wrapper i {
            font-size: 24px;
            color: #ffffff;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
        }

        .file-label-text {
            font-size: 16px;
            font-weight: 800;
            color: var(--text);
            margin-bottom: 4px;
        }

        .file-item.has-file .file-label-text {
            color: white;
            margin-bottom: 0;
        }

        .file-hint {
            font-size: 13px;
            color: #64748b;
        }

        .nav-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 24px;
        }

        .success-full {
            text-align: center;
            padding: 60px 40px !important;
        }

        @media (max-width: 768px) {
            .success-full {
                padding: 40px 20px !important;
            }
        }

        .check-icon-v {
            width: 100px;
            height: 100px;
            background: #dcfce7;
            color: #166534;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            margin: 0 auto 32px;
        }

        /* === PANTALLA DE SUGERENCIA DE MOLÉCULAS === */
        .molecules-screen {
            animation: slideUp 0.6s ease-out;
        }

        .molecule-intro {
            background: linear-gradient(135deg, #0f172a 0%, #c5a021 100%);
            color: white;
            padding: 28px 24px;
            border-radius: 20px;
            margin-bottom: 28px;
            text-align: center;
            box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
        }

        .molecule-intro .email-brand-tag {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 3px;
            color: #c8a96e;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .molecule-intro h3 {
            font-size: clamp(26px, 4.2vw, 36px);
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 0;
            line-height: 1.2;
            letter-spacing: -0.5px;
        }

        .molecule-intro .email-divider-accent {
            width: 40px;
            height: 2px;
            background: #c8a96e;
            margin: 12px auto 0;
            border-radius: 2px;
        }

        #mol-list {
            display: grid;
            gap: 20px;
            grid-template-columns: 1fr;
            margin-bottom: 24px;
        }

        @media(min-width: 768px) {
            #mol-list.two-cols {
                grid-template-columns: 1fr 1fr;
            }
        }

        .molecule-card {
            border: 1.5px solid #e2e8f0;
            border-radius: 20px;
            margin-bottom: 0;
            overflow: hidden;
            transition: box-shadow 0.2s;
        }

        .molecule-card:hover {
            box-shadow: 0 8px 32px rgba(197, 160, 33, 0.10);
        }

        .molecule-header {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 20px 24px 12px;
            cursor: pointer;
            user-select: none;
        }

        .molecule-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f3460 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            flex-shrink: 0;
        }

        .molecule-name {
            font-size: 18px;
            font-weight: 800;
            color: #0f172a;
        }

        .molecule-via {
            font-size: 12px;
            font-weight: 600;
            color: #c5a021;
            background: #eff6ff;
            padding: 3px 10px;
            border-radius: 20px;
            margin-top: 3px;
            display: inline-block;
        }

        .molecule-chevron {
            margin-left: auto;
            color: #94a3b8;
            font-size: 20px;
            transition: transform 0.3s;
        }

        .molecule-chevron.open {
            transform: rotate(180deg);
        }

        .molecule-body {
            padding: 0 24px 24px;
            display: none;
        }

        .molecule-body.show {
            display: block;
            animation: slideUp 0.3s ease-out;
        }

        .molecule-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 12px;
        }

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

        .molecule-info-item {
            background: #f8fafc;
            border-radius: 12px;
            padding: 14px 16px;
        }

        .molecule-info-label {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            margin-bottom: 8px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 9px;
            border-radius: 6px;
            width: fit-content;
        }

        .molecule-info-label.blue {
            color: #1d4ed8;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
        }

        .molecule-info-label.green {
            color: #15803d;
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
        }

        .molecule-info-label.orange {
            color: #c2410c;
            background: #fff7ed;
            border: 1px solid #fed7aa;
        }

        .molecule-info-label.purple {
            color: #7e22ce;
            background: #faf5ff;
            border: 1px solid #e9d5ff;
        }

        .molecule-info-text {
            font-size: 13px;
            color: #374151;
            line-height: 1.55;
        }

        #mol-warnings {
            display: grid;
            gap: 16px;
            grid-template-columns: 1fr;
            margin-bottom: 24px;
            width: 100%;
        }

        @media(min-width: 768px) {
            #mol-warnings {
                grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            }
        }

        .warning-banner {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 16px 20px;
            margin-bottom: 0;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            height: 100%;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
        }

        .warning-banner i {
            color: #c5a021;
            font-size: 18px;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .warning-banner p {
            font-size: 13px;
            color: #44403c;
            line-height: 1.5;
            margin: 0;
            text-align: left;
        }

        .agree-cta {
            background: linear-gradient(135deg, #0f172a 0%, #c5a021 100%);
            color: white;
            padding: 14px 28px;
            border-radius: 100px;
            font-size: 16px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            width: 100%;
            margin-top: 24px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .agree-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 40px rgba(197, 160, 33, 0.25);
        }

        .agree-cta:disabled {
            background: #cbd5e1 !important;
            color: #94a3b8 !important;
            cursor: not-allowed !important;
            transform: none !important;
            box-shadow: none !important;
        }

        .disclaimer-note {
            font-size: 12px;
            color: #94a3b8;
            text-align: center;
            margin-top: 0;
            line-height: 1.6;
        }

        /* === PANTALLA DE PAGO === */
        .payment-screen {
            animation: slideUp 0.6s ease-out;
        }

        .payment-hero {
            text-align: center;
            padding: 12px 0 24px;
        }

        .payment-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #f0fdf4;
            color: #166534;
            padding: 6px 16px;
            border-radius: 100px;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .payment-amount {
            font-size: 56px;
            font-weight: 800;
            letter-spacing: -2px;
            color: #0f172a;
        }

        .payment-amount span {
            font-size: 24px;
            font-weight: 600;
            color: #64748b;
            vertical-align: super;
        }

        .payment-desc {
            font-size: 16px;
            color: #64748b;
            margin-top: 8px;
        }

        .payment-methods {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 24px 0;
        }

        @media(max-width:768px) {
            .payment-methods {
                grid-template-columns: 1fr;
            }
        }

        .payment-method-card {
            border: 2px solid #e2e8f0;
            border-radius: 16px;
            padding: 18px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
        }

        .payment-method-card.selected {
            border-color: #c5a021;
            background: #eff6ff;
        }

        .payment-method-card:hover {
            border-color: #94a3b8;
        }

        .payment-method-card i {
            font-size: 28px;
            display: block;
            margin-bottom: 8px;
            color: #c5a021;
        }

        .payment-method-card span {
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
        }

        .payment-security {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 12px;
            color: #94a3b8;
            margin-top: 16px;
        }

        .pay-btn {
            background: #0f172a;
            color: #ffffff;
            padding: 14px 28px;
            border-radius: 100px;
            font-size: 16px;
            font-weight: 700;
            border: 1px solid #1e293b;
            cursor: pointer;
            width: 100%;
            margin-top: 8px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
        }

        .pay-btn:hover:not(:disabled) {
            background: #c5a021;
            color: #ffffff;
            border-color: #c5a021;
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(197, 160, 33, 0.25);
        }

        .pay-btn:disabled {
            background: #cbd5e1;
            color: #94a3b8;
            border-color: #cbd5e1;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .payment-summary {
            background: #f8fafc;
            border-radius: 16px;
            padding: 20px;
            margin: 20px 0;
        }

        .payment-summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            font-size: 14px;
            color: #374151;
            border-bottom: 1px solid #e2e8f0;
        }

        .payment-summary-row:last-child {
            border-bottom: none;
            font-weight: 700;
            font-size: 16px;
            color: #0f172a;
        }

        /* === PLANES DE SUSCRIPCIÓN === */
        .plan-cards {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin: 20px 0;
        }

        .plan-card {
            border: 2px solid #e2e8f0;
            border-radius: 20px;
            padding: 20px 24px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
        }

        .plan-card:hover {
            border-color: #c5a021;
            background: #f8fafc;
        }

        .plan-card.selected {
            border-color: #c5a021;
            background: #fefce8;
            box-shadow: 0 4px 12px rgba(197, 160, 33, 0.12);
        }

        .plan-badge-rec {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f3460 100%);
            color: white;
            font-size: 11px;
            font-weight: 800;
            padding: 3px 12px;
            border-radius: 100px;
            white-space: nowrap;
            letter-spacing: 0.5px;
        }

        .plan-radio {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid #cbd5e1;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .plan-card.selected .plan-radio {
            border-color: #c5a021;
            background: #c5a021;
        }

        .plan-card.selected .plan-radio::after {
            content: '';
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
        }

        .plan-info {
            flex: 1;
        }

        .plan-name {
            font-size: 16px;
            font-weight: 800;
            color: #0f172a;
        }

        .plan-desc {
            font-size: 13px;
            color: #64748b;
            margin-top: 2px;
        }

        .plan-price-col {
            text-align: right;
        }

        .plan-price {
            font-size: 20px;
            font-weight: 800;
            color: #0f172a;
        }

        .plan-price-sub {
            font-size: 12px;
            color: #94a3b8;
            margin-top: 2px;
        }

        .plan-saving {
            background: #dcfce7;
            color: #166534;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 100px;
            margin-top: 4px;
            display: inline-block;
        }

        .plan-badge-aedo {
            background: #0f172a;
            color: #ffffff;
            border: 1px solid #1e293b;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 100px;
            margin-top: 4px;
            margin-left: 6px;
            display: inline-block;
        }

        .plan-badge-lab {
            background: #fefce8;
            color: #854d0e;
            border: 1px solid #fde047;
            font-size: 11px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 100px;
            margin-top: 4px;
            display: inline-block;
        }

        /* === ANIMACIÓN DE PROCESAMIENTO === */
        .processing-screen {
            text-align: center;
            padding: 40px 20px;
        }

        .processing-orbit {
            position: relative;
            width: 120px;
            height: 120px;
            margin: 0 auto 32px;
        }

        .processing-core {
            position: absolute;
            inset: 20px;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0f3460 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
            animation: pulse-core 2s ease-in-out infinite;
            box-shadow: 0 4px 20px rgba(15, 52, 96, 0.35);
        }

        @keyframes pulse-core {

            0%,
            100% {
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(15, 52, 96, 0.5);
            }

            50% {
                transform: scale(1.05);
                box-shadow: 0 0 0 16px rgba(15, 52, 96, 0);
            }
        }

        .processing-ring {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 3px solid transparent;
            border-top-color: #0f3460;
            border-right-color: #38bdf8;
            animation: spin 1.4s linear infinite;
        }

        .processing-ring-2 {
            position: absolute;
            inset: 8px;
            border-radius: 50%;
            border: 2.5px solid transparent;
            border-bottom-color: #c5a021;
            border-left-color: #2563eb;
            animation: spin 2s linear infinite reverse;
        }

        .processing-title {
            font-size: 24px;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 8px;
            letter-spacing: -0.5px;
        }

        .processing-subtitle {
            font-size: 15px;
            color: #64748b;
            margin-bottom: 32px;
        }

        .processing-steps {
            list-style: none;
            max-width: 360px;
            margin: 0 auto;
            text-align: left;
        }

        .proc-step {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #f1f5f9;
            font-size: 14px;
            color: #94a3b8;
            transition: all 0.4s;
        }

        .proc-step.active {
            color: #0f172a;
            font-weight: 600;
        }

        .proc-step.done {
            color: #10b981;
        }

        .proc-step-icon {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #f1f5f9;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
            transition: all 0.3s;
        }

        .proc-step.active .proc-step-icon {
            background: #eff6ff;
            color: #0f3460;
            animation: bounce-icon 0.6s ease infinite alternate;
        }

        .proc-step.done .proc-step-icon {
            background: #dcfce7;
            color: #10b981;
        }

        @keyframes bounce-icon {
            from {
                transform: scale(1);
            }

            to {
                transform: scale(1.15);
            }
        }

        .proc-step-bar {
            height: 3px;
            background: #f1f5f9;
            border-radius: 2px;
            margin-top: 24px;
            max-width: 360px;
            margin-left: auto;
            margin-right: auto;
            overflow: hidden;
        }

        .proc-step-fill {
            height: 100%;
            background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f3460 100%);
            border-radius: 2px;
            width: 0%;
            transition: width 0.5s ease;
        }

        .spinner {
            width: 24px;
            height: 24px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        #eval-nav-btn {
            display: inline-block;
            visibility: hidden;
            opacity: 0;
            border: none;
            transform: translateY(12px);
            transition: 
                opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        }

        #eval-nav-btn .eval-btn-mobile {
            display: none;
        }
        #eval-nav-btn .eval-btn-desktop {
            display: inline;
        }

        #eval-nav-btn.visible {
            visibility: visible;
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 768px) {
            nav {
                padding: 12px 20px;
                background: transparent !important;
                border-bottom: none !important;
            }

            nav::before {
                backdrop-filter: blur(20px) !important;
                -webkit-backdrop-filter: blur(20px) !important;
                background: rgba(255, 255, 255, 0.65) !important;
                border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
                box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
            }

            .hero {
                padding: 130px 20px 20px;
            }

            h1 {
                letter-spacing: -2px;
            }

            .cta-group {
                flex-direction: row;
                justify-content: center;
                gap: 8px;
                width: 100%;
            }

            .cta-group .btn {
                flex: 1;
                max-width: 170px;
                height: 48px;
                font-size: 13px;
                padding: 12px 8px !important;
                white-space: nowrap;
            }

            .form-card {
                padding: 24px;
            }

            .file-grid {
                grid-template-columns: 1fr;
            }

            #eval-nav-btn {
                display: inline-flex !important;
                visibility: hidden;
                opacity: 0;
                transform: translateY(8px);
                align-items: center !important;
                justify-content: center !important;
                background: #000 !important;
                color: #fff !important;
                border: none !important;
                border-radius: 20px !important;
                padding: 8px 14px !important;
                font-size: 12.5px !important;
                font-weight: 600 !important;
                cursor: pointer !important;
                font-family: inherit !important;
                white-space: nowrap !important;
            }

            #eval-nav-btn.visible {
                visibility: visible !important;
                opacity: 1 !important;
                transform: translateY(0) !important;
            }

            #eval-nav-btn .eval-btn-desktop {
                display: none !important;
            }
            #eval-nav-btn .eval-btn-mobile {
                display: inline !important;
            }

            #faq-nav-btn {
                position: fixed !important;
                bottom: 24px !important;
                right: 24px !important;
                z-index: 9999 !important;
                border-radius: 50% !important;
                width: 56px !important;
                height: 56px !important;
                padding: 0 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                background: rgba(197, 160, 33, 0.5) !important;
                backdrop-filter: blur(20px) !important;
                -webkit-backdrop-filter: blur(20px) !important;
                border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
                box-shadow: 0 8px 32px rgba(197, 160, 33, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
                gap: 0 !important;
            }

            #faq-nav-btn .faq-btn-text {
                display: none !important;
            }

            #medico-access-link {
                display: none !important;
            }


        }

        /* Modal Verification */
        .modal-verify {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .modal-content-verify {
            background: white;
            padding: 40px;
            border-radius: 24px;
            max-width: 450px;
            width: 90%;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .modal-btn {
            padding: 12px 24px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
            border: none;
        }

        .modal-btn-primary {
            background: var(--accent);
            color: white;
            margin-top: 16px;
            width: 100%;
        }

        .modal-btn-primary:hover {
            opacity: 0.9;
        }

        /* SweetAlert Premium Styling overrides to match NeoHair Solutions Branding */
        .premium-popup {
            border-radius: 24px !important;
            padding: 16px !important;
            font-family: 'Outfit', sans-serif !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
            border: 1.5px solid #e2e8f0 !important;
        }
        .premium-title {
            font-family: 'Outfit', sans-serif !important;
            font-size: 24px !important;
            font-weight: 800 !important;
            letter-spacing: -0.5px !important;
            color: #0f172a !important;
            margin: 0 0 12px 0 !important;
            padding: 0 !important;
        }
        .premium-popup .swal2-html-container {
            font-family: 'Outfit', sans-serif !important;
            font-size: 14.5px !important;
            line-height: 1.6 !important;
            color: #475569 !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        .premium-popup .swal2-input {
            border: 1.5px solid #cbd5e1 !important;
            border-radius: 12px !important;
            padding: 12px 16px !important;
            height: auto !important;
            font-family: 'Outfit', sans-serif !important;
            font-size: 16px !important;
            color: #0f172a !important;
            box-shadow: none !important;
            transition: all 0.25s ease !important;
            margin: 1.25rem auto 0 !important;
            width: 100% !important;
            max-width: 320px !important;
            box-sizing: border-box !important;
            text-align: center !important;
        }
        .premium-popup .swal2-input:focus {
            border-color: #c5a021 !important; /* NeoHair Gold */
            box-shadow: 0 0 0 3.5px rgba(197, 160, 33, 0.18) !important;
            outline: none !important;
        }
        .premium-btn {
            background-color: #0f172a !important; /* Dark Slate */
            color: #ffffff !important;
            border-radius: 100px !important;
            padding: 12px 32px !important;
            font-weight: 700 !important;
            font-size: 14px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            transition: all 0.3s !important;
            border: none !important;
            height: auto !important;
        }
        .premium-btn:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15) !important;
            background-color: #1e293b !important;
        }
        .premium-btn-secondary {
            border-radius: 100px !important;
            padding: 12px 32px !important;
            font-weight: 700 !important;
            font-size: 14px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            background: #f1f5f9 !important;
            color: #475569 !important;
            transition: all 0.3s !important;
            border: 1px solid #cbd5e1 !important;
            height: auto !important;
        }
        .premium-btn-secondary:hover {
            background: #e2e8f0 !important;
            color: #1e293b !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
        }
        .swal2-actions {
            margin-top: 1.75rem !important;
            gap: 12px !important;
        }

        @media (max-width: 768px) {
            .premium-popup .swal2-actions {
                flex-direction: row !important;
                justify-content: center !important;
                align-items: center !important;
                gap: 8px !important;
                width: 100% !important;
            }
            .premium-popup .swal2-actions button {
                flex: 1 !important;
                padding: 12px 4px !important;
                font-size: 13px !important;
                margin: 0 !important;
                min-width: 0 !important;
            }
        }


        .btn-edit-inline {
            background: #f1f5f9;
            color: #475569;
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            margin-top: 8px;
            cursor: pointer;
            display: none;
            border: 1px solid #e2e8f0;
        }

        /* ═══════════════════════════ RESULTADOS CLÍNICOS (ANTES Y DESPUÉS) ═══════════════════════════ */
        .resultados-clinicos {
            position: relative;
            z-index: 10;
            width: 100%;
        }
        .resultados-tabs {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            position: relative;
            z-index: 20;
        }
        .tab-btn {
            background: white;
            border: 1.5px solid var(--border);
            color: var(--text-muted);
            padding: 10px 18px;
            border-radius: 100px;
            font-size: 13.5px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 21;
        }
        .tab-btn:hover {
            border-color: #cbd5e1;
            color: var(--text);
            transform: translateY(-2px);
        }
        .tab-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        }
        .tab-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #cbd5e1;
            display: inline-block;
            transition: all 0.3s;
        }
        .tab-btn.active .tab-dot {
            background: var(--accent);
            box-shadow: 0 0 8px var(--accent);
        }
        .cases-slider-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            z-index: 20;
        }

        .case-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #ffffff;
            border: 1px solid var(--border);
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 100 !important;
            pointer-events: auto;
        }

        .case-arrow:hover {
            background: var(--accent);
            color: #ffffff;
            border-color: var(--accent);
            box-shadow: 0 6px 20px rgba(197, 160, 33, 0.3);
            transform: translateY(-50%) scale(1.1);
        }

        .case-arrow-left {
            left: -24px;
        }

        .case-arrow-right {
            right: -24px;
        }

        @media (max-width: 1250px) {
            .case-arrow-left {
                left: -12px;
            }
            .case-arrow-right {
                right: -12px;
            }
        }
        
        @media (max-width: 768px) {
            .case-arrow {
                width: 40px;
                height: 40px;
                font-size: 16px;
                z-index: 50 !important;
                background: rgba(255, 255, 255, 0.95) !important;
                border: 1px solid rgba(0, 0, 0, 0.1) !important;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
            }
            .case-arrow-left {
                left: 4px;
            }
            .case-arrow-right {
                right: 4px;
            }
        }

        .cases-container {
            width: 100%;
        }
        .case-item {
        }
        @keyframes fadeInResult {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .case-grid {
            display: grid;
            grid-template-columns: 1.05fr 0.95fr;
            grid-template-areas: 
                "photo info"
                "photo cta";
            gap: 24px;
            align-items: center;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 24px;
            box-shadow: var(--shadow-premium);
        }
        @media (max-width: 991px) {
            .case-grid {
                grid-template-columns: 1fr;
                grid-template-areas: 
                    "photo"
                    "info"
                    "cta";
                gap: 24px;
                padding: 20px;
            }
        }
        .slider-wrapper {
            grid-area: photo;
            position: relative;
            width: 100%;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0,0,0,0.06);
            border: 1.5px solid var(--border);
            background: #f1f5f9;
            animation: fadeInResult 0.5s ease-out;
        }
        .before-after-slider {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            overflow: hidden;
            user-select: none;
            -webkit-user-select: none;
            border-radius: 18px;
            touch-action: none;
        }
        .before-after-slider.hint-animating .before-wrapper,
        .before-after-slider.hint-animating .slider-handle {
            transition: width 0.8s cubic-bezier(0.45, 0, 0.55, 1), left 0.8s cubic-bezier(0.45, 0, 0.55, 1);
        }
        .image-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .image-after {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        .before-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            overflow: hidden;
            width: 50%;
            z-index: 2;
        }
        .image-before {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            max-width: none;
        }
        .slider-handle {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: #ffffff;
            left: 50%;
            cursor: ew-resize;
            z-index: 3;
            box-shadow: 0 0 12px rgba(0,0,0,0.4);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .handle-line {
            width: 100%;
            height: 100%;
            background: #ffffff;
        }
        .handle-circle {
            width: 40px;
            height: 40px;
            background: var(--accent);
            border: 3px solid #ffffff;
            border-radius: 50%;
            position: absolute;
            box-shadow: 0 4px 10px rgba(0,0,0,0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 14px;
            pointer-events: none;
            transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .before-after-slider:hover .handle-circle {
            transform: scale(1.1);
        }
        .label-badge {
            position: absolute;
            bottom: 12px;
            background: rgba(15, 23, 42, 0.75);
            color: #ffffff;
            padding: 4px 10px;
            border-radius: 100px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 4;
            pointer-events: none;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
        .label-before {
            left: 12px;
        }
        .label-after {
            right: 12px;
        }
        .case-info {
            grid-area: info;
            text-align: left;
            display: flex;
            flex-direction: column;
            height: 100%;
            justify-content: center;
            animation: none !important;
            transition: none !important;
            transform: none !important;
        }
        .verified-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(197, 160, 33, 0.05);
            border: 1.5px solid var(--accent);
            color: var(--accent);
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 11.5px;
            font-weight: 700;
            margin-bottom: 14px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            align-self: flex-start;
            box-shadow: 0 2px 8px rgba(197, 160, 33, 0.03);
        }
        .verified-badge i {
            font-size: 14px;
        }
        .consent-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(16, 185, 129, 0.06);
            border: 1.5px solid #10b981;
            color: #059669;
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 11px;
            font-weight: 700;
            margin-bottom: 14px;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            align-self: flex-start;
        }
        .consent-badge i {
            font-size: 13px;
        }
        .case-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 12px;
            margin-bottom: 12px;
        }
        .case-badges .verified-badge,
        .case-badges .consent-badge {
            margin-bottom: 0;
        }
        .case-info h3 {
            font-size: clamp(20px, 3.5vw, 24px);
            font-weight: 800;
            letter-spacing: -1px;
            margin-bottom: 14px;
            color: var(--text);
            line-height: 1.2;
        }
        .case-stats {
            list-style: none;
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .case-stats li {
            font-size: 14px;
            color: var(--text);
            padding-bottom: 6px;
            border-bottom: 1.5px solid #f1f5f9;
            display: flex;
            justify-content: space-between;
        }
        .case-stats li strong {
            color: var(--text-muted);
            font-weight: 600;
        }
        .clinical-note {
            background: #f8fafc;
            border-left: 3.5px solid var(--accent);
            padding: 12px 16px;
            border-radius: 0 16px 16px 0;
            margin-bottom: 16px;
            border-top: 1px solid #e2e8f0;
            border-right: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
            animation: none !important;
            transition: none !important;
            transform: none !important;
        }
        .clinical-note h4 {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--accent);
            margin-bottom: 4px;
            animation: none !important;
            transition: none !important;
            transform: none !important;
        }
        .clinical-note p {
            font-size: 13px;
            color: #334155;
            line-height: 1.5;
            font-style: italic;
            margin: 0;
            animation: none !important;
            transition: none !important;
            transform: none !important;
        }
        .cta-case {
            grid-area: cta;
            font-size: 14px;
            font-weight: 700;
            padding: 12px 24px !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .cta-case:hover {
            transform: translateY(-3px) scale(1.03) !important;
        }

        /* === DOCTOR CTA SECTION === */
        .doctor-cta-section {
            padding: 80px 40px;
            background: linear-gradient(135deg, #090d16 0%, #000000 100%);
            color: #ffffff;
            position: relative;
            overflow: hidden;
            border-top: 1px solid rgba(197, 160, 33, 0.1);
        }
        
        .doctor-cta-section::before {
            content: '';
            position: absolute;
            top: -200px;
            right: -200px;
            width: 450px;
            height: 450px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(197, 160, 33, 0.08) 0%, transparent 70%);
            pointer-events: none;
        }
        
        .doctor-cta-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 40px;
            align-items: center;
        }
        
        @media (min-width: 768px) {
            .doctor-cta-container {
                grid-template-columns: 1fr 1.2fr;
                gap: 60px;
            }
        }
        
        .doctor-cta-left {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }
        
        .doctor-photo-wrapper {
            position: relative;
            width: 100%;
            max-width: 340px;
            aspect-ratio: 4 / 5;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(197, 160, 33, 0.15);
            background: #0f172a;
        }
        
        .doctor-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .doctor-photo-wrapper:hover .doctor-img {
            transform: scale(1.03);
        }
        
        .doctor-placeholder-avatar {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #111827 0%, #030712 100%);
            padding: 24px;
            text-align: center;
            border: 2px dashed rgba(197, 160, 33, 0.25);
            border-radius: 24px;
            box-sizing: border-box;
        }
        
        .avatar-icon {
            font-size: 50px;
            color: var(--accent);
            margin-bottom: 16px;
            opacity: 0.9;
            text-shadow: 0 0 15px rgba(197, 160, 33, 0.3);
        }
        
        .avatar-label {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 4px;
            color: #ffffff;
        }
        
        .avatar-sub {
            font-size: 13px;
            color: #94a3b8;
            font-weight: 500;
        }
        
        .doctor-cta-right {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
        }
        
        .doctor-cta-badge {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.5px;
            color: var(--accent);
            text-transform: uppercase;
            margin-bottom: 12px;
        }
        
        .doctor-cta-title {
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 800;
            letter-spacing: -1.5px;
            line-height: 1.15;
            margin-bottom: 16px;
            color: #ffffff;
        }
        
        .doctor-cta-text {
            font-size: 16px;
            line-height: 1.6;
            color: #94a3b8;
            margin-bottom: 28px;
            max-width: 540px;
        }
        
        .btn-gold-glow {
            background: #ffffff !important;
            color: #000000 !important;
            font-weight: 700;
            border: none;
            box-shadow: 0 8px 20px -4px rgba(255, 255, 255, 0.2);
        }
        
        .btn-gold-glow:hover {
            background: var(--accent) !important;
            color: #ffffff !important;
            transform: translateY(-3px) scale(1.03) !important;
            box-shadow: 0 12px 24px rgba(197, 160, 33, 0.4) !important;
        }

        /* === HELP BANNER SECTION === */
        .help-banner-section {
            padding: 40px 20px;
            background: #f8fafc;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .help-banner-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            text-align: center;
        }
        
        @media (min-width: 768px) {
            .help-banner-container {
                flex-direction: row;
                text-align: left;
                padding: 0 20px;
            }
        }
        
        .help-banner-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }
        
        @media (min-width: 768px) {
            .help-banner-content {
                flex-direction: row;
                align-items: center;
            }
        }
        
        .help-banner-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(197, 160, 33, 0.1);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(197, 160, 33, 0.05);
        }
        
        .help-banner-text h3 {
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 4px;
            color: var(--text);
        }
        
        .help-banner-text p {
            font-size: 14.5px;
            color: var(--text-muted);
            margin: 0;
            max-width: 600px;
            line-height: 1.5;
        }
        
        .btn-help-chat {
            background: #000000;
            color: #ffffff;
            font-weight: 700;
            padding: 12px 24px;
            border-radius: 100px;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 14.5px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            font-family: inherit;
        }
        
        .btn-help-chat:hover {
            background: var(--accent);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(197, 160, 33, 0.25);
        }

        @media (max-width: 768px) {
            /* Resultados clínicos más pequeños en móvil */
            .resultados-tabs {
                margin-bottom: 16px;
                gap: 6px;
            }

            .tab-btn {
                padding: 8px 14px;
                font-size: 12px;
            }

            .case-grid {
                grid-template-columns: 1.15fr 1fr !important;
                grid-template-areas: 
                    "photo stats"
                    "photo info"
                    "badges info" !important;
                padding: 10px;
                gap: 10px;
                align-items: start !important;
            }

            .slider-wrapper {
                grid-area: photo;
                max-width: 100%;
                width: 100%;
                margin: 0;
            }

            .case-info {
                display: contents;
            }

            .case-stats {
                grid-area: stats;
                margin-bottom: 0;
                gap: 2px;
                width: 100%;
            }

            .case-stats li {
                font-size: 13.5px;
                padding-bottom: 2px;
                border-bottom: none;
                display: flex !important;
                flex-wrap: wrap !important;
                justify-content: flex-start !important;
                gap: 4px !important;
                font-weight: 700;
                color: var(--text-muted);
            }

            .stat-label {
                display: none !important;
            }

            .clinical-note {
                grid-area: info;
                padding: 8px 10px;
                margin-bottom: 0;
                border-radius: 0 12px 12px 0;
            }

            .clinical-note h4 {
                font-size: 11px;
                margin-bottom: 2px;
            }

            .clinical-note p {
                font-size: 11px;
                line-height: 1.4;
            }

            .case-badges {
                grid-area: badges;
                display: flex !important;
                flex-direction: column !important;
                justify-content: flex-start !important;
                align-items: center !important;
                align-self: start !important;
                justify-self: center !important;
                gap: 4px !important;
                width: 100% !important;
                margin-top: 4px !important;
                margin-bottom: 0 !important;
            }

            .label-badge {
                font-size: 8.5px !important;
                padding: 3px 7px !important;
                bottom: 8px !important;
            }
            .label-before {
                left: 8px !important;
            }
            .label-after {
                right: 8px !important;
            }

            .verified-badge, .consent-badge {
                padding: 4px 8px !important;
                font-size: var(--fs-2xs) !important;
                gap: 4px !important;
                border-width: 1px !important;
                justify-content: center !important;
                text-align: center !important;
                white-space: normal !important;
                width: auto !important;
                max-width: 100% !important;
                display: inline-flex !important;
                align-self: center !important;
            }

            .verified-badge i, .consent-badge i {
                font-size: var(--fs-2xs) !important;
            }

            .cta-case {
                display: none !important;
            }

            .features {
                padding: 40px 20px 60px !important;
            }
            .features-header {
                margin-bottom: 32px !important;
            }
            .step-row, .step-row.last {
                grid-template-columns: 30px 16px 1fr !important;
                gap: 0 8px !important;
            }
            .step-number {
                font-size: 20px !important;
                text-align: left !important;
                padding-top: 18px !important;
            }
            .step-connector {
                padding-top: 18px !important;
            }
            .step-connector::after {
                top: 24px !important;
                width: 10px !important;
                height: 10px !important;
            }
            .step-connector::before {
                margin-top: 20px !important;
            }
            .step-content {
                padding: 16px 18px !important;
                margin-bottom: 16px !important;
                border-radius: 16px !important;
            }
            .step-content h3 {
                font-size: 16px !important;
                margin-bottom: 6px !important;
            }
            .step-content p {
                font-size: 13px !important;
                line-height: 1.55 !important;
            }
        }

        /* === Google Autocomplete Dropdown Styling === */
        .pac-container {
            background-color: #ffffff !important;
            border-radius: 16px !important;
            border: 1px solid var(--border) !important;
            box-shadow: var(--shadow-premium) !important;
            font-family: 'Outfit', sans-serif !important;
            margin-top: 8px !important;
            z-index: 10000 !important;
            padding: 8px 0 !important;
        }

        .pac-item {
            padding: 12px 16px !important;
            font-size: 14px !important;
            color: var(--text) !important;
            border-top: 1px solid #f1f5f9 !important;
            cursor: pointer !important;
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            transition: background-color 0.2s !important;
        }

        .pac-item:first-child {
            border-top: none !important;
        }

        .pac-item:hover {
            background-color: #f8fafc !important;
        }

        .pac-item-query {
            font-size: 14px !important;
            color: var(--text) !important;
            font-weight: 700 !important;
        }

        .pac-matched {
            color: var(--accent) !important;
        }

        /* Glassmorphism Premium Buttons */
        .btn-glass {
            width: 100%;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 14px;
            font-weight: 700;
            margin: 0;
            border: 1px solid rgba(255, 255, 255, 0.4);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-sizing: border-box;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .btn-glass-primary {
            background: linear-gradient(135deg, rgba(197, 160, 33, 0.85), rgba(220, 185, 55, 0.65));
            color: white;
            box-shadow: 0 4px 15px rgba(197, 160, 33, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
        }

        .btn-glass-primary:hover {
            background: linear-gradient(135deg, rgba(197, 160, 33, 0.98), rgba(220, 185, 55, 0.8));
            transform: scale(1.04) translateY(-1px);
            box-shadow: 0 8px 20px rgba(197, 160, 33, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
        }

        .btn-glass-secondary {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(248, 250, 252, 0.5));
            color: #1e293b;
            border-color: rgba(203, 213, 225, 0.5);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.8);
        }

        .btn-glass-secondary:hover {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.75));
            border-color: rgba(197, 160, 33, 0.5);
            color: #c5a021;
            transform: scale(1.04) translateY(-1px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
        }

/* ==========================================================================
   Camera Modal - Premium Glassmorphic / HUD Redesign
   ========================================================================== */
.camera-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.camera-card {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(145deg, rgba(26, 32, 53, 0.96), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.75), 0 0 30px rgba(197, 160, 33, 0.15);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cameraModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cameraModalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.camera-title-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.3px;
}

.camera-title-badge i {
    color: #c5a021;
    font-size: 16px;
}

.camera-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.camera-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.camera-btn-icon:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.06);
    color: #ffffff;
}

.camera-viewport-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #090d16;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-instruction-pill {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 160, 33, 0.4);
    color: #f8fafc;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

/* Corner HUD Bracket Highlights */
.camera-hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #c5a021;
    border-style: solid;
    pointer-events: none;
    z-index: 5;
    opacity: 0.85;
}
.camera-hud-top-left { top: 16px; left: 16px; border-width: 3px 0 0 3px; border-top-left-radius: 8px; }
.camera-hud-top-right { top: 16px; right: 16px; border-width: 3px 3px 0 0; border-top-right-radius: 8px; }
.camera-hud-bottom-left { bottom: 16px; left: 16px; border-width: 0 0 3px 3px; border-bottom-left-radius: 8px; }
.camera-hud-bottom-right { bottom: 16px; right: 16px; border-width: 0 3px 3px 0; border-bottom-right-radius: 8px; }

.camera-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.shutter-btn-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.shutter-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 60%, #e2e8f0 100%);
    border: 4px solid #c5a021;
    box-shadow: 0 0 0 4px rgba(197, 160, 33, 0.25), 0 8px 20px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    outline: none;
}

.shutter-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 6px rgba(197, 160, 33, 0.4), 0 10px 25px rgba(0,0,0,0.6);
}

.shutter-btn:active {
    transform: scale(0.92);
}

.shutter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.12);
}

.camera-gallery-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.camera-gallery-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.camera-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.15s ease-out;
}
.camera-flash.active {
    opacity: 0.9;
    transition: none;
}

@media (max-width: 600px) {
    .camera-modal-backdrop {
        padding: 0;
    }
    .camera-card {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        border: none;
    }
    .camera-viewport-wrapper {
        flex: 1;
        aspect-ratio: auto;
    }
}

/* ==========================================================================
   Payment Success & Welcome Screen Styles & Animations
   ========================================================================== */
#payment-success-section {
    animation: paymentSectionFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes paymentSectionFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-success-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

.payment-header-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 32px 24px 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.payment-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.payment-brand-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #c8a96e;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    animation: paymentPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.payment-title {
    font-size: clamp(24px, 4.2vw, 36px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -1px;
    font-family: 'Outfit', sans-serif;
    animation: paymentPopIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.payment-gold-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #c8a96e, #fef08a, #c8a96e);
    margin: 18px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(200, 169, 110, 0.6);
    animation: paymentScaleWidth 0.8s ease-out 0.2s both;
}

.payment-body-container {
    padding: 12px 8px 24px;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 600px) {
    .payment-success-card {
        padding: 16px;
    }
    .payment-body-container {
        padding: 8px 4px 16px;
    }
    .payment-header-banner {
        padding: 26px 16px 22px;
        border-radius: 16px;
        margin-bottom: 18px;
    }
}

.neohair-success-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(200, 169, 110, 0.35);
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
    animation: paymentSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.neohair-success-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(200, 169, 110, 0.08) 50%, transparent 70%);
    pointer-events: none;
}

.neohair-success-badge-wrapper {
    position: relative;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neohair-success-badge-glow {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.35);
    filter: blur(12px);
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.neohair-success-badge-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.neohair-success-header {
    position: relative;
    z-index: 1;
}

.neohair-success-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.neohair-success-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.18); }
}

.payment-alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.06);
    animation: paymentSlideUp 0.6s ease-out 0.2s both;
}

.payment-check-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    animation: checkBadgePulse 2.2s infinite ease-in-out;
}

.payment-alert-text {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #065f46;
    line-height: 1.35;
}

.payment-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: paymentSlideUp 0.6s ease-out 0.3s both;
}

.payment-steps-list {
    max-width: 100%;
    margin-bottom: 28px;
}

.payment-steps-list .step-row {
    animation: paymentStepSlideIn 0.5s ease-out both;
}

/* Completed step timeline styles */
.step-row.completed .step-number {
    color: #10b981;
}

.step-row.completed .step-connector::after {
    background: #10b981;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #10b981;
}

.step-row.completed .step-connector::before {
    background: #10b981;
}

.step-row.completed .step-content {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.75;
    padding: 14px 22px;
}

.step-row.completed .step-content h3 {
    text-decoration: line-through;
    text-decoration-color: #10b981;
    text-decoration-thickness: 2px;
    color: #64748b;
    margin-bottom: 0;
}

.step-row.completed .step-content p {
    text-decoration: line-through;
    text-decoration-color: #94a3b8;
    color: #64748b;
}

.step-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-decoration: none !important;
    vertical-align: middle;
    letter-spacing: 0;
}

.payment-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.payment-step-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    animation: paymentStepSlideIn 0.5s ease-out both;
}

.payment-step-card:hover {
    transform: translateX(5px);
    border-color: rgba(200, 169, 110, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    background: #fdfbf7;
}

.payment-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #c8a96e;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(200, 169, 110, 0.4);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.payment-step-card:nth-child(1) .payment-step-num {
    background: linear-gradient(135deg, #c5a021 0%, #a38114 100%);
    color: #ffffff;
    border-color: #fef08a;
    box-shadow: 0 2px 10px rgba(197, 160, 33, 0.35);
}

.payment-step-desc {
    font-size: 14px;
    color: #334155;
    line-height: 1.55;
}

.payment-info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    animation: paymentSlideUp 0.6s ease-out 0.5s both;
}

.payment-info-header {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.payment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.payment-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.payment-info-item.highlight-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.payment-info-icon {
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.payment-info-icon.highlight-icon {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
}

.payment-info-content {
    display: flex;
    flex-direction: column;
}

.payment-info-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-info-val {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.payment-info-val.highlight-val {
    color: #047857;
    font-weight: 800;
}

.payment-info-val.highlight {
    color: #0284c7;
    font-weight: 800;
}


.payment-cta-container {
    padding: 0 36px 36px;
    text-align: center;
}

.payment-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 44px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.32);
}

/* Animations */
@keyframes paymentPopIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes paymentScaleWidth {
    from { width: 0px; }
    to { width: 48px; }
}

@keyframes paymentSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes paymentStepSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes checkBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6); }
}

.payment-confetti-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 3px;
    z-index: 100;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(380px) rotate(720deg); opacity: 0; }
}

/* =============================================================================
   Suscripción Activa — Premium Modal Styling
   ============================================================================= */
.swal2-popup.premium-sub-active-modal {
    border-radius: 28px !important;
    padding: 28px 32px 32px !important;
    background: #ffffff !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
    border: 1px solid #e2e8f0 !important;
    max-width: 480px !important;
}

.swal2-actions:has(.btn-sub-neoia) {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 4px !important;
}

.btn-sub-neoia {
    width: 100% !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    border-radius: 100px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.btn-sub-neoia:hover {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35) !important;
}

.btn-sub-home {
    width: 100% !important;
    background: #f8fafc !important;
    color: #475569 !important;
    border-radius: 100px !important;
    padding: 13px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.btn-sub-home:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Prevenir auto-zoom automático de Safari en iOS al enfocar inputs */
@media screen and (max-width: 768px) {
    input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="password"], textarea, select, .form-input {
        font-size: 16px !important;
    }
}