/* ============================================================================
   Impulsa TEC — Design system público (cálido y cercano)
   ============================================================================ */

:root {
    --primary: #E07A3D;
    --primary-dark: #C45F24;
    --primary-soft: rgba(224, 122, 61, 0.12);
    --secondary: #2F5D50;
    --secondary-soft: rgba(47, 93, 80, 0.1);
    --accent: #F0B429;
    --accent-soft: rgba(240, 180, 41, 0.18);
    --text: #1F2A24;
    --text-light: #5C6B63;
    --bg: #FBF7F2;
    --bg-soft: #F3EDE4;
    --white: #FFFFFF;
    --border: #E8DFD3;
    --success: #2F9E6B;
    --warning: #E09B2D;
    --danger: #D64545;
    --gradient: linear-gradient(135deg, #E07A3D 0%, #F0B429 100%);
    --gradient-warm: linear-gradient(145deg, #FFF8F0 0%, #FBF7F2 45%, #F0E8DC 100%);
    --gradient-hero: linear-gradient(160deg, #FFF9F3 0%, #FBF7F2 50%, #F5EDE3 100%);
    --shadow-sm: 0 2px 8px rgba(31, 42, 36, 0.04);
    --shadow-md: 0 8px 30px rgba(31, 42, 36, 0.06);
    --shadow-lg: 0 16px 48px rgba(31, 42, 36, 0.1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 999px;
    --font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    color: var(--primary);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.85rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(224, 122, 61, 0.28);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(196, 95, 36, 0.32);
}

.btn-gradient {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(224, 122, 61, 0.3);
}

.btn-gradient:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(224, 122, 61, 0.38);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: #244a40;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: var(--white);
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: var(--secondary-soft);
}

.btn-white {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: #FFF9F3;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--text);
    background: transparent;
    border-color: transparent;
    padding: 0.65rem 0.9rem;
}

.btn-text:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
}

.btn-block,
.btn-submit {
    display: flex;
    width: 100%;
}

.btn:disabled,
.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(232, 223, 211, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--nav-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.logo h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: none;
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-toggle {
    display: none;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    padding: 0.55rem 0.7rem;
    min-width: 44px;
    min-height: 44px;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 42, 36, 0.35);
    z-index: 90;
}

.nav-overlay.active {
    display: block;
}

/* Hero */
.hero {
    padding: 4.5rem 0 3.5rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 180, 41, 0.18) 0%, transparent 70%);
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 122, 61, 0.12) 0%, transparent 70%);
    bottom: -100px;
    left: -40px;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge-hero,
.small-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    background: var(--secondary-soft);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-weight: 650;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(47, 93, 80, 0.12);
}

.hero-text h1 {
    margin-bottom: 1.15rem;
}

.hero-text > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    max-width: 34rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-number {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-image {
    position: relative;
    min-height: 420px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background:
        radial-gradient(circle at 30% 30%, rgba(240, 180, 41, 0.25), transparent 45%),
        radial-gradient(circle at 70% 70%, rgba(224, 122, 61, 0.2), transparent 50%),
        linear-gradient(145deg, #FFF8F0, #F0E6D8);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.hero-panel {
    position: absolute;
    inset: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
    z-index: 2;
}

.hero-panel-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-md);
}

.hero-panel-card strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.hero-panel-card span {
    font-size: 0.88rem;
    color: var(--text-light);
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 10;
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
}

.card-1 { top: 8%; right: 4%; }
.card-2 { bottom: 14%; left: 0; animation-delay: 1.5s; }

.floating-card .icon {
    font-size: 1.5rem;
    background: var(--bg-soft);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.floating-card .text {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 0.9rem;
    color: var(--text);
}

.floating-card span {
    font-size: 0.78rem;
    color: var(--success);
    font-weight: 700;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Sections */
.section {
    padding: 4.5rem 0;
}

.bg-light {
    background: var(--bg-soft);
}

.section-header {
    margin-bottom: 2.75rem;
    max-width: 620px;
}

.section-header.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card,
.step-card,
.plan-card,
.testimonial-card,
.info-card,
.course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card {
    padding: 1.75rem;
}

.feature-card:hover,
.step-card:hover,
.plan-card:hover,
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(224, 122, 61, 0.35);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: var(--primary-soft);
    margin-bottom: 1.15rem;
}

.feature-card h3,
.step-card h3 {
    margin-bottom: 0.6rem;
}

.feature-card p,
.step-card p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* How it works */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
}

