/* ==========================================
   DISINNOVA - Estilos Principales
   ========================================== */

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

:root {
    --primary: #00b8d4;
    --primary-dark: #0098b8;
    --brand-wine: #681722;
    --brand-wine-dark: #4f1018;
    --brand-wine-light: #a7333d;
    --brand-blush: #f8eaec;
    --bg-dark: #ffffff;
    --bg-secondary: #f0f9fb;
    --bg-tertiary: #e6f3f7;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-tertiary: #8a9aaa;
    --border-color: #d0e8f0;
    --error: #ff4757;
    --success: #2ed573;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   Contenedor Principal
   ========================================== */

#app {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Página Hero (Inicio)
   ========================================== */

.hero {
    background: linear-gradient(135deg, #4f1018 0%, #7b1f2a 52%, #a7333d 100%);
    padding: 60px 30px;
    text-align: center;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.6s ease-out;
    width: 100%;
    max-width: 920px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0;
    color: #ffffff;
}

.hero-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #f4d5d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 auto 40px auto;
    max-width: 600px;
}

.hero .btn-primary {
    background: #ffffff;
    color: #681722;
    box-shadow: 0 18px 36px rgba(33, 4, 9, 0.25);
}

.hero .btn-primary:hover:not(:disabled) {
    box-shadow: 0 20px 44px rgba(33, 4, 9, 0.32);
}

/* ==========================================
   Botones
   ========================================== */

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    flex: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 184, 212, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-tertiary);
    border: 2px solid var(--border-color);
    flex: 0.35;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:disabled {
    display: none;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: block;
    width: 100%;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

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

.btn-cta-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* ==========================================
   Formulario Diagnóstico
   ========================================== */

.diagnostic {
    display: none;
    background: linear-gradient(135deg, var(--brand-wine-dark) 0%, var(--brand-wine) 52%, var(--brand-wine-light) 100%);
    color: #ffffff;
    padding: 60px 30px;
    min-height: 100vh;
    min-height: 100svh;
}

.diagnostic.active {
    display: block;
}

.diagnostic.results-mode {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, var(--brand-blush) 100%);
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 60px;
}

.question-header {
    margin-bottom: 40px;
}

.question-emoji {
    font-size: 40px;
    margin-bottom: 20px;
    display: block;
}

.question-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: #ffffff;
}

.question-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.option:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.72);
    color: #ffffff;
}

.option.selected {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--brand-wine);
}

/* ==========================================
   Formulario
   ========================================== */

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    font-size: 15px;
    color: #ffffff;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.form-error {
    color: #ffd3da;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.form-error.show {
    display: block;
}

/* ==========================================
   Grupo de Botones
   ========================================== */

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 60px;
}

.diagnostic .btn-primary {
    background: #ffffff;
    color: var(--brand-wine);
    box-shadow: 0 18px 36px rgba(33, 4, 9, 0.22);
}

.diagnostic .btn-primary:hover:not(:disabled) {
    box-shadow: 0 20px 44px rgba(33, 4, 9, 0.3);
}

.diagnostic .btn-secondary {
    color: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.34);
}

.diagnostic .btn-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* ==========================================
   Pantalla de Resultados
   ========================================== */

.results-header {
    margin-bottom: 50px;
    text-align: center;
}

.results-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.results-header p {
    font-size: 15px;
    color: var(--text-tertiary);
    margin: 0;
}

.results-content {
    background: #f0f9fb;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.results-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 25px 0;
}

.results-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 18px;
    white-space: pre-wrap;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================
   Animaciones
   ========================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .question-title {
        font-size: 24px;
    }

    .results-header h2 {
        font-size: 28px;
    }

    .results-content {
        padding: 24px;
    }

    .button-group {
        gap: 10px;
    }
}

/* ==========================================
   Utilidades
   ========================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================
   Estilos del Diagnóstico (Markdown HTML)
   ========================================== */

.diag-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 25px 0;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.diag-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin: 35px 0 15px 0;
    color: var(--text-primary);
}

.diag-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.diag-text strong, .diag-list-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.diag-list {
    margin: 0 0 25px 0;
    padding-left: 0;
    list-style: none;
}

.diag-list-item {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.diag-list-item::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 8px;
    top: -2px;
}

/* ==========================================
   Diagnóstico DISINNOVA (Tablas, Scores)
   ========================================== */

.diag-title:first-of-type {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
}

.diag-title:first-of-type + p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

table thead {
    background: var(--bg-tertiary);
}

