/* ==========================================================================
   PREMIUM DARK MODE OVERRIDES & NEW UTILITIES
   ========================================================================== */

/* Global Redefinitions */
:root {
    /* Premium Dark Core */
    --bg-main: #06080b;      /* Very dark background */
    --bg-light: #0d1117;     /* Slightly lighter for cards/sections */
    --bg-white: #06080b;     /* Overriding bg-white to be dark */
    
    --navy-blue: #090c10;    
    --navy-light: #161b22;
    --navy-lighter: #21262d;
    
    --pharmacy-green: #0c8c6c; /* Elegant Emerald */
    --pharmacy-green-hover: #0fa37e;
    
    --luxury-gold: #cba864;    /* Refined muted gold */
    --luxury-gold-hover: #e0c082;
    
    --text-pure: #ffffff;
    --text-white: #e6ebf1;
    --text-dark: #b8c2d1;      /* Overriding dark text to light gray */
    --text-gray: #8c9eb5;      /* Incrementado el brillo por accesibilidad (antes #7a8a9e) */
    
    --error-red: #d35a5a;
    
    /* New Glassmorphism & Effects */
    --glass-bg: rgba(22, 27, 34, 0.4);
    --glass-border: rgba(203, 168, 100, 0.12); /* Subtle Gold tinted border */
    --glow-emerald: 0 0 25px rgba(12, 140, 108, 0.25);
    --glow-gold: 0 0 30px rgba(203, 168, 100, 0.2);
}

/* Base Overrides for Dark Mode */
body {
    background-color: var(--bg-main) !important;
    color: var(--text-dark) !important;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-pure) !important;
    letter-spacing: -0.02em;
}

/* Force overrides on hardcoded colors in old styles.css */
.bg-light, .pain-points, .lead-magnet-wrapper, .book-mini {
    background-color: var(--bg-light) !important;
    border-color: rgba(255,255,255,0.05) !important;
}

.time-impact, .testimonial-card, .warning-box {
    background-color: var(--navy-light) !important;
}

.warning-box {
    border-color: var(--luxury-gold) !important;
}

/* Buttons Premium Styling */
.btn {
    border-radius: 8px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem !important;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pharmacy-green), #086a51) !important;
    box-shadow: 0 10px 20px rgba(12, 140, 108, 0.2) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.btn-primary:hover {
    box-shadow: var(--glow-emerald) !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent !important;
    border: 1px solid var(--luxury-gold) !important;
    color: var(--luxury-gold) !important;
}

.btn-secondary:hover {
    background: rgba(203, 168, 100, 0.1) !important;
    box-shadow: var(--glow-gold) !important;
}

/* --- NEW INDEX/HERO CLASSES --- */

/* Hero Premium Redesign */
.premium-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    background: radial-gradient(circle at 15% 50%, rgba(12, 140, 108, 0.12), transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(203, 168, 100, 0.08), transparent 40%);
}

.premium-hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(203,168,100,0.3), transparent);
}

