/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #0f172a;
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --card: #ffffff;
    --muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --radius: 14px;
    --transition: 0.3s ease;
    --bg-dark: #0b1029;
}

/* DARK MODE */
[data-theme="dark"] {
    --bg: #020617;
    --bg-dark: #f8fafc;
    /*--bg-alt: #020617;*/
    --bg-alt: #0b1029;
    --text: #e5e7eb;
    --card: #0f172a;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

/* =====================================================
   RESET & BASE
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--bg-dark);
    padding: 0;
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 4rem 2rem;
}

.section {
    min-height: 100vh;
    background: var(--bg);
}

.section.alt {
    background: var(--bg-alt);
}

/* =====================================================
   HEADER / NAVBAR
===================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

/* =====================================================
   HEADER SCROLL BEHAVIOR
===================================================== */

/* Altura normal */
.site-header {
    /* --header-height: 72px; */
    --header-height: 60px;
}

/* Altura cuando se hace scroll */
.site-header.scrolled {
    /* --header-height: 56px; */
    --header-height: 40px;
}

/* Aplicar altura */
.site-header .nav {
    height: var(--header-height);
    transition: height 0.25s ease;
}

/* Reducir logo y botones */
.site-header.scrolled .logo {
    font-size: 1.2rem;
}

.site-header.scrolled .btn {
    padding: 0.6rem 1.2rem;
}

/* FIX ANCHORS FOR STICKY HEADER */
section[id] {
    scroll-margin-top: 80px;
}

[data-theme="dark"] .site-header {
    background: rgba(2, 6, 23, 0.9);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.menu {
    display: flex;
    gap: 1.5rem;
}

.menu a {
    font-weight: 500;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.menu a:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* =====================================================
   HERO
===================================================== */
.hero {
    text-align: center;
    padding: 6rem 2rem;
}

.badge {
    display: inline-block;
    background: rgba(109, 40, 217, 0.12);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1,
.hero h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text {
    max-width: 720px;
    margin: auto;
    font-size: 1.1rem;
    color: var(--muted);
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* =====================================================
   TABS
===================================================== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: auto;
    margin-bottom: 4rem;
}

.tabs {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    opacity: 0.7;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    opacity: 1;
}

.tabs-content {
    padding: 3rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}


/* =====================================================
   BUTTONS
===================================================== */
.btn {
    padding: 0.85rem 1.7rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

/* =====================================================
   CONTENT SECTIONS
===================================================== */
.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    align-items: center;
}

.two-columns.reverse {
    direction: rtl;
}

.two-columns.reverse>* {
    direction: ltr;
}

.checklist li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* =====================================================
   CARDS / PLANS
===================================================== */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition);
}

.card:hover {
    transform: translateY(-6px);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}


/* =====================================================
   VISUAL BLOCK
===================================================== */
.visual-card {
    background: var(--card);
    padding: 4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .08);
    text-align: center;
    font-size: 1.2rem;
}

/* =====================================================
   FORMS
===================================================== */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

input,
textarea {
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--text);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .container {
        padding: 3rem 1.5rem;
    }
}