/* ==========================================================================
   ELYSIUM MEDICINA ESTÉTICA - MODERN LUXURY DESIGN SYSTEM (LAYOUT #5)
   ========================================================================== */

:root {
    --bg-primary: #0F0D0E;
    --bg-secondary: #181416;
    --bg-card: #221D20;
    --bg-card-hover: #2C262A;
    --text-primary: #FDFBF7;
    --text-secondary: #E2D9DC;
    --text-muted: #A3969A;
    
    --accent-rose: #E8B4B8;
    --accent-rose-hover: #F2C4C8;
    --accent-gold: #D4AF37;
    
    --border-color: rgba(232, 180, 184, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --font-headers: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    
    --shadow-rose: 0 10px 30px rgba(232, 180, 184, 0.25);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-card: 16px;
    --radius-btn: 30px;
}

body.light-theme {
    --bg-primary: #FAF6F0;
    --bg-secondary: #FFFFFF;
    --bg-card: #F3ECE2;
    --bg-card-hover: #E8DFC5;
    --text-primary: #211B1D;
    --text-secondary: #4A3E43;
    --text-muted: #7A6970;
    --border-subtle: rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* HEADER NAV */
.main-header { position: sticky; top: 0; z-index: 1000; background: rgba(15, 13, 14, 0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-subtle); }
.header-container { max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; flex-direction: column; }
.logo-serif { font-family: var(--font-headers); font-size: 2rem; font-weight: 700; color: var(--accent-rose); letter-spacing: 3px; line-height: 1; }
.logo-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 2px; color: var(--text-muted); }
.nav-menu ul { display: flex; list-style: none; gap: 1.5rem; }
.nav-menu a { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); transition: var(--transition-fast); }
.nav-menu a:hover { color: var(--accent-rose); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-whatsapp-btn { background: var(--accent-rose); color: #0F0D0E; padding: 0.55rem 1.4rem; border-radius: var(--radius-btn); font-weight: 700; font-size: 0.85rem; box-shadow: var(--shadow-rose); transition: var(--transition-fast); }
.nav-whatsapp-btn:hover { background: var(--accent-rose-hover); transform: translateY(-2px); }
.theme-btn, .mobile-menu-btn { background: none; border: 1px solid var(--border-subtle); color: var(--text-primary); padding: 0.4rem 0.7rem; border-radius: 8px; cursor: pointer; }
.mobile-menu-btn { display: none; }

/* HERO ELYSIUM */
.hero-aesthetic-section { position: relative; padding: 6rem 1.5rem; min-height: 85vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(rgba(15, 13, 14, 0.8), rgba(15, 13, 14, 0.95)), url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; text-align: center; }
.hero-content-box { max-width: 950px; z-index: 2; }
.hero-luxury-tag { display: inline-block; background: rgba(232, 180, 184, 0.15); border: 1px solid var(--accent-rose); color: var(--accent-rose); padding: 0.4rem 1.2rem; border-radius: 30px; font-size: 0.82rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 1.5rem; text-transform: uppercase; }
.hero-content-box h1 { font-family: var(--font-headers); font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 600; line-height: 1.05; margin-bottom: 1.2rem; color: #FFFFFF; }
.hero-content-box p { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--text-secondary); margin-bottom: 3rem; max-width: 780px; margin-left: auto; margin-right: auto; }
.hero-action-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 0 auto; }
.action-card-item { background: rgba(34, 29, 32, 0.85); backdrop-filter: blur(12px); border: 1px solid var(--border-color); padding: 1.8rem; border-radius: var(--radius-card); text-align: left; }
.card-num { font-family: var(--font-headers); font-size: 2.2rem; color: var(--accent-rose); font-weight: 700; display: block; line-height: 1; margin-bottom: 0.4rem; }
.action-card-item h4 { font-family: var(--font-headers); font-size: 1.4rem; margin-bottom: 0.4rem; }
.action-card-item p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.card-link { font-size: 0.85rem; font-weight: 700; color: var(--accent-rose); }

/* STATS BAR */
.stats-bar-section { background: var(--bg-secondary); border-y: 1px solid var(--border-subtle); padding: 2.5rem 1.5rem; }
.stats-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.stat-number { font-family: var(--font-headers); font-size: 2.6rem; font-weight: 700; color: var(--accent-rose); display: block; line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* DIAGNÓSTICO FACIAL */
.section-title-container { text-align: center; margin-bottom: 3.5rem; }
.section-subtitle { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-rose); display: block; margin-bottom: 0.3rem; }
.section-title-container h2 { font-family: var(--font-headers); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; }
.title-underline { width: 50px; height: 2px; background: var(--accent-rose); margin: 0.8rem auto 0; }

.diag-section { background: var(--bg-primary); padding: 6rem 1.5rem; }
.diag-card-wrapper { max-width: 1050px; margin: 0 auto; }
.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.diag-controls { background: var(--bg-card); padding: 2.2rem; border-radius: var(--radius-card); border: 1px solid var(--border-subtle); }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-secondary); }
.input-group select { width: 100%; padding: 0.85rem 1rem; background: var(--bg-primary); border: 1px solid var(--border-subtle); border-radius: 10px; color: #FFFFFF; font-size: 0.95rem; font-family: var(--font-body); }

.diag-results-box { background: linear-gradient(145deg, #221D20 0%, #0F0D0E 100%); border: 2px solid var(--accent-rose); padding: 2.5rem; border-radius: var(--radius-card); box-shadow: var(--shadow-rose); }
.diag-results-box h3 { font-family: var(--font-headers); font-size: 1.8rem; color: var(--accent-rose); margin-bottom: 1.8rem; }
.res-item { background: rgba(0,0,0,0.4); padding: 1.2rem; border-radius: 12px; margin-bottom: 1rem; border-left: 4px solid var(--accent-rose); }
.res-lbl { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }
.res-val { font-size: 1.15rem; font-weight: 700; color: #FFFFFF; }
.rose-text { color: var(--accent-rose); }

.cta-button { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.8rem; border-radius: var(--radius-btn); font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition-fast); }
.cta-button.rose { background: var(--accent-rose); color: #0F0D0E; box-shadow: var(--shadow-rose); }
.cta-button.rose:hover { background: var(--accent-rose-hover); transform: translateY(-2px); }
.cta-button.primary { background: var(--accent-rose); color: #0F0D0E; }
.full-width { width: 100%; }
.text-center { text-align: center; }

/* TRATAMIENTOS GRID */
.treatments-section { padding: 6rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.treatments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.treatment-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; transition: var(--transition-fast); }
.treatment-card:hover { border-color: var(--accent-rose); transform: translateY(-6px); }
.photo-box { position: relative; height: 240px; }
.photo-box img { width: 100%; height: 100%; }
.photo-tag { position: absolute; top: 1rem; left: 1rem; background: rgba(15, 13, 14, 0.85); backdrop-filter: blur(8px); color: var(--accent-rose); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--accent-rose); }
.card-details { padding: 2rem 1.8rem; }
.card-details h3 { font-family: var(--font-headers); font-size: 1.7rem; margin-bottom: 0.6rem; }
.card-details p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.check-list { list-style: none; font-size: 0.85rem; color: var(--text-secondary); display: flex; flex-direction: column; gap: 0.4rem; }

/* PROCESS STEPS */
.process-section { background: var(--bg-secondary); padding: 6rem 1.5rem; }
.process-steps-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step-card { background: var(--bg-card); padding: 2rem 1.5rem; border-radius: var(--radius-card); border: 1px solid var(--border-subtle); border-top: 3px solid var(--accent-rose); }
.step-number { font-family: var(--font-headers); font-size: 2.2rem; font-weight: 700; color: var(--accent-rose); display: block; margin-bottom: 0.5rem; }
.step-card h3 { font-family: var(--font-headers); font-size: 1.4rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; color: var(--text-muted); }

/* COMPARISON TABLE */
.comparison-section { padding: 6rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.table-responsive { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-subtle); }
.comparison-table th, .comparison-table td { padding: 1.2rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border-subtle); font-size: 0.9rem; }
.comparison-table th { background: rgba(232, 180, 184, 0.15); color: var(--accent-rose); font-family: var(--font-headers); font-size: 1.1rem; }
.comparison-table td { color: var(--text-secondary); }

/* STAFF MÉDICO */
.staff-section { background: var(--bg-secondary); padding: 6rem 1.5rem; }
.staff-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.staff-card { background: var(--bg-card); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-subtle); }
.staff-card img { width: 100%; height: 280px; }
.staff-info { padding: 1.8rem; }
.staff-info h3 { font-family: var(--font-headers); font-size: 1.6rem; margin-bottom: 0.2rem; }
.staff-role { display: block; color: var(--accent-rose); font-weight: 700; font-size: 0.82rem; margin-bottom: 0.8rem; }
.staff-info p { font-size: 0.88rem; color: var(--text-muted); }

/* FAQ GRID */
.faq-section { padding: 6rem 1.5rem; max-width: 1050px; margin: 0 auto; }
.faq-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden; }
.faq-item summary { padding: 1.2rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-answer { padding: 0 1.2rem 1.2rem 1.2rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* FLOATING WHATSAPP */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; background: #25D366; color: #FFFFFF; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); z-index: 9999; }
.whatsapp-icon { width: 32px; height: 32px; }

/* FOOTER */
footer { background: #0A0809; padding: 4rem 1.5rem 2rem 1.5rem; color: var(--text-secondary); }
.footer-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand h3 { font-family: var(--font-headers); color: var(--accent-rose); font-size: 1.8rem; }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 900px) { .hero-action-cards, .diag-grid, .staff-grid, .faq-grid-container { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .mobile-menu-btn { display: block; } .nav-menu { position: fixed; top: 65px; left: 0; right: 0; background: var(--bg-card); padding: 2rem; display: none; } .nav-menu.active { display: block; } .nav-menu ul { flex-direction: column; align-items: center; } }
