/* =========================================================================
   SISTEMA DE DISEÑO (Variables CSS para el Modo Oscuro Premium)
   ========================================================================= */
   :root {
    /* Paleta de Colores Biohacker/Clínico Oscuro */
    --bg-color: #0B1121; /* Azul espacio muy oscuro, menos cansador que el negro total */
    --text-main: #F1F5F9; /* Blanco apagado para lectura premium */
    --text-muted: #94A3B8; /* Gris azulado para subtítulos */
    
    /* Acentos vibrantes: Verdes bio (naturaleza + tecnología) */
    --accent-primary: #10B981; 
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.3);
    
    /* Configuración para el diseño Glassmorphism (Efecto Vidrio) */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Fuentes Premium */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* =========================================================================
   RESETEO BASE (Buenas prácticas de diseño)
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* Evita que la pantalla se mueva por los márgenes */
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en menú */
}

/* Tipografía de títulos */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em; /* Los títulos modernos son ligeramente más pegados */
}

/* Un brillo especial para palabras clave */
.highlight {
    color: var(--accent-primary);
    background: linear-gradient(to right, #34D399, #10B981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================================
   UTILIDADES (Clases reutilizables)
   ========================================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-5 { margin-bottom: 3rem; }

/* Article Content - Lumbalgia */
.hero-secondary {
    padding: 80px 0 40px 0;
}
.article-content {
    padding: 40px 0 80px 0;
}
.article-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}
.article-content h3 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}
.article-content p {
    color: var(--text-main);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}
.article-content strong {
    color: white;
}
.practical-tools-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 2rem;
}
.practical-tools-list li {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.1rem;
}
.practical-tools-list li strong {
    color: var(--accent-primary);
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* =========================================================================
   BARRA DE NAVEGACIÓN (Header flotante)
   ========================================================================= */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(11, 17, 33, 0.7);
    backdrop-filter: blur(12px); /* El efecto de vidrio detrás del texto */
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}
.logo span {
    color: var(--accent-primary);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-primary);
}

/* =========================================================================
   SISTEMA DE BOTONES (Micro-animaciones incluidas)
   ========================================================================= */
.btn-primary, .btn-primary-outline, .btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}
.btn-primary {
    background-color: var(--accent-primary);
    color: #042f2e; /* Un verde oscuro para buen contraste de lectura */
    border: none;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px); /* Se levanta un poquito al pasar el mouse */
    box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}
.btn-primary-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

/* =========================================================================
   HERO SECTION (La portada de tu casa)
   ========================================================================= */
.hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    /* Un gradiente oscuro detrás que simula la profundidad de la noche */
    background: radial-gradient(circle at center top, rgba(16, 185, 129, 0.05), transparent 60%);
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
}
.badge {
    background: var(--glass-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: inline-block;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}
.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.stats {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: left;
    max-width: 150px;
}

/* Bolitas de Luz Decorativas (Orbes) */
.glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none; /* Que el mouse pase a través de ellos */
}
.orb-1 { top: -150px; left: -150px; opacity: 0.6; }
.orb-2 { bottom: 0; right: -200px; opacity: 0.3; }

/* =========================================================================
   PILARES DE CONTENIDO (Tarjetas Glassmorphism)
   ========================================================================= */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.pillars {
    padding: 100px 0;
    position: relative;
    /* Una línea de separación sutil usando gradientes */
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(16, 185, 129, 0.015) 100%);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grilla con Flexbox inteligente: se acomoda solita al tamaño de la pantalla */
.pillar-grid {
    display: grid;
    /* Auto-fit dice: Si hay espacio mete más columnas, sino apilalas */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.pillar-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.pillar-icon {
    font-size: 2.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}
.pillar-card h3 {
    color: white;
    font-size: 1.4rem;
}
.pillar-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* =========================================================================
   NEWSLETTER E INVITACIÓN AL LEAD MAGNET
   ========================================================================= */
.newsletter-cta {
    padding: 100px 0 120px 0;
}
.cta-card {
    text-align: center;
    padding: 5rem 3rem;
    /* Un fondo más cálido/vibrante para llamar la atención en la suscripción */
    background: linear-gradient(135deg, rgba(8, 15, 30, 0.6) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.cta-card h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1rem;
}
.cta-card p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.15rem;
}
.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 550px;
    margin: 0 auto 1.5rem auto;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 1.1rem 1.5rem;
    border-radius: 10px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.micro-text {
    font-size: 0.85rem !important;
    opacity: 0.5;
    margin-bottom: 0 !important;
}

/* =========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================= */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    background: rgba(0,0,0,0.2);
}
.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* =========================================================================
   NUEVAS SECCIONES Y EFECTOS (Sobre Mí & Animaciones)
   ========================================================================= */
/* Animaciones al Scroll */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sobre Mí */
.about {
    padding: 100px 0;
    position: relative;
}
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}
.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    background: var(--glass-bg);
}
.image-wrapper img {
    width: 100%;
    max-width: 400px;
    display: block;
    mix-blend-mode: screen;
}
.orb-small {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}
.about-text {
    flex: 1;
}
.about-text h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
}
.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.mt-3 {
    margin-top: 1.5rem;
}

/* Menú Móvil Botón */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================================
   ADAPTACIÓN PARA CELULARES (Responsive Design)
   ========================================================================= */
@media (max-width: 900px) {
    .hero h1 { font-size: 3.5rem; }
    .about-container { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 17, 33, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.8rem; }
    .newsletter-form { flex-direction: column; }
    .hero-actions { flex-direction: column; }
    .cta-card { padding: 3rem 1.5rem; }
    .cta-card h2 { font-size: 2rem; }
}