.step-card {
    padding: 1.75rem;
    position: relative;
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 8px 18px rgba(224, 122, 61, 0.25);
}

/* Plans */
.plans-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.plan-card {
    padding: 1.75rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border-color: var(--primary);
    box-shadow: 0 12px 36px rgba(224, 122, 61, 0.16);
    position: relative;
    background: linear-gradient(180deg, #FFF9F3 0%, #FFFFFF 40%);
}

.plan-card.featured::before {
    content: 'Más popular';
    position: absolute;
    top: -12px;
    left: 1.25rem;
    background: var(--gradient);
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.plan-card h3 {
    margin-bottom: 0.25rem;
}

.plan-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0.75rem 0 0.15rem;
    letter-spacing: -0.03em;
}

.plan-period {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 1.15rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.plan-features li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-light);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 800;
    flex-shrink: 0;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plans-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.plans-note a {
    color: var(--primary);
    font-weight: 600;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.testimonial-card {
    padding: 1.5rem;
}

.testimonial-quote {
    color: var(--accent);
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-style: normal;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.65;
    font-size: 0.98rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Trust / social proof strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.trust-item {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #2F5D50 0%, #3D7A69 55%, #E07A3D 140%);
    border-radius: var(--radius-lg);
    padding: 3.25rem 2rem;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -80px;
    right: -40px;
}

.cta-content {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background: var(--white);
    padding: 3.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand h2 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 0.65rem;
}

.footer-brand p {
    max-width: 260px;
    margin-bottom: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.link-group h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.95rem;
}

.link-group a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.65rem;
    transition: color 0.2s;
    font-size: 0.92rem;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
}

/* =========================
   Wizard / Diagnóstico
   ========================= */
.wizard-page {
    min-height: calc(100vh - var(--nav-height));
    padding: 2rem 0 3rem;
    background: var(--gradient-warm);
}

.wizard-intro {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 1.5rem;
}

.wizard-intro h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.wizard-intro p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

.wizard-container {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.wizard-header {
    padding: 1.25rem 1.75rem;
    background: linear-gradient(180deg, #FFF9F3 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-container {
    flex: 1;
    min-width: 140px;
    max-width: 220px;
}

.progress-bar {
    height: 10px;
    background: var(--bg-soft);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.step-counter {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 700;
    white-space: nowrap;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    background: var(--secondary-soft);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-weight: 700;
    white-space: nowrap;
}

.wizard-content {
    padding: 2rem 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 280px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    margin-top: 1.25rem;
    color: var(--text-light);
    font-size: 0.98rem;
    font-weight: 500;
}

.question-container {
    animation: fadeInUp 0.35s ease-out;
}

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

.question-title {
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 750;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.35;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
}

.option-card:hover {
    background: #FFF9F3;
    border-color: rgba(224, 122, 61, 0.45);
    transform: translateX(3px);
}

.option-card.selected {
    background: var(--primary-soft);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(224, 122, 61, 0.15);
}

.option-radio {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #C9BEB0;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    background: var(--white);
}

.option-card:hover .option-radio {
    border-color: var(--primary);
}

.option-card.selected .option-radio {
    border-color: var(--primary);
    background: var(--primary);
}

.option-card.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

.option-text {
    font-size: 0.98rem;
    color: var(--text);
    font-weight: 550;
    line-height: 1.4;
}

.option-card.selected .option-text {
    color: var(--primary-dark);
    font-weight: 650;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1.15rem 1.75rem;
    background: #FFFCF8;
    border-top: 1px solid var(--border);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    min-height: 48px;
}

.btn-nav .btn-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-nav:hover .btn-icon {
    transform: translateX(3px);
}

.btn-nav.btn-text:hover .btn-icon {
    transform: translateX(-3px);
}

/* =========================
   Results
   ========================= */
.results-page {
    background: var(--gradient-warm);
    padding-bottom: 3rem;
}

.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
}

.results-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 0.5rem;
}

.results-header > p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: var(--gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 28px rgba(224, 122, 61, 0.3);
}

.level-badge.level-principiante {
    background: linear-gradient(135deg, #2F9E6B, #3DB87F);
}

.level-badge.level-intermedio {
    background: var(--gradient);
}

.level-badge.level-avanzado {
    background: linear-gradient(135deg, #2F5D50, #E07A3D);
}

.chart-container {
    max-width: 420px;
    margin: 0 auto 1.75rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.level-description {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.level-description p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.route-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.route-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.route-step .num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.route-step h4 {
    margin-bottom: 0.35rem;
    font-size: 0.98rem;
}

.route-step p {
    margin: 0;
    font-size: 0.88rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.15rem;
    margin-bottom: 2.5rem;
}

.course-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(224, 122, 61, 0.35);
}

.course-image {
    height: 140px;
    background: linear-gradient(135deg, #E07A3D 0%, #F0B429 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.45);
}

.course-content {
    padding: 1.15rem 1.25rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    background: var(--secondary-soft);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-bottom: 0.7rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}

.course-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--text);
    line-height: 1.35;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: auto;
}

/* =========================
   Auth
   ========================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gradient-warm);
}

.auth-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--nav-height));
}

.auth-aside {
    background: linear-gradient(160deg, #2F5D50 0%, #3D7A69 50%, #E07A3D 130%);
    color: white;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-aside::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -100px;
    right: -80px;
}

.auth-aside-inner {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-aside h2 {
    color: white;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 1rem;
}

.auth-aside p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.75rem;
}

.auth-aside-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-aside-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.auth-aside-list li span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header .logo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
}

.auth-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-label,
.form-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 650;
    font-size: 0.88rem;
    color: var(--text);
}

.form-input,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    background: var(--bg);
    color: var(--text);
}

.form-input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-input::placeholder {
    color: #A39A8E;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.05rem;
    padding: 0.25rem;
    min-width: 36px;
    min-height: 36px;
}

.password-toggle:hover {
    color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-top: 0.35rem;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(224, 122, 61, 0.28);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-submit:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(196, 95, 36, 0.32);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.1rem;
    display: none;
}

.alert.show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-error,
.error-message {
    background: rgba(214, 69, 69, 0.1);
    color: #A83333;
    border: 1px solid rgba(214, 69, 69, 0.25);
}

.alert-success,
.success-message {
    background: rgba(47, 158, 107, 0.12);
    color: #1F7A52;
    border: 1px solid rgba(47, 158, 107, 0.28);
}

.auth-footer-links {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer-links a {
    color: var(--primary);
    font-weight: 700;
}

.auth-welcome-banner {
    background: var(--primary-soft);
    border: 1px solid rgba(224, 122, 61, 0.25);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--text);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-image {
        min-height: 320px;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .image-placeholder {
        min-height: 320px;
    }

    .auth-main {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2.75rem 0 2.5rem;
    }

    .hero-text {
        text-align: left;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 1rem 1.5rem;
    }

    .grid-3,
    .how-it-works-grid,
    .plans-preview,
    .testimonial-grid,
    .route-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .section {
        padding: 3.25rem 0;
    }

    .wizard-page {
        padding: 1rem 0 2rem;
    }

    .wizard-container {
        margin: 0 0.25rem;
        border-radius: var(--radius-md);
        min-height: auto;
    }

    .wizard-header {
        padding: 1rem 1.15rem;
    }

    .progress-container {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .wizard-content {
        padding: 1.25rem;
    }

    .wizard-footer {
        padding: 1rem 1.15rem;
        flex-direction: column-reverse;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .results-header h2 {
        font-size: 1.45rem;
    }

    .level-badge {
        font-size: 0.98rem;
        padding: 0.75rem 1.35rem;
    }

    .level-description {
        margin-left: 0;
        margin-right: 0;
    }

    .cta-box {
        padding: 2.25rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        background: var(--white);
        padding: 0.85rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

    .auth-container {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .floating-card {
        display: none;
    }
}

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

    .footer-links {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-chips {
        gap: 0.4rem;
    }

    .plan-price {
        font-size: 1.85rem;
    }
}

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