/* ============================================
   DESIGN SYSTEM — Dr. Carlos Ornelas
   Palette: Black | Gold | White
   ============================================ */
:root {
    --bg-dark: #050505;
    --bg-mid: #0a0a0a;
    --card-bg: #111111;
    --card-border: #1e1e1e;
    --gold: #D4AF37;
    --gold-light: #F2D16B;
    --gold-dark: #A8892C;
    --gradient-gold: linear-gradient(135deg, #A8892C 0%, #D4AF37 40%, #F2D16B 60%, #D4AF37 100%);
    --text-white: #FFFFFF;
    --text-gray: #8a8a8a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.35s ease;
    --radius: 12px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-dark); color: var(--text-white); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === UTILS === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.gold-text { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--text-white); margin-bottom: 18px; }
.section-title .subtitle { max-width: 600px; margin: 0 auto; color: var(--text-gray); }
.section-cta { text-align: center; margin-top: 50px; }

/* === BUTTON === */
.btn {
    display: inline-block;
    padding: 16px 38px;
    background: var(--gradient-gold);
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35); }
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    padding: 14px 36px;
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.08); }

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { height: 55px; width: auto; }

/* === HERO === */
.hero {
    padding-top: 88px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('hero-bg.jpg') center/cover no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5,5,5,0.96) 0%, rgba(5,5,5,0.75) 60%, rgba(5,5,5,0.5) 100%);
}
.hero-content {
    position: relative;
    max-width: 780px;
    padding: 80px 0;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); color: #fff; margin-bottom: 24px; }
.hero p { font-size: 1.15rem; color: var(--text-gray); max-width: 560px; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* === SECTIONS === */
.section-dark { padding: 100px 0; background: var(--bg-mid); }
.section-light { padding: 100px 0; background: var(--bg-dark); }

/* === PAIN CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.pain-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 35px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gradient-gold);
    transition: height 0.4s ease;
}
.pain-card:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.3); }
.pain-card:hover::before { height: 100%; }
.pain-icon { font-size: 2rem; margin-bottom: 16px; }
.pain-card h3 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--gold); margin-bottom: 12px; }
.pain-card p { color: var(--text-gray); font-size: 0.95rem; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; align-items: center; }
.about-image-wrap { position: relative; }
.about-image {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    border: 2px solid var(--card-border);
}
.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}
.badge-number { font-size: 2rem; display: block; line-height: 1; }
.badge-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.about-content h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); color: #fff; margin-bottom: 24px; }
.about-content > p { color: var(--text-gray); margin-bottom: 35px; }
.method-steps { display: flex; flex-direction: column; gap: 22px; margin-bottom: 40px; }
.method-step { display: flex; gap: 20px; align-items: flex-start; }
.step-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.method-step h4 { color: var(--gold); margin-bottom: 5px; font-size: 1rem; }
.method-step p { color: var(--text-gray); font-size: 0.9rem; }

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item[open] { border-color: rgba(212, 175, 55, 0.4); }
.faq-item summary {
    padding: 22px 28px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-white);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.5rem; flex-shrink: 0; transition: var(--transition); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 28px 22px; color: var(--text-gray); font-size: 0.95rem; }

/* === MAP === */
.map-container {
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    overflow: hidden;
    height: 450px;
}

/* === CTA BANNER === */
.section-cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}
.section-cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); color: #fff; margin-bottom: 18px; }
.section-cta-banner p { color: var(--text-gray); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* === FOOTER === */
footer { padding: 50px 0; background: #000; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 25px; text-align: center; }
.footer-links { display: flex; gap: 18px; }
.footer-icon { color: var(--gold); transition: var(--transition); }
.footer-icon:hover { color: var(--gold-light); transform: scale(1.1); }
.footer-copy { color: #444; font-size: 0.85rem; }

/* === FLOATING WHATSAPP === */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-wa 2.5s infinite;
}
.floating-wa:hover { transform: scale(1.1); }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 5px 40px rgba(37, 211, 102, 0.8); }
}

/* === ADMIN === */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.admin-card {
    background: var(--card-bg);
    padding: 45px 40px;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    width: 100%;
    max-width: 420px;
}
.admin-card h2 { color: var(--text-white); font-size: 1.6rem; }

/* === LOCATION === */
.location-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: stretch;
}

.location-info {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
}

.location-block {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.location-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-block h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.location-block p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.location-divider {
    height: 1px;
    background: var(--card-border);
    margin: 28px 0;
}

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.hours-day {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.hours-time {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-badge { right: 10px; }
    .location-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { text-align: center; }
    header .btn { display: none; }
    .floating-wa { bottom: 20px; right: 20px; }
}
