/* ============================================ */
/* 15-landing.css - LANDING PAGE (FINAL LIMPIO) */
/* ============================================ */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --color-primary: #1e4a7a;
    --color-primary-hover: #163b63;
    --color-primary-light: rgba(30, 74, 122, 0.08);
    --color-text-main: #1e293b;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --gradient-blue: linear-gradient(135deg, #1e4a7a 0%, #2b6cb0 100%);
    --radius-card: 14px;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    background: url('../data/images/wallpaper5.png') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.5;
}

/* ============================================
   CONTENIDO DESPLAZADO A LA IZQUIERDA
   ============================================ */


section {
    padding: 68px 0;
    max-width: 75%;
    margin: 24px 0 24px 5%;
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ============================================
   HERO
   ============================================ */
#hero {
    padding: 60px 0 52px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#hero .hero-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}

#hero .hero-left {
    flex: 1;
    margin-top: -45px;
    max-width: 100%;
    min-width: 0;
    animation: fadeUp 0.55s ease both;
}

.hero-right {
    flex: 0 0 420px;
}

.hero-logo {
    margin-bottom: 16px;
    display: flex;
    margin-left: 90px;
}

.hero-logo-img {
    width: 100px;
    height: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.eyebrow-line {
    width: 18px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-main);
    margin-bottom: 22px;
}

.hero-title em {
    font-style: italic;
    color: var(--color-primary);
}

.hero-hook {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.78;
    border-left: 3px solid var(--color-border);
    padding-left: 16px;
    margin-bottom: 32px;
    max-width: 460px;
}

.hero-hook strong {
    color: var(--color-text-main);
    font-weight: 600;
}

.btn-main {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 11px;
    padding: 14px 34px;
    font-size: 0.97rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 4px 18px rgba(30, 74, 122, 0.28);
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}

.btn-main:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30, 74, 122, 0.38);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 36px;
}

.metric-card {
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.metric-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.74rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ============================================
   PANEL DE ESTADÍSTICAS SIMULADO (RADAR)
   ============================================ */
.stats-preview-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
    animation: fadeUp 0.55s 0.12s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.stats-preview-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--color-border);
}

.preview-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--gradient-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.preview-user-info {
    flex: 1;
    min-width: 0;
}

.preview-name {
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 1rem;
    line-height: 1.2;
}

.preview-badge {
    font-size: 1rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-badge i {
    color: var(--color-primary);
    font-size: 0.6rem;
}

.preview-rank-badge {
    background: #dbeafe;
    color: #1e4a7a;
    font-size: 1rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 100px;
    flex-shrink: 0;
}

.stats-preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.preview-stat-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.preview-stat-icon {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
    color: var(--color-primary);
}

.preview-stat-content {
    display: flex;
    flex-direction: column;
}

.preview-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.05rem;
    text-transform: uppercase;
}

.preview-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1;
}

