:root {
    --primary: #0a2540;      /* Azul Petróleo Premium */
    --secondary: #c5a880;    /* Dorado Sutil */
    --text: #334155;
    --bg: #f8fafc;
    --danger: #b91c1c;
    --success: #166534;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3, .rh-title h2, .logo {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* NAV */
.top-nav {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo-icon {
    width: 32px;
    height: 32px;
    fill: var(--secondary);
}
.logo {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
}
.logo-sub {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-wa-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* HERO */
.hero {
    background: var(--primary);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
}
.hero-sub {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.cta-button {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}
.cta-button.primary {
    background: var(--secondary);
    color: var(--white);
}
.cta-button.primary:hover {
    background: #b0946e;
}
.cta-button.outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.cta-button.outline:hover {
    background: rgba(255,255,255,0.1);
}
.privacy-note {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* SECTIONS */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 3rem;
}
.how-it-works, .cases-section {
    padding: 4rem 0;
    background: var(--white);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.step-card {
    text-align: center;
    padding: 2rem;
}
.step-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--secondary);
}
.step-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}
.step-card p {
    color: #64748b;
}

/* BENEFITS */
.benefits {
    background: #f1f5f9;
    padding: 3rem 0;
}
.benefits-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.benefit-item {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.benefit-item::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
}

/* CASOS */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.case-card {
    background: var(--bg);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    display: block;
}
.case-card:hover {
    border-color: var(--secondary);
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* COPILOTO */
.copilot-wrapper {
    padding: 4rem 1.5rem;
}
.copilot-box {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(10,37,64,0.08);
    max-width: 800px;
    margin: 0 auto;
}
.copilot-header {
    text-align: center;
    margin-bottom: 2rem;
}
.copilot-header h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.copilot-header p {
    color: #64748b;
}

/* PREGUNTAS */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 2.5rem;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--secondary);
    transition: width 0.4s ease;
}
.copilot-question {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}
.copilot-question.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.copilot-question h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.copilot-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.copilot-option-btn {
    background: var(--bg);
    border: 1px solid #cbd5e1;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}
.copilot-option-btn:hover {
    border-color: var(--secondary);
    background: var(--white);
}
.copilot-input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}
.copilot-input:focus {
    outline: none;
    border-color: var(--secondary);
}
.btn-next {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}
.btn-next:hover {
    background: #153a5f;
}
.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
    font-weight: 500;
}

/* INFORME PREMIUM */
.report-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(10,37,64,0.08);
}
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.rh-title h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.rh-title p {
    color: #64748b;
    font-size: 0.9rem;
}
.btn-print {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.report-card {
    background: var(--bg);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
}
.report-card.full-width {
    grid-column: 1 / -1;
}
.report-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}
.text-small {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.text-right { text-align: right; }

/* Tarjeta 1 y 2: Resumen y Probabilidad */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.s-item span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}
.s-item strong {
    font-size: 1.05rem;
}
.summary-context {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
}
.prob-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.prob-badge {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
}
.prob-text {
    font-size: 0.9rem;
    color: var(--text);
}

/* Tarjeta 3: Riesgos */
.risk-list {
    list-style: none;
}
.risk-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.risk-list li::before {
    content: '✓';
    color: var(--danger);
    font-weight: bold;
}

/* Tarjeta 4: Matemáticas */
.math-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.math-block {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
}
.block-b {
    border-color: #fde68a;
    background: #fffbeb;
}
.math-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.report-table {
    width: 100%;
    border-collapse: collapse;
}
.report-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}
.report-table tfoot td {
    border-top: 2px solid var(--primary);
    padding-top: 0.75rem;
    font-size: 1.1rem;
}
.contingency-list {
    list-style: none;
}
.contingency-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 0.95rem;
}
.badge-status {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.bg-green { background: #dcfce7; color: #166534; }
.bg-yellow { background: #fef08a; color: #854d0e; }
.bg-gray { background: #f1f5f9; color: #475569; }

/* Tarjeta 5: Total Potencial */
.total-box {
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}
.total-box h4 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.total-formula {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}
.total-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}
.total-warning {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Tarjeta 6 y 7: Estrategia y Docs */
.strategy-list {
    padding-left: 1.5rem;
    font-weight: 500;
}
.strategy-list li { margin-bottom: 0.5rem; }
.doc-group h4 {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.doc-group ul {
    list-style: none;
}
.doc-group ul li::before {
    content: '•';
    color: var(--primary);
    display: inline-block;
    width: 1em;
}

/* Tarjeta 8: Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
}
.tl-step {
    text-align: center;
    flex: 1;
    position: relative;
}
.tl-dot {
    width: 20px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}
.tl-step.active .tl-dot {
    background: var(--secondary);
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.2);
}
.tl-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}
.tl-step.active .tl-label { color: var(--primary); }
.tl-line {
    flex: 1;
    height: 2px;
    background: #cbd5e1;
    margin-top: 10px;
}

/* Tarjeta 9: Confianza */
.trust-score {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    border: 3px solid var(--secondary);
}

/* Footer y WA Flotante */
.report-footer {
    margin-top: 2rem;
    text-align: center;
}
.cta-box {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}
.cta-box h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.cta-box p {
    color: #64748b;
    margin-bottom: 1.5rem;
}
.cta-button.whatsapp {
    background: #128C7E;
    color: white;
}
.cta-button.whatsapp:hover { background: #075E54; }

.wa-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.2s;
}
.wa-floating:hover { transform: scale(1.1); }

footer {
    background: var(--primary);
    color: #cbd5e1;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .dashboard-grid, .math-grid, .summary-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .report-container, .copilot-box { padding: 1.5rem; }
    .timeline { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .tl-line { display: none; }
    .tl-step { display: flex; align-items: center; gap: 1rem; }
    .tl-dot { margin: 0; }
    
    .wa-floating {
        width: 100%;
        border-radius: 0;
        bottom: 0;
        right: 0;
        height: auto;
        padding: 1rem;
        font-weight: bold;
        color: white;
        text-decoration: none;
        gap: 0.5rem;
    }
    .wa-floating::after {
        content: 'Hablar con Abogado';
    }
    body { padding-bottom: 60px; }
}

/* PRINT */
@media print {
    .no-print { display: none !important; }
    body { background: white; color: black; font-size: 12pt; }
    .report-container { box-shadow: none; padding: 0; border: none; }
    .report-card { border: 1px solid #000; break-inside: avoid; margin-bottom: 1.5rem; }
    .math-block { border: 1px solid #000; break-inside: avoid; }
    .total-box { background: white; color: black; border: 2px solid black; }
    .total-box h4 { color: black; }
    .dashboard-grid, .math-grid { display: block; }
}
