/* ==========================================================================
   1. VARIABLES DE DISEÑO (SISTEMA PREMIUM ORIGINAL)
   ========================================================================== */
:root {
    --primary: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1);
    --radius-lg: 16px;
}

[data-theme="dark"] {
    --bg-body: #020617;
    --bg-card: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --glass: rgba(15, 23, 42, 0.8);
}

/* ==========================================================================
   2. ESTILOS BASE (MEJORA: BLOQUEO DE CURSOR DE TEXTO)
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    transition: background 0.4s ease;
    /* Bloqueo de selección para parecer App */
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

/* Permitir selección solo en inputs y áreas de texto */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   3. NAVEGACIÓN (HEADER CON GLASSMORPHISM)
   ========================================================================== */
.header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__flex { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    letter-spacing: -1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav__list { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav__list a { text-decoration: none; color: var(--text-muted); font-weight: 600; transition: 0.3s; cursor: pointer; }
.nav__list a:hover { color: var(--primary); }

/* ==========================================================================
   4. HERO SECTION (REDiseñado con Gradientes Circulares)
   ========================================================================== */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(124, 58, 237, 0.1), transparent);
}

.hero h1 { font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 24px; letter-spacing: -2px; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

.search {
    display: flex; max-width: 600px; margin: 0 auto; background: var(--bg-card);
    padding: 10px; border-radius: 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
}

.search input { flex: 1; border: none; background: transparent; padding: 0 20px; font-size: 1rem; color: var(--text-main); outline: none; }

/* ==========================================================================
   5. GRID DE TARJETAS (CON MICRO-INTERACCIONES)
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; padding: 40px 0; }

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:hover { transform: translateY(-12px); border-color: var(--primary); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); }

.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary-gradient); opacity: 0; transition: 0.3s;
}
.card:hover::before { opacity: 1; }

.card__icon { font-size: 3rem; margin-bottom: 24px; display: block; }
.card__link { color: var(--primary); font-weight: 700; font-size: 0.9rem; }

/* ==========================================================================
   6. BOTÓN VOLVER (MEJORADO PROFESIONALMENTE)
   ========================================================================== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    cursor: pointer;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   7. SECCIÓN CONTACTO (REDiseño de 2 Columnas)
   ========================================================================== */
.contact__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    align-items: center;
}

.contact__text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form { display: flex; flex-direction: column; gap: 15px; }

.form__input {
    width: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--border);
    background: var(--bg-body); color: var(--text-main); font-family: inherit; font-size: 1rem;
}

/* ==========================================================================
   8. BOTONES PREMIUM
   ========================================================================== */
.btn { padding: 14px 28px; border-radius: 14px; font-weight: 700; cursor: pointer; border: none; transition: 0.3s; }

.btn--primary {
    background: var(--primary-gradient); color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover { box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5); transform: scale(1.05); }

.btn--full { width: 100%; }

/* ==========================================================================
    9. VISTA DE ARTÍCULO (MEJORA DE GRID DE PASOS)
   ========================================================================== */
.article { background: var(--bg-card); padding: 60px; border-radius: 24px; border: 1px solid var(--border); max-width: 900px; margin: 0 auto; }

.article__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step-box { background: var(--bg-body); padding: 24px; border-radius: 16px; border: 1px solid var(--border); }

.step-num {
    background: var(--primary); color: white; width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 0.8rem; margin-right: 12px;
}

@media (max-width: 900px) {
    .contact__box { grid-template-columns: 1fr; padding: 40px; }
    .hero h1 { font-size: 2.8rem; }
}