.preview-stat-unit {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

.preview-radar-container {
    background: #fafbfc;
    border-radius: 12px;
    padding: 0.6rem;
    margin-bottom: 0.6rem;
    border: 1px solid var(--color-border);
    overflow: visible;       /* ← AGREGA ESTO */
}

.preview-radar-svg {
    max-width: 280px;
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    overflow: visible;       /* ← AGREGA ESTO */
}

.preview-radar-legend {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.3rem;
    font-size: 0.7rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.legend-line {
    width: 14px;
    height: 2px;
    border-radius: 2px;
    display: inline-block;
}

.legend-line.blue { background: #1e4a7a; }
.legend-line.gold { background: #f59e0b; }

.preview-materias-row {
    display: flex;
    gap: 0.4rem;
    margin-top: 1%;
    margin-bottom: 0.6rem;
}

.preview-materia-block {
    flex: 1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    min-width: 0;
}

.preview-materia-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.preview-materia-block.fuertes .preview-materia-label { color: #059669; }
.preview-materia-block.mejorar .preview-materia-label { color: #f59e0b; }

.preview-materia-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.preview-materia-chip {
    font-size: 0.78rem;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.preview-materia-chip strong {
    font-weight: 700;
    color: var(--color-text-main);
}

.preview-materia-chip.strong { background: rgba(16, 185, 129, 0.08); }
.preview-materia-chip.improve { background: rgba(245, 158, 11, 0.08); }

.preview-comparador {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.preview-comparador strong { color: var(--color-text-main); }

.preview-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.preview-dot.blue { background: #3b82f6; }
.preview-dot.gold { background: #f59e0b; }

.preview-vs {
    color: #94a3b8;
    font-size: 0.6rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.page-header { margin-bottom: 2rem; }
.page-header.centered { text-align: center; }

.page-title {
    font-size: clamp(1.45rem, 2.8vw, 1.95rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 7px;
    line-height: 1.22;
}

.page-subtitle { font-size: 0.88rem; color: var(--color-text-secondary); }
.centered .page-subtitle { margin: 0 auto; }

/* ============================================
   COMPARATIVA
   ============================================ */
#comparativa {
    background: rgba(255, 255, 255, 0.92);
    padding: 68px 0;
}

.col-us { background: rgba(30, 74, 122, 0.03); }

/* ============================================
   TABLA COMPARATIVA (LIMPIO)
   ============================================ */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ranking-table th,
.ranking-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.ranking-table td:first-child,
.ranking-table th:first-child {
    text-align: left;
}

.ranking-table th {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    background: #f8fafc;
}

.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }

/* ============================================
   MÓVIL → COMPACTO REAL (VERSIÓN CORREGIDA)
   ============================================ */
@media (max-width: 660px) {
    .ranking-table thead {
        display: none;
    }

    .ranking-table,
    .ranking-table tbody,
    .ranking-table tr {
        display: block;
        width: 100%;
    }

    .ranking-table tr {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 8px;
        position: relative;
    }

    .ranking-table td {
        border: none;
        padding: 0;
        font-size: 0.75rem;
    }

    .ranking-table td:first-child {
        text-align: left;
        font-weight: 600;
        color: var(--color-text-main);
    }

    .ranking-table td:nth-child(2),
    .ranking-table td:nth-child(3) {
        text-align: center;
        white-space: nowrap;
    }
    
    /* Añadir pseudo-elementos o atributos para etiquetar las columnas */
    .ranking-table td:nth-child(2)::before {
        content: "Seong-Gong";
        display: block;
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--color-primary);
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .ranking-table td:nth-child(3)::before {
        content: "Otras plataformas";
        display: block;
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--color-text-secondary);
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    /* Ajustar el espaciado de la primera columna */
    .ranking-table td:first-child {
        grid-column: 1 / -1;
        margin-bottom: 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--color-border);
    }
}

/* ============================================
   EXÁMENES
   ============================================ */
#examenes {
    padding: 60px 0 52px;
    max-width: 75%;
    margin: 24px 0 24px 5%;
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

#examenes .wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.exam-card {
    text-align: center;
    padding: 28px 22px;
}

.exam-card .stat-icon {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exam-card h3 { font-weight: 700; font-size: 0.93rem; margin-bottom: 8px; }
.exam-card p { font-size: 0.8rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: 14px; }

.exam-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.exam-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

.badge { margin-bottom: 12px; }

/* ============================================
   CÓMO FUNCIONA
   ============================================ */
#como { background: rgba(255, 255, 255, 0.92); padding-top: 30px; }

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.step {
    padding: 28px 22px;
    background: #fff;
    border-right: 1px solid var(--color-border);
    position: relative;
}

.step:last-child { border-right: none; }

.step-n {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: 8px;
    user-select: none;
}

.step h3 { font-size: 0.92rem; font-weight: 700; margin-bottom: 7px; }
.step h3 i { color: var(--color-primary); margin-right: 5px; font-size: 0.8rem; }
.step p { font-size: 0.8rem; color: var(--color-text-secondary); line-height: 1.6; }

.step-arrow {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(30, 74, 122, 0.3);
}

.step:last-child .step-arrow { display: none; }

/* ============================================
   FUNCIONALIDADES
   ============================================ */
#funciones { background: rgba(255, 255, 255, 0.92); }

.func-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.func-card i { font-size: 1.1rem; color: var(--color-primary); margin-bottom: 9px; display: block; }
.func-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.func-card p { font-size: 0.76rem; color: var(--color-text-secondary); line-height: 1.55; }

/* ============================================
   PLANES
   ============================================ */
.planes-wrap {
    display: flex;
    gap: 22px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}

.plan-card {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 30px 26px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    width: 290px;
    min-width: 260px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.plan-card.pro {
    border-color: var(--color-primary);
    box-shadow: 0 8px 36px rgba(30, 74, 122, 0.15);
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-name { font-size: 1.3rem; font-weight: 700; }

.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-size: 2rem; font-weight: 800; color: var(--color-text-main); }
.plan-price .period { font-size: 0.75rem; color: var(--color-text-secondary); }

.plan-divider { border: none; border-top: 1px solid var(--color-border); }

.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--color-text-main); }
.plan-feats li i { margin-top: 2px; flex-shrink: 0; }
.plan-feats li .fa-xmark { color: #d1d5db; }

.btn-plan {
    display: block;
    text-align: center;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.18s;
    cursor: pointer;
    border: none;
}

.btn-plan-free { background: #f3f4f6; color: var(--color-text-main); }
.btn-plan-free:hover { background: #e5e7eb; }

.btn-plan-pro { background: var(--color-primary); color: #fff; box-shadow: 0 4px 14px rgba(30, 74, 122, 0.28); }
.btn-plan-pro:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

/* ============================================
   CTA
   ============================================ */
#cta { background: var(--gradient-blue); }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(255, 255, 255, 0.92);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

footer span { font-size: 0.78rem; color: #6b7280; }
footer a { font-size: 0.78rem; color: #9ca3af; text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--color-primary); }

/* ============================================
   HEADER
   ============================================ */
.sg-header {
    padding: 0.9rem clamp(1rem, 3vw, 2.5rem) !important;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.sg-logo h1 { font-size: clamp(1.2rem, 3vw, 1.4rem) !important; }
.sg-logo i { font-size: clamp(1.3rem, 3.5vw, 1.7rem) !important; }
.sg-btn { padding: 0.5rem 1.3rem !important; font-size: clamp(0.78rem, 1.8vw, 0.88rem) !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .wrap, section, #hero, #comparativa, #examenes, #como, #funciones, #planes, #cta, footer {
        max-width: 92%;
        margin-left: 4%;
        border-radius: 16px;
    }
    #hero .hero-inner { flex-direction: column; }
    .hero-right { flex: 0 0 auto; width: 100%; max-width: 100%; }
    .hero-hook { max-width: 100%; }
}

@media (max-width: 860px) {
    .func-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .exams-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
    .steps-row { grid-template-columns: 1fr; }
    .step { border-right: none; border-bottom: 1px solid var(--color-border); }
    .step:last-child { border-bottom: none; }
    .step-arrow { display: none; }
    .planes-wrap { flex-direction: column; align-items: center; }
    .plan-card { width: 100%; max-width: 350px; }
}

@media (max-width: 480px) {
    .wrap, section, #hero, #comparativa, #examenes, #como, #funciones, #planes, #cta, footer {
        max-width: 95%;
        margin-left: 2.5%;
        border-radius: 12px;
    }
    .func-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .metric-card:last-child { grid-column: 1 / -1; }
    .stats-preview-panel { padding: 0.8rem; }
    .preview-name { font-size: 0.9rem; }
    .preview-badge { font-size: 0.8rem; }
    .preview-rank-badge { font-size: 0.85rem; padding: 4px 10px; }
    .preview-stat-label { font-size: 0.6rem; }
    .preview-stat-value { font-size: 1.1rem; }
    .preview-materia-chip { font-size: 0.6rem; }
    .preview-comparador { font-size: 0.75rem; }
}