.premium-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.premium-kicker {
    color: var(--luxury-gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: rgba(203, 168, 100, 0.05);
}

.premium-hero-text h1 {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.premium-hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.premium-hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Modern Photo Treatment */
.premium-portrait {
    position: relative;
}

.premium-portrait-img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: block;
    border-radius: 24px;
    filter: contrast(105%) brightness(1.05);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 20px rgba(203, 168, 100, 0.1);
    border: 1px solid rgba(203, 168, 100, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-portrait-img:hover {
    filter: contrast(110%) brightness(1.1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.7), 0 0 30px rgba(203, 168, 100, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.portrait-note {
    position: absolute;
    left: -2rem;
    bottom: 2rem;
    z-index: 10;
    max-width: 280px;
    background: rgba(22, 27, 34, 0.85); /* premium dark fallback */
    backdrop-filter: blur(12px);
    color: var(--text-pure);
    border-radius: 8px;
    padding: 1.15rem;
    box-shadow: 0 22px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(203,168,100,0.28);
}

.portrait-note strong {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 0.3rem;
}

.portrait-note span {
    color: var(--text-gray);
    font-size: 0.92rem;
}

.glow-orb-1, .glow-orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.glow-orb-1 {
    width: 300px; height: 300px;
    background: rgba(12, 140, 108, 0.4);
    top: -10%; right: 10%;
}

.glow-orb-2 {
    width: 250px; height: 250px;
    background: rgba(203, 168, 100, 0.3);
    bottom: -5%; left: 0%;
}

/* Premium Glass Panels (Replacing Soft/Idea Cards) */
.glass-panel {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease !important;
    overflow: hidden;
}

.glass-panel:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(203, 168, 100, 0.3) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255,255,255,0.02) !important;
}

.glass-panel i {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
    color: var(--pharmacy-green) !important;
    background: linear-gradient(135deg, var(--pharmacy-green), var(--luxury-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel h3 {
    color: var(--text-pure) !important;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.glass-panel p {
    color: var(--text-gray) !important;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Resource Panel Overhaul */
.premium-resource-panel {
    background: linear-gradient(135deg, var(--navy-light) 0%, #030406 100%) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    padding: 4rem !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6) !important;
}

.premium-resource-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--luxury-gold), transparent);
}

.premium-resource-number {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px rgba(203, 168, 100, 0.3);
    line-height: 1;
    text-align: center;
    text-shadow: var(--glow-gold);
}

/* Quote Band Premium */
.premium-quote-band {
    background: transparent !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    position: relative;
}
.premium-quote-band::before {
    content: '"';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    color: rgba(203, 168, 100, 0.05);
    font-family: serif;
    z-index: 0;
}
.premium-quote-text {
    font-family: var(--font-heading);
    font-size: 2.2rem !important;
    font-weight: 300 !important;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #ffffff, #a0aab8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 992px) {
    .premium-hero {
        padding-top: 8rem;
        min-height: auto;
    }
    .premium-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .premium-hero-text h1 {
        font-size: 2.8rem;
    }
    .premium-hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .premium-hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    .glow-orb-1, .glow-orb-2 { display: none; }
    .premium-resource-number { font-size: 5rem; }
    
    .premium-portrait {
        order: -1; /* Image first on tablet/mobile */
        margin-bottom: 2rem;
    }
    .premium-portrait-img {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .nav-logo { font-size: 0.85rem; letter-spacing: 1px; }
    .nav-links { gap: 0.5rem !important; }
    .nav-links a { font-size: 0.8rem !important; }
    .nav-links .btn { padding: 0.5rem 0.8rem !important; font-size: 0.8rem !important; }
    
    .premium-hero { padding-top: 6rem; }
    .premium-hero-text h1 { font-size: 2.2rem; }
    .premium-hero-text .subtitle { font-size: 1.1rem; }
    
    .portrait-note {
        position: relative !important;
        left: 0 !important;
        bottom: 0 !important;
        margin: -1rem auto 0 !important;
        max-width: 95% !important;
        z-index: 20;
        text-align: left;
    }
    
    .premium-resource-panel { padding: 2.5rem 2rem !important; }
    .premium-resource-number { font-size: 3.5rem; }
    .premium-quote-text { font-size: 1.4rem !important; }
    
    .glass-panel { padding: 2rem !important; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-links { justify-content: center; width: 100%; }
}

/* --- NEW ARTICLE/BLOG CLASSES --- */
.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 8rem 5% 4rem;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.article-date {
    color: var(--luxury-gold);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.article-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-body a {
    color: var(--luxury-gold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: var(--luxury-gold-hover);
    text-decoration-thickness: 2px;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2, .article-body h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-pure);
}

.article-body ul, .article-body ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.8rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--luxury-gold);
}

.navbar.scrolled {
    background: rgba(6, 8, 11, 0.95) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

/* --- ACCESSIBILITY --- */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible {
    outline: 2px solid var(--luxury-gold) !important;
    outline-offset: 4px;
}
