﻿/* Import Modern Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070a13;
    --card-bg: rgba(17, 24, 39, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    /* Harmonious calibrated gradient colors */
    --primary-grad: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --accent-glow: 0 0 25px rgba(124, 58, 237, 0.45);
    --cyan-glow: 0 0 25px rgba(6, 182, 212, 0.45);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button, a, input, select, textarea, [role="button"] {
    min-height: 44px;
    min-width: 44px;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link:focus {
    left: 0 !important;
    clip: auto !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

html { overflow-x: hidden; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Stunning glowing background bubbles */
body::before, body::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
}

@media (width >= 48rem) {
    body::before, body::after { width: 350px; height: 350px; }
}

body::before {
    background: #7c3aed;
    top: 10%;
    left: -100px;
}

body::after {
    background: #06b6d4;
    bottom: 10%;
    right: -100px;
}

/* Premium Header Navigation styling */
header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 52px;
}

.logo img {
    height: 100%;
    width: auto;
}

.badge-xprize {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Main Layout container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (width >= 48rem) {
    main { padding: 3rem 2rem; }
}

/* Interactive Search Core Hero Section */
.hero {
    text-align: center;
    max-width: 800px;
    margin-bottom: 4rem;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 1.5rem + 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

h1 span {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Glossy Scanner Dashboard container */
.scanner-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (width >= 48rem) {
    .scanner-card { padding: 2.5rem; }
}

.scanner-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255,255,255,0.15) inset;
}

/* Custom Interactive Input Grid */
.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.input-full {
    grid-column: 1 / -1;
}

@media (width >= 36rem) {
    .input-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    .input-full {
        grid-column: span 2;
    }
}

.input-field:focus {
    border-color: #06b6d4;
    background: rgba(255, 255, 255, 0.07);
}

/* Premium Action Scanning Button */
.btn-primary {
    background: var(--primary-grad);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Gorgeous Loading / Scanning Screen */
.scanning-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    gap: 1.5rem;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(124, 58, 237, 0.15);
    border-top-color: #06b6d4;
    border-bottom-color: #7c3aed;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--cyan-glow);
    opacity: 0.3;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.loader {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255,255,255,.08);
    border-top: 6px solid #6c5ce7;
    border-right: 6px solid #8e44ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 5px solid transparent;
    border-top: 5px solid #00d4ff;
    border-radius: 50%;
    animation: spinReverse .8s linear infinite;
}

.loading-text {
    color: #fff;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 600;
}

.loading-text::after {
    content: "";
    animation: dots 1.5s infinite;
}

.scanning-timer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ─── Report Slots (progressive loading) ─── */
.report-slots {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-slot {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.section-slot.firing {
    border-color: var(--accent, #7c3aed);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
}

.slot-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.slot-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent, #7c3aed);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.section-slot.firing .slot-spinner {
    display: none;
}

.slot-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-slot.firing .slot-label::after {
    content: ' ✓';
    color: #34d399;
}

.slot-content {
    padding: 0 1.25rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: none;
}

.section-slot.firing .slot-content {
    display: block;
}

.slots-done {
    opacity: 0.7;
}

.slots-done .section-slot {
    border-color: rgba(52, 211, 153, 0.2);
}

@keyframes spinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes dots {
    0% { content: ""; }
    25% { content: "."; }
    50% { content: ".."; }
    75% { content: "..."; }
    100% { content: ""; }
}

/* Custom dashboard animation results card */
.results-card {
    width: 100%;
    max-width: 900px;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Beautiful circular gauge for SEO scores */
.report-header {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

@media (width >= 48rem) {
    .report-header {
        padding: 2.5rem;
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }
}

.score-gauge {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 4px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--accent-glow);
}

.score-gauge .score-val {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-gauge .grade-badge {
    position: absolute;
    bottom: -8px;
    background: #06b6d4;
    color: #070a13;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.4);
}

.report-title-group h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.report-title-group p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Diagnostic Grid Layout */
.diagnostic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.diag-card-full {
    grid-column: 1 / -1;
}

@media (width >= 48rem) {
    .diagnostic-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .diag-card-full {
        grid-column: span 2;
    }
}

.diag-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
}

.diag-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diag-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.diag-item {
    font-size: 0.925rem;
    line-height: 1.5;
    padding-left: 1.75rem;
    position: relative;
}

.diag-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.strength-item::before {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.weakness-item::before {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

/* High Fidelity Web Audit Benchmarking styling */
.bench-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.925rem;
}

@media (width < 36rem) {
    .bench-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
}

.bench-row:last-child {
    border-bottom: none;
}

.bench-label {
    color: var(--text-secondary);
}

.bench-value {
    font-weight: 600;
}

/* Glassmorphic Locked Paywall component */
.paywall-container {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px dashed rgba(124, 58, 237, 0.4);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.paywall-container h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.paywall-container p {
    color: var(--text-secondary);
    font-size: 0.975rem;
    max-width: 600px;
    line-height: 1.5;
}

.price-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0;
}

.price-tag span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* Premium Unlocked Premium Features */
.premium-header {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
    color: #34d399;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.premium-thanks-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    animation: fadeInUp 0.5s ease forwards;
}

.premium-thanks-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.premium-thanks-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 0.5rem;
}

.premium-thanks-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

#premium-actions .btn-primary {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

/* Flip card */
.premium-flip-card {
    perspective: 1000px;
}

.premium-flip-inner {
    position: relative;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.premium-flip-inner.flipped {
    transform: rotateX(180deg);
}

.premium-flip-front,
.premium-flip-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
    width: 100%;
}

.premium-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateX(180deg);
}

/* Waiting card */
.premium-waiting-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    animation: fadeInUp 0.5s ease forwards;
}

.premium-waiting-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 0.5rem;
}

.premium-waiting-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 340px;
    margin: 0 auto;
}

.premium-waiting-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(124, 58, 237, 0.15);
    border-top-color: #7c3aed;
    border-right-color: #06b6d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#email-capture-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

#email-capture-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

#email-capture-section p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.email-capture-row {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-capture-input {
    flex: 1;
    min-width: 220px;
    padding: 0.7rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.email-capture-input:focus {
    border-color: #06b6d4;
}

.email-capture-btn {
    padding: 0.7rem 1.5rem;
    background: var(--primary-grad);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.email-capture-btn:hover {
    opacity: 0.9;
}

.email-capture-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutDown {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

.pricing-grid.fade-out {
    animation: fadeOutDown 0.4s ease forwards;
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.quickwin-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: background 0.25s;
}

.quickwin-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.quickwin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.quickwin-meta > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-high { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-low { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-med { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Email Copy Box container */
.template-box {
    background: #0c101e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
}

.btn-copy {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Custom micro-animations keyframes */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* Auth + Dashboard + Modal + Print Styles */

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.btn-hamburger {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, background 0.2s;
}

.btn-hamburger:hover {
    border-color: rgba(255,255,255,0.35);
}

.btn-hamburger span {
    display: block;
    width: 20px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.btn-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.btn-hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.header-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 220px;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.header-dropdown.open {
    display: flex;
}

.header-dropdown .auth-section,
.header-dropdown .user-section {
    flex-direction: column;
    width: 100%;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-dropdown .btn-ghost,
.header-dropdown .btn-primary {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.header-dropdown .user-greeting {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
}

/* Close dropdown when clicking outside — handled by JS */

@media (width < 24rem) {
    header {
        padding: 0.75rem 1rem;
    }
    .badge-xprize {
        display: none;
    }
}

@media (width >= 48rem) {
    .btn-hamburger {
        display: none;
    }

    .header-dropdown {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
        box-shadow: none;
        gap: 0.5rem;
    }

    .header-dropdown .btn-ghost,
    .header-dropdown .btn-primary {
        width: auto;
        text-align: center;
        justify-content: center;
        white-space: nowrap;
    }

    .header-dropdown .auth-section,
    .header-dropdown .user-section {
        flex-direction: row;
        width: auto;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }
}

.auth-section, .user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-section {
    gap: 0.75rem;
}

.user-greeting {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.3);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.15);
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 0.25rem;
}

.modal-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.modal-tab.active {
    background: rgba(124,58,237,0.2);
    color: #fff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.auth-error {
    color: var(--danger);
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.5rem;
}

/* Dashboard */
.dashboard-section {
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
}

.report-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 0;
}

.report-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.report-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(4px);
}

.report-card-score {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    min-width: 50px;
    text-align: center;
}

.report-card-body {
    flex: 1;
    min-width: 0;
}

.report-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-card-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.report-card-status {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.report-card-status.locked { color: #f59e0b; }
.report-card-status.unlocked { color: #34d399; }

/* Clients Section */
.clients-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.clients-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
}

.clients-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.client-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    transition: background 0.2s, transform 0.2s;
}

.client-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.client-card-header strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
}

.client-card-body {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.client-card-footer {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-icon:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.client-form {
    margin-bottom: 1rem;
}

.client-form .input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.client-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dashboard-header-actions {
    display: flex;
    gap: 0.5rem;
}

.dashboard-reports {
    margin-top: 1.5rem;
}

.dashboard-reports h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

/* ─── PRINT / PDF STYLES (DocRaptor-inspired) ─── */

@page {
  size: A4;
  margin: 2cm;
}

@page:first {
  margin: 0;
}

.print-only {
  display: none;
}

@page {
  size: A4;
  margin: 2cm 1.8cm 2.5cm;
  @bottom-right {
    content: counter(page);
    font-size: 8pt;
    color: #94a3b8;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  }
}

@media print {
  body * { visibility: hidden; }
  #print-report, #print-report * { visibility: visible; }

  #print-report {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #1e293b;
    background: #fff;
    font-size: 9.5pt;
    line-height: 1.55;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a { color: inherit; text-decoration: none; }

  /* ─── PAGE FOOTER ─── */
  .report-footer {
    position: fixed;
    bottom: 0;
    left: 1.8cm;
    right: 1.8cm;
    text-align: center;
    font-size: 7pt;
    color: #94a3b8;
    border-top: 0.5pt solid #e2e8f0;
    padding: 0.4cm 0 0;
    letter-spacing: 0.03em;
  }
  .footer-brand { font-weight: 700; }
  .footer-divider { margin: 0 0.4cm; opacity: 0.5; }
  .footer-date { opacity: 0.7; }

  /* ─── COVER PAGE ─── */
  .coverPage {
    width: 100%;
    height: 297mm;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    page-break-after: always;
    background: linear-gradient(165deg, #0f172a 0%, #1e1b4b 40%, #172554 70%, #0c4a6e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .coverPage::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  }

  .coverPage::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -15%;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  }

  .coverPage-content {
    max-width: 80%;
    position: relative;
    z-index: 1;
  }

  .cover-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 2.5rem;
  }

  .cover-score-ring {
    width: 150px;
    height: 150px;
    border: 4px solid rgba(124,58,237,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
  }

  .cover-score-ring::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid rgba(6,182,212,0.3);
  }

  .cover-score-inner {
    text-align: center;
  }

  .cover-score-number {
    display: block;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .cover-score-grade {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #22d3ee;
    margin-top: 0.25rem;
  }

  .cover-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
    color: #fff;
    line-height: 1.2;
  }

  .cover-subtitle {
    font-size: 0.85rem;
    opacity: 0.55;
    margin-bottom: 1rem;
  }

  .cover-meta {
    font-size: 0.65rem;
    opacity: 0.35;
  }

  .cover-maturity {
    margin-top: 1.5rem;
  }

  .cover-credit {
    position: absolute;
    bottom: 1.5cm;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.6rem;
    opacity: 0.3;
    letter-spacing: 0.08em;
    z-index: 1;
  }

  .maturity-badge {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .maturity-dominante { background: rgba(16,185,129,0.2); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.35); }
  .maturity-competitivo { background: rgba(6,182,212,0.2); color: #67e8f9; border: 1px solid rgba(6,182,212,0.35); }
  .maturity-emergente { background: rgba(245,158,11,0.2); color: #fde68a; border: 1px solid rgba(245,158,11,0.35); }
  .maturity-invisible { background: rgba(239,68,68,0.2); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }

  /* ─── CHAPTERS ─── */
  .chapter {
    padding: 1.5rem 0;
    page-break-before: always;
    page-break-inside: avoid;
  }

  .chapter:first-of-type {
    page-break-before: auto;
  }

  .chapter h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e1b4b;
    border-bottom: 2.5px solid #7c3aed;
    padding-bottom: 0.35rem;
    margin-bottom: 1rem;
    margin-top: 0;
  }

  .chapter-num {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    margin-right: 0.4rem;
    vertical-align: middle;
  }

  .section-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-top: 1.25rem;
    margin-bottom: 0.65rem;
  }

  /* ─── RESUME ─── */
  .insight-box {
    background: linear-gradient(135deg, #f0f0ff, #e4e4ff);
    border-left: 4px solid #7c3aed;
    padding: 0.85rem 1.1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
  }

  .insight-box p { margin: 0; }

  .metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .metric {
    text-align: center;
    padding: 0.65rem 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
  }

  .metric-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #7c3aed;
    margin-bottom: 0.15rem;
  }

  .metric-label {
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  /* ─── MATURITY ─── */
  .maturity-section {
    margin-bottom: 1.25rem;
  }

  .maturity-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.3rem;
  }

  .maturity-label { font-weight: 600; }
  .maturity-value { font-weight: 700; color: #1e1b4b; }

  .maturity-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
  }

  .maturity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 4px;
    transition: none;
  }

  /* ─── COMPETITIVE TABLE ─── */
  .compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
  }

  .compare-table thead th {
    background: #1e1b4b;
    color: #fff;
    padding: 0.5rem 0.6rem;
    text-align: left;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .compare-table td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .row-you {
    background: #f0f0ff;
    font-weight: 600;
  }

  /* ─── BAR CHART ─── */
  .compare-bars { margin-top: 0.5rem; }

  .bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
  }

  .bar-label {
    width: 95px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.65rem;
    color: #475569;
  }

  .bar-track {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
  }

  .bar-fill {
    height: 100%;
    border-radius: 5px;
  }

  .bar-you { background: linear-gradient(90deg, #7c3aed, #06b6d4); }
  .bar-other { background: #cbd5e1; }

  .bar-value {
    width: 30px;
    font-weight: 700;
    color: #1e1b4b;
    font-size: 0.8rem;
    text-align: right;
  }

  /* ─── DIAGNOSTIC ─── */
  .diag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .diag-card {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
  }

  .diag-card.good {
    background: #f0fdf4;
    border-color: #bbf7d0;
  }

  .diag-card.good h3 { color: #16a34a; }

  .diag-card.bad {
    background: #fef2f2;
    border-color: #fecaca;
  }

  .diag-card.bad h3 { color: #dc2626; }

  .diag-card h3 {
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .diag-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .diag-card li {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #334155;
  }

  .diag-card li::before {
    content: '•';
    margin-right: 0.35rem;
  }

  .diag-card.good li::before { color: #16a34a; }
  .diag-card.bad li::before { color: #dc2626; }

  /* ─── TECH GRID ─── */
  .tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
  }

  .tech-item {
    text-align: center;
    padding: 0.65rem 0.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
  }

  .tech-icon {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.2rem;
  }

  .tech-item strong {
    display: block;
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
  }

  .tech-item span:last-child {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .ok { color: #16a34a; }
  .warn { color: #d97706; }
  .fail { color: #dc2626; }

  /* ─── OPPORTUNITY ROW ─── */
  .opportunity-row {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
  }

  .opportunity-row > div {
    flex: 1;
  }

  .opp-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    height: 100%;
    box-sizing: border-box;
  }

  .opp-box h3 {
    margin: 0 0 0.35rem;
    color: #16a34a;
    font-size: 0.85rem;
  }

  .opp-box p { margin: 0.35rem 0; }

  .projection-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
  }

  .projection-card h3 {
    font-size: 0.85rem;
    color: #1e1b4b;
    margin: 0 0 0.5rem;
  }

  .projection {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .proj-side {
    text-align: center;
    min-width: 50px;
  }

  .proj-label {
    display: block;
    font-size: 0.5rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.15rem;
  }

  .proj-score {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e1b4b;
  }

  .proj-green { color: #16a34a; }

  .proj-track {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
  }

  .proj-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
  }

  .proj-caption {
    font-size: 0.65rem;
    color: #64748b;
    margin: 0.35rem 0 0;
  }

  /* ─── QUICK WINS ─── */
  .quickwin {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.65rem;
    border-left: 4px solid;
    page-break-inside: avoid;
  }

  .quickwin-header {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
  }

  .quickwin-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .quickwin-header strong {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.2rem;
  }

  .quickwin-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
  }

  .tag {
    display: inline-block;
    padding: 0.08rem 0.35rem;
    border-radius: 3px;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .quickwin-action {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #475569;
  }

  /* severity backgrounds */
  .qw-critico { background: #fef2f2; border-color: #dc2626; }
  .qw-critico .quickwin-icon { background: #dc2626; }
  .qw-critico .tag.impact { background: #fef2f2; color: #dc2626; }

  .qw-alto { background: #fff7ed; border-color: #ea580c; }
  .qw-alto .quickwin-icon { background: #ea580c; }
  .qw-alto .tag.impact { background: #fff7ed; color: #ea580c; }

  .qw-medio { background: #fefce8; border-color: #ca8a04; }
  .qw-medio .quickwin-icon { background: #ca8a04; }
  .qw-medio .tag.impact { background: #fefce8; color: #ca8a04; }

  .qw-bajo { background: #f0fdf4; border-color: #16a34a; }
  .qw-bajo .quickwin-icon { background: #16a34a; }
  .qw-bajo .tag.impact { background: #f0fdf4; color: #16a34a; }

  .tag.diff { background: #dbeafe; color: #2563eb; }
  .tag.time { background: #f0fdf4; color: #16a34a; }
  .tag.cost { background: #fefce8; color: #a16207; }

  /* ─── ROADMAP ─── */
  .roadmap {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
  }

  .roadmap td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .period {
    width: 72px;
    font-weight: 700;
    color: #7c3aed;
    white-space: nowrap;
    font-size: 0.65rem;
    background: #f8fafc;
  }

  .task { color: #334155; }

  /* ─── EMAIL ─── */
  .email-intro {
    font-size: 0.8rem;
    color: #64748b;
    margin: -0.5rem 0 0.75rem;
  }

  .email-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.8rem;
    line-height: 1.55;
    white-space: pre-wrap;
    color: #334155;
  }

  /* ─── PHOTO ANALYSIS (PRINT) ─── */
  .photo-stats-print {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.75rem;
  }
  .photo-stat-print {
    text-align: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-width: 120px;
  }
  .photo-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #7c3aed;
    display: block;
    margin-bottom: 0.15rem;
  }
  .photo-stat-label {
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .photo-rec-print {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #334155;
    margin-top: 0.5rem;
  }

  /* ─── SCHEDULE ANALYSIS (PRINT) ─── */
  .schedule-grid-print {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .schedule-card-print {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    page-break-inside: avoid;
  }
  .schedule-card-print h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin: 0 0 0.35rem;
  }
  .schedule-card-print p {
    font-size: 0.85rem;
    color: #1e293b;
    margin: 0;
    line-height: 1.5;
  }
  .schedule-opp-print {
    background: #f0f0ff;
    border-left: 4px solid #7c3aed;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #334155;
    margin-top: 0.5rem;
  }
}

/* ─── Progress Steps ─── */
.progress-steps {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1rem 0;
}
.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.35rem;
    transition: background 0.3s, opacity 0.3s;
    font-size: 0.9rem;
    opacity: 0.4;
}
.progress-step.active {
    opacity: 1;
    background: rgba(124, 58, 237, 0.06);
}
.progress-step.done {
    opacity: 0.8;
}
.progress-step.error {
    opacity: 1;
    background: rgba(239, 68, 68, 0.06);
    color: #f87171;
}
.progress-step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.3s;
}
.progress-step.pending .progress-step-icon {
    background: rgba(255,255,255,0.06);
    color: var(--text2);
    border: 1px solid rgba(255,255,255,0.1);
}
.progress-step.active .progress-step-icon {
    background: rgba(124,58,237,0.2);
    color: #a78bfa;
    animation: pulse-icon 1s infinite;
}
.progress-step.done .progress-step-icon {
    background: rgba(16,185,129,0.15);
    color: #34d399;
}
.progress-step.error .progress-step-icon {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}
.progress-step-label {
    flex: 1;
    font-weight: 500;
}
.progress-step-data {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
@keyframes pulse-icon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(124,58,237,0); }
}

/* ─── Carta del Consultor ─── */
.carta-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.05)) !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
    position: relative;
    overflow: hidden;
}
.carta-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 6rem;
    line-height: 1;
    color: rgba(124, 58, 237, 0.1);
    font-family: 'Georgia', serif;
}
.carta-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
}
.carta-content strong {
    color: #a78bfa;
}

/* ─── Revenue Calculator ─── */
.revenue-card {
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
    background: rgba(245, 158, 11, 0.03) !important;
}
.revenue-big-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.revenue-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.revenue-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.revenue-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}
.revenue-item-loss {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}
.revenue-item-cause {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.revenue-item-cause small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}
.revenue-projection {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.revenue-projection strong {
    color: #34d399;
    font-size: 1.2rem;
}
.revenue-roi {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 0.75rem;
    background: rgba(124, 58, 237, 0.06);
    border-radius: 10px;
}

/* ─── Emotional X-Ray ─── */
.emotional-card {
    border: 1px solid rgba(236, 72, 153, 0.15) !important;
}
.emotion-meter {
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
}
.emotion-meter-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(90deg, #ef4444, #f59e0b, #34d399);
}
.emotion-meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
.emotion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.emotion-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.emotion-positive-label { color: #34d399; }
.emotion-negative-label { color: #f87171; }
.emotion-themes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.emotion-theme {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.verbatim-quotes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.quote-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.verbatim-item {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-style: italic;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(236, 72, 153, 0.3);
    border-radius: 0 8px 8px 0;
}
.verbatim-item .verbatim-author {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: normal;
    margin-top: 0.2rem;
}
.emotion-realtime-badge {
    display: inline-block;
    font-size: 0.65rem;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.4rem;
    font-weight: 600;
}
.sentiment-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.08rem 0.35rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    text-transform: uppercase;
}
.sentiment-positivo { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.sentiment-neutral { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.sentiment-negativo { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.competitor-insight {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #22d3ee;
    line-height: 1.5;
}

/* ─── Content Plan Cards ─── */
.content-card {
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}
.content-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 650px;
    margin: 0 auto;
}

@media (width >= 48rem) {
    .content-cards {
        grid-template-columns: 1fr 1fr;
        max-width: none;
    }
}
.content-card-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}
.content-card-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}
.content-card-topic {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.content-card-why {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}
.content-card-format {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    align-self: flex-start;
}
.format-blog { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.format-social { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.format-video { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.content-card-based {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.4rem;
    font-style: italic;
}

/* ─── Insights Grid (Attribute, Photo, Schedule) ─── */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (width >= 48rem) {
    .insights-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.25rem;
    }
}
.insight-card {
    margin-bottom: 0;
}
.insight-card h3 {
    font-size: 1rem;
}
.insight-card p, .insight-card li {
    font-size: 0.85rem;
    line-height: 1.5;
}
.insight-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.insight-card ul li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.insight-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.insight-card .you-have li::before { background: #34d399; }
.insight-card .they-have li::before { background: #f87171; }
.insight-card .rec-list li::before { background: #a78bfa; }

.photo-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.75rem;
}
.photo-stat {
    text-align: center;
}
.photo-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    display: block;
}
.photo-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.photo-rec {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ─── Tooltip System ─── */
[data-tip] {
  position: relative;
  cursor: help;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  width: 220px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
[data-tip]:hover::after,
[data-tip]:focus::after,
[data-tip]:active::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

[data-tip]:focus {
  outline: none;
}
.tooltip-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-size: 0.6rem;
  text-align: center;
  line-height: 14px;
  cursor: help;
  vertical-align: middle;
  margin-left: 2px;
}

/* ─── Business Verifiable Info ─── */
.biz-verifiable {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  align-items: center;
}
.biz-veri-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}
.biz-veri-item a {
  color: #06b6d4;
  text-decoration: none;
}
.biz-veri-item a:hover {
  text-decoration: underline;
}
.biz-veri-badge {
  font-size: 0.65rem;
  color: #34d399;
  background: rgba(52,211,153,0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* ─── Photo Gallery ─── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.photo-gallery-img {
  aspect-ratio: 1;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.photo-gallery-img:hover {
  transform: scale(1.05);
}

/* ─── Revenue Disclaimer ─── */
.revenue-disclaimer {
  border-left: 3px solid #06b6d4 !important;
}

/* ─── Core Web Vitals Grid ─── */
.cvitals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (width >= 48rem) {
    .cvitals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (width >= 64rem) {
    .cvitals-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
.cvital {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.5rem 0.4rem;
    text-align: center;
    transition: background 0.2s;
}
.cvital:hover {
    background: rgba(255, 255, 255, 0.04);
}
.cvital-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}
.cvital-val {
    display: inline;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.cvital-unit {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 1px;
}
.cvital-good .cvital-val { color: #34d399; }
.cvital-warn .cvital-val { color: #fbbf24; }
.cvital-bad .cvital-val { color: #f87171; }

.cwv-opp {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid #f59e0b;
    border-radius: 0 6px 6px 0;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cwv-opp strong {
    color: var(--text-primary);
}

/* ─── Metrics Grid (web UI) ─── */
.metrics-card {
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    background: rgba(6, 182, 212, 0.02) !important;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (width >= 48rem) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (width >= 64rem) {
    .metrics-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.metric-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}
.metric-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}
.metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.2rem;
    color: #a78bfa;
}
.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    line-height: 1.3;
}
.metric-value.good { color: #34d399; }
.metric-value.warn { color: #fbbf24; }
.metric-value.bad { color: #f87171; }

.maturity-section {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.maturity-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.maturity-header .meta-label { font-weight: 600; }
.maturity-header .meta-value { font-weight: 700; color: var(--text-primary); }
.maturity-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}
.maturity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* cvitals-grid y metrics-grid ahora son mobile-first (arriba) */

/* ─── Reveal Animations ─── */
.reveal-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Confetti Canvas ─── */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.1);
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
  opacity: 0;
}

.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-error { border-left: 4px solid #ef4444; }
.toast-success { border-left: 4px solid #10b981; }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-info { border-left: 4px solid #06b6d4; }

/* Trust Strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1rem 1rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  flex-wrap: wrap;
}

@media (width >= 48rem) {
  .trust-strip {
    gap: 0;
    padding: 1.25rem 2rem;
    margin: -1.5rem auto 3rem;
  }
  .trust-item {
    flex: 1 1 0;
    min-width: 0;
  }
  .trust-number {
    font-size: 1.3rem;
  }
  .trust-label {
    font-size: 0.65rem;
    white-space: nowrap;
  }
  .trust-divider {
    flex-shrink: 0;
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.trust-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

/* ─── Blog Section (full page) ─── */
.blog-section {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.blog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.blog-section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}
.blog-section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: center;
}
.blog-preview-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.blog-tag {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ─── Blog Full Post ─── */
.blog-post-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.blog-post-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.blog-post-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-primary);
}
.blog-post-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}
.blog-post-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}
.blog-post-body p {
  margin-bottom: 0.85rem;
}
.blog-post-body strong {
  color: #a78bfa;
}
.blog-post-body em {
  color: #22d3ee;
}
.blog-post-body ul {
  list-style: none;
  margin: 0.5rem 0 1rem;
}
.blog-post-body li {
  padding: 0.2rem 0 0.2rem 1.25rem;
  position: relative;
  font-size: 0.88rem;
}
.blog-post-body li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #06b6d4;
}
.blog-post-body a {
  color: #06b6d4;
  text-decoration: underline;
}
.blog-post-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.blog-post-cta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.blog-post-cta a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
}
.blog-post-cta a:hover {
  text-decoration: underline;
}
.blog-post-single {
  margin-top: 1.5rem;
}

/* ─── Blog List Cards ─── */
.blog-list-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.blog-list-card:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(4px);
}
.blog-list-card-body {
  flex: 1;
  min-width: 0;
}
.blog-list-card-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.blog-list-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.blog-list-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.blog-list-cta {
  flex-shrink: 0;
}

/* How It Works */
.how-it-works {
  width: 100%;
  max-width: 900px;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (width >= 48rem) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
  color: #fff;
}

.step-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Form Validation */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

.input-field.input-error:focus {
  border-color: #ef4444 !important;
}

/* Guest flow CTA hint */
.guest-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 10px;
  color: #22d3ee;
  font-size: 0.85rem;
  font-weight: 500;
}

.guest-hint a {
  color: #22d3ee;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

.field-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.field-optional {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-left: 0.25rem;
}

.existing-reports-card {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
}

.existing-reports-header {
  font-size: 0.95rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 0.5rem;
}

.existing-reports-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.35rem;
  background: rgba(139, 92, 246, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary, #e2e8f0);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.existing-reports-item:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateX(2px);
}

.existing-reports-item:active {
  transform: translateX(2px) scale(0.99);
}

.existing-reports-item .report-item-name {
  display: block;
  font-size: 0.85rem;
}

.existing-reports-item .report-item-meta {
  display: block;
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 0.1rem;
}

.existing-reports-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.comparison-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.06);
  border-radius: 12px;
}

.comparison-score {
  text-align: center;
  min-width: 80px;
}

.comparison-score .score-num {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.comparison-score .score-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-arrow {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.comparison-diff {
  font-size: 1.2rem;
  font-weight: 700;
}

.comparison-diff.positive { color: #34d399; }
.comparison-diff.negative { color: #f87171; }

/* FAQ Modal */
.modal-card-wide {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: background 0.2s;
}

.faq-item:hover {
  background: rgba(255,255,255,0.04);
}

.faq-question {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.faq-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.faq-open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem;
}

/* XPRIZE Dashboard */
.xprize-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.xprize-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.xprize-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (width >= 48rem) {
  .xprize-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.xprize-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.25rem;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-time {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.log-ref {
  color: #06b6d4;
  font-family: monospace;
  font-size: 0.8rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-item {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.02);
}

.checklist-item.done {
  background: rgba(16,185,129,0.06);
  color: #34d399;
}

.authority-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 900px;
  margin: -1rem auto 2.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(6, 182, 212, 0.04);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 10px;
  flex-wrap: wrap;
}

.authority-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.authority-item span {
  font-size: 1rem;
}

.authority-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.1);
}

.scarcity-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
  color: #fca5a5;
  margin: -0.5rem 0 0.5rem;
}

.scarcity-icon {
  font-size: 1.1rem;
}

.scarcity-text strong {
  color: #f87171;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
  max-width: 750px;
  margin: 2.5rem auto 0;
}

@media (width >= 48rem) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing-card.featured {
  border-color: #7c3aed;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.pricing-note {
  font-size: 0.75rem;
  color: #22d3ee;
  margin-top: -0.5rem;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  color: #fff;
  padding: 0.3rem 1.25rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.pricing-plan-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pricing-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.price-original {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.price-period {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  vertical-align: middle;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
}

.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-features li::before {
  content: '✓';
  margin-right: 0.5rem;
  color: #22d3ee;
  font-weight: 700;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.pricing-cta:disabled {
  opacity: 0.5;
  cursor: default;
}

.pricing-cta-outline {
  background: transparent !important;
  border: 2px solid #7c3aed !important;
  color: #a78bfa !important;
}

.pricing-cta-outline:hover {
  background: rgba(124, 58, 237, 0.1) !important;
}

.pricing-card .scarcity-banner {
  margin: -0.25rem 0 0;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
}

.hero-rotator {
  position: relative;
  min-height: 4.5rem;
  margin-bottom: 0.25rem;
}

.hero-rotator-item {
  display: block;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #a5b4fc;
  line-height: 1.5;
  padding: 0 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  transform: translateZ(0);
}

.hero-rotator-item.active {
  opacity: 1;
}

.results-copy-protected {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* data-section hover tooltip — eliminar cuando ya no se necesite */
[data-section]:hover::after {
  content: attr(data-section);
  position: absolute; top: 4px; right: 4px;
  font: 9px/1 monospace; background: rgba(0,0,0,0.7);
  color: #fff; padding: 2px 6px; border-radius: 4px;
  pointer-events: none; z-index: 999;
}
[data-section] { position: relative; }

#premium-wrapper > .diag-card { margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Reglas movidas a CSS base (mobile-first) - ver arriba */