table th {
    padding: 12px;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary);
}

table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

table tr:hover {
    background: var(--bg-tertiary);
}

.diag-subtitle {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: var(--primary);
}

.diag-subtitle:first-of-type {
    margin-top: 0;
}

/* Score badge */
.score-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    margin: 10px 0;
}

/* Critical/Mejorable badges */
strong {
    color: var(--text-primary);
}

/* ==========================================
   IntlTelInput Overrides
   ========================================== */

.iti {
    width: 100%;
    display: block;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: var(--bg-tertiary);
    border-radius: 8px 0 0 8px;
    border-right: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.iti--separate-dial-code .iti__selected-flag:hover {
    background-color: var(--border-color);
}

.iti__selected-dial-code {
    color: var(--text-primary);
    font-weight: bold;
}

.iti__country-list {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.iti__country {
    padding: 10px 15px;
}

.iti__country.iti__highlight, .iti__country:hover {
    background-color: var(--bg-tertiary);
}

.iti__divider {
    border-bottom: 1px solid var(--border-color);
}

.iti__search-input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 4px;
    padding: 8px;
    margin: 8px;
    width: calc(100% - 16px);
}

/* ==========================================
   Sección "¿Qué Sigue?"
   ========================================== */

.what-next-section {
    margin-top: 80px;
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    border-top: 1px solid var(--border-color);
}

.what-next-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.what-next-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.step {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9fb 100%);
    padding: 30px 24px;
    border-radius: 16px;
    border: 1px solid #d0e8f0;
    position: relative;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 280px;
    max-width: 340px;

    /* Sombras 3D Premium Suave */
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 30px 60px rgba(0, 0, 0, 0.1),
        0 0 50px rgba(0, 184, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(10px);
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 212, 0.2), transparent);
}

.step:hover {
    border-color: #00b8d4;
    background: linear-gradient(135deg, #f0f9fb 0%, #e6f3f7 100%);
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.15),
        0 32px 64px rgba(0, 0, 0, 0.18),
        0 50px 100px rgba(0, 0, 0, 0.15),
        0 0 80px rgba(0, 184, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-12px);
}

.step-number {
    font-size: 36px;
    font-weight: 800;
    color: #00b8d4;
    margin-bottom: 16px;
    line-height: 1;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.step p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   Sección de Video
   ========================================== */

.video-section {
    margin-bottom: 80px;
    text-align: center;
}

.video-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 30px 0;
}

.video-container {
    width: 100%;
    background: #f0f9fb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 0 50px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.video-container:hover {
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.3),
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 50px 100px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* ==========================================
   Barra CTA Inferior
   ========================================== */

.bottom-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #00b8d4 0%, #0098b8 100%);
    padding: 20px;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0, 184, 212, 0.2);
}

.bottom-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bottom-cta-text {
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.bottom-cta-text strong {
    color: white;
    font-weight: 700;
}

.btn-bottom-cta {
    background: white;
    color: #00b8d4;
    padding: 12px 28px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-bottom-cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

/* ==========================================
   Barra de Navegación Sticky
   ========================================== */

.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d0e8f0;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    z-index: 1000;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #1a1a1a;
    border: 2px solid #d0e8f0;
}

.nav-btn:hover {
    background: #00b8d4;
    color: white;
    border-color: #00b8d4;
}

.nav-btn-cta {
    background: var(--success);
    color: white;
    border: none;
}

.nav-btn-cta:hover {
    background: var(--success);
    color: white;
    opacity: 0.9;
}

/* ==========================================
   Sección de Marcas
   ========================================== */

.brands-section {
    margin-bottom: 80px;
    text-align: center;
}

.brands-section h2 {
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.brands-grid {
    display: flex;
    gap: 24px;
    align-items: center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 18px;
    scrollbar-width: thin;
}

.brand-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 260px;
    width: 260px;
    min-height: 120px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.08);
    scroll-snap-align: center;
}

.brand-logo-card:hover {
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.08),
        0 18px 38px rgba(0, 0, 0, 0.12),
        0 0 50px rgba(0, 184, 212, 0.14);
    transform: translateY(-6px);
}

.brand-logo-card img {
    display: block;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

/* ==========================================
   Resultados Ecommerce
   ========================================== */

.ecommerce-results-section {
    margin-bottom: 80px;
}

.results-gallery {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 22px;
    scrollbar-width: thin;
}

.results-gallery img {
    flex: 0 0 min(420px, 82vw);
    width: min(420px, 82vw);
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 14px 32px rgba(0, 0, 0, 0.12);
    scroll-snap-align: center;
}

/* ==========================================
   Sección de Testimonios
   ========================================== */

.testimonials-section {
    margin-bottom: 80px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 30px;
}

.testimonials-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.testimonials-header p {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.testimonials-description {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-description p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 10px 0;
}

.testimonials-description strong {
    color: var(--text-primary);
}

.testimonials-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.testimonial {
    background: #f0f9fb;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.testimonial:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.3),
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 50px 100px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-tertiary);
}

.testimonials-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: center;
}

.video-card {
    background: #f0f9fb;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.video-card:hover {
    box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.3),
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 50px 100px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
}

/* ==========================================
   Sección de CTA Final
   ========================================== */

.final-cta-section {
    background: #f0f9fb;
    padding: 60px 40px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    text-align: center;
    margin-bottom: 40px;
}

.final-cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.final-cta-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* ==========================================
   Responsive - Tablet (768px - 1024px)
   ========================================== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .question-title {
        font-size: 28px;
    }

    .results-header h2 {
        font-size: 36px;
    }

    .results-content {
        padding: 30px;
    }

    .steps-container {
        gap: 20px;
        justify-content: center;
    }

    .step {
        flex: 1;
        min-width: 240px;
        max-width: 300px;
        padding: 24px 20px;
    }

    .what-next-header h2 {
        font-size: 36px;
    }

    .step-number {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .step h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .step p {
        font-size: 12px;
    }

    .sticky-nav {
        padding: 12px 16px;
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .bottom-cta-bar {
        padding: 14px;
    }

    .bottom-cta-content {
        flex-direction: column;
        gap: 14px;
    }

    .bottom-cta-text {
        font-size: 14px;
    }

    .btn-bottom-cta {
        width: 100%;
        padding: 14px 20px;
    }

    .brands-section h2 {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .brands-grid {
        gap: 20px;
    }

    .brand-logo-card {
        flex-basis: 220px;
        width: 220px;
        min-height: 104px;
        padding: 20px;
    }

    .brand-logo-card img {
        max-height: 64px;
    }

    .results-gallery {
        gap: 20px;
    }

    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonial {
        padding: 24px;
    }

    .testimonials-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .video-card {
        min-height: 350px;
        padding: 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    .btn-cta {
        padding: 14px 28px;
        font-size: 13px;
    }

    .video-section h3 {
        font-size: 18px;
    }
}

/* ==========================================
   Responsive - Mobile (-768px)
   ========================================== */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        max-width: 100%;
        padding: 0 16px;
    }

    /* Hero */
    .hero {
        padding: 40px 20px;
        min-height: 100vh;
        min-height: 100svh;
        justify-content: center;
        width: 100%;
        overflow: hidden;
    }

    .hero-content {
        max-width: calc(100vw - 40px);
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.18;
        max-width: 100%;
        overflow-wrap: normal;
        text-wrap: balance;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
        max-width: 340px;
    }

    /* Diagnostic */
    .diagnostic {
        padding: 32px 0;
    }

    .progress-text {
        margin-bottom: 40px;
        font-size: 12px;
    }

    .question-header {
        margin-bottom: 30px;
    }

    .question-emoji {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .question-title {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .question-subtitle {
        font-size: 14px;
    }

    .option {
        padding: 16px 20px;
        font-size: 14px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .button-group {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 40px;
    }

    .btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        font-size: 12px;
        white-space: normal;
    }

    .btn-secondary {
        flex: 1;
    }

    /* Results */
    .results-header {
        margin-bottom: 30px;
    }

    .results-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .results-header h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .results-header p {
        font-size: 14px;
    }

    .results-content {
        padding: 20px;
        margin-bottom: 30px;
        overflow-x: auto;
    }

    .results-content h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .results-content p {
        font-size: 14px;
        margin-bottom: 14px;
        line-height: 1.6;
    }

    .cta-group {
        gap: 10px;
    }

    .btn-cta {
        padding: 12px 20px;
        font-size: 12px;
    }

    /* ¿Qué sigue? */
    .what-next-section {
        margin-top: 60px;
        padding-top: 60px;
        padding-left: 0;
        padding-right: 0;
    }

    .what-next-header {
        margin-bottom: 40px;
    }

    .what-next-header h2 {
        font-size: 24px;
    }

    .steps-container {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 60px;
        max-width: 100%;
    }

    .step {
        flex: 1;
        min-width: unset;
        max-width: unset;
        padding: 20px;
        border-radius: 12px;
    }

    .step-number {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .step h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .step p {
        font-size: 12px;
    }

    /* Video */
    .video-section {
        margin-bottom: 60px;
    }

    .video-section h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    /* Marcas */
    .brands-section {
        margin-bottom: 60px;
    }

    .brands-section h2 {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .brands-grid {
        gap: 16px;
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-logo-card {
        flex-basis: 210px;
        width: 210px;
        min-height: 96px;
        padding: 18px;
    }

    .brand-logo-card img {
        max-height: 58px;
    }

    .ecommerce-results-section {
        margin-bottom: 60px;
    }

    .results-gallery {
        gap: 16px;
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .sticky-nav {
        padding: 10px 12px;
        gap: 8px;
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 12px;
        flex: 0 0 auto;
        min-width: max-content;
    }

    .bottom-cta-bar {
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .bottom-cta-content {
        flex-direction: column;
        gap: 12px;
    }

    .bottom-cta-text {
        font-size: 13px;
        text-align: center;
    }

    .btn-bottom-cta {
        width: 100%;
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Testimonios */
    .testimonials-section {
        margin-bottom: 60px;
    }

    .testimonials-header h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .testimonials-header p {
        font-size: 14px;
    }

    .testimonials-description {
        margin-bottom: 30px;
    }

    .testimonials-description p {
        font-size: 13px;
        margin: 8px 0;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial {
        padding: 16px;
    }

    .testimonial-text {
        font-size: 14px;
        margin-bottom: 16px;
        padding-left: 12px;
    }

    .testimonials-videos {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-card {
        min-height: 300px;
        padding: 12px;
    }

    .testimonial-author strong {
        font-size: 13px;
    }

    .testimonial-author span {
        font-size: 12px;
    }

    /* CTA Final */
    .final-cta-section {
        padding: 30px 20px;
        margin-bottom: 120px;
        border-radius: 12px;
    }

    .final-cta-section h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .final-cta-section p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    /* Diagnóstico */
    .diag-title {
        font-size: 20px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .diag-subtitle {
        font-size: 16px;
        margin: 24px 0 12px 0;
    }

    .diag-text {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .diag-list-item {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 24px;
    }

    table {
        min-width: 520px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero {
        padding: 42px 18px;
    }

    .hero-content {
        max-width: calc(100vw - 36px);
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.55;
    }

    .hero .btn-primary {
        width: min(100%, 340px);
        max-width: calc(100vw - 40px);
        flex: 0 0 auto;
    }

    .option {
        padding: 15px 16px;
    }

    .results-content {
        margin-left: -2px;
        margin-right: -2px;
    }
}

/* ==========================================
   Loading Screen con Tips de Marketing
   ========================================== */

.loading-screen {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
    color: #ffffff;
}

.loading-header {
    margin-bottom: 40px;
}

.loading-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.loading-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
}

.loading-notification {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.loading-notification p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    text-align: left;
}

.loading-steps {
    text-align: left;
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.loading-steps .step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--brand-wine);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 12px 28px rgba(33, 4, 9, 0.16);
}

.loading-steps .step:last-child {
    margin-bottom: 0;
}

.loading-steps .step.active {
    color: var(--brand-wine);
    border-color: #ffffff;
    font-weight: 700;
}

.step-indicator {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(104, 23, 34, 0.18);
    border-top-color: var(--brand-wine);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-timer {
    margin: 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
}

.loading-tip {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
    text-align: left;
}

#tip-content strong {
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

#tip-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.6;
}

.loading-cta {
    margin-top: 40px;
}

.loading-cta p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    margin-bottom: 15px;
}

.cta-button {
    background: #ffffff;
    color: var(--brand-wine);
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.cta-button:hover {
    background: var(--brand-blush);
    transform: translateY(-2px);
}

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


.video-lazy {
    width: 100%;
    min-height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: linear-gradient(135deg, #4f1018 0%, #7b1f2a 58%, #a7333d 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 18px 44px rgba(79, 16, 24, 0.26);
}

.video-lazy:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.38);
}

.video-lazy-main {
    min-height: 360px;
}

.video-play-icon {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    background: #ffffff;
    color: #7b1f2a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    padding-left: 4px;
}

.video-loading {
    color: #ffffff;
}

@media (max-width: 768px) {
    .video-lazy,
    .video-lazy-main {
        min-height: 220px;
    }
}
