/* ===== CLÍNICA PRIME – SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  --black:       #0A0A0A;
  --dark:        #1A1A1A;
  --mid:         #3A3A3A;
  --gray:        #6B6B6B;
  --light-gray:  #E8E8E8;
  --ultra-light: #F5F5F5;
  --white:       #FFFFFF;
  --cream:       #FAF9F7;
  --gold:        #B8913A;
  --gold-light:  #D4A84B;
  --gold-pale:   #F5EDD8;
  --border:      #E0E0E0;
  --border-dark: #2A2A2A;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: 'DM Sans', sans-serif; color: var(--dark); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.15; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  background: rgba(10,10,10,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo-img { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); }
.logo-mark {
  width: 38px; height: 38px; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--gold);
}
.logo-wordmark { line-height: 1; }
.logo-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; letter-spacing: 3px; color: var(--white); font-weight: 400; }
.logo-tagline { font-size: 9px; letter-spacing: 2.5px; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 0 1.1rem; height: 68px; line-height: 68px;
  font-size: 13px; letter-spacing: 0.5px; color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav-links > li > a:hover { color: var(--white); }
.nav-links > li > a.active { color: var(--gold); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--dark); border: 1px solid var(--border-dark);
  min-width: 220px; opacity: 0; visibility: hidden;
  transition: all 0.2s; pointer-events: none;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; pointer-events: all; }
.dropdown a {
  display: block; padding: 10px 18px; font-size: 14px; color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--white); background: rgba(255,255,255,0.04); padding-left: 24px; }

.nav-cta {
  background: var(--gold); color: var(--black); padding: 9px 20px;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  margin-left: 1rem; transition: background 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-light); color: var(--black); }

.nav-mob-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-mob-btn span { width: 22px; height: 1.5px; background: var(--white); display: block; transition: all 0.3s; }

/* ── FOOTER ── */
footer { background: var(--black); border-top: 1px solid rgba(255,255,255,0.06); }
.footer-main {
  max-width: 1280px; margin: 0 auto; padding: 4rem 2rem 3rem;
  display: grid; grid-template-columns: 1.2fr 2fr 1fr 1fr; gap: 3rem;
}
.footer-logo-img { height: 48px; width: auto; display: block; margin-bottom: 0.5rem; filter: brightness(0) invert(1); }
.footer-brand .logo-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: 3px; color: var(--white); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1.8; margin-top: 1rem; max-width: 240px; }
.footer-social { display: flex; gap: 8px; margin-top: 1.5rem; }
.social-link {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.12); display: flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.4); transition: all 0.2s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col--especialidades ul { columns: 2; column-gap: 1.5rem; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 1.4rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.2); }
.footer-bottom a { color: var(--gold); }

/* ── SHARED COMPONENTS ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 12px; margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--black); }
.section-title em { font-style: italic; color: var(--gold); }
.section-title.light { color: var(--white); }

.btn-primary {
  display: inline-block; background: var(--black); color: var(--white); padding: 13px 28px;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  transition: all 0.2s; border: 1px solid var(--black); cursor: pointer;
}
.btn-primary:hover { background: var(--dark); }
.btn-gold {
  display: inline-block; background: var(--gold); color: var(--black); padding: 13px 28px;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  transition: all 0.2s; border: 1px solid var(--gold); cursor: pointer;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline-white {
  display: inline-block; border: 1px solid rgba(255,255,255,0.3); color: var(--white); padding: 13px 28px;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  transition: all 0.2s; background: transparent;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

/* ── SCROLL TOP ── */
#scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 100;
  width: 42px; height: 42px; background: var(--black); border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s;
}
#scroll-top.show { opacity: 1; }
#scroll-top:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* ── RESPONSIVE NAV & FOOTER ── */
@media (max-width: 960px) {
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: var(--black); flex-direction: column; align-items: flex-start;
    padding: 1.5rem 2rem 2rem; gap: 0; z-index: 199;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { height: auto; line-height: 1.4; padding: 0.9rem 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .dropdown {
    position: static; transform: none; background: rgba(255,255,255,0.03);
    border: none; border-left: 2px solid var(--gold); min-width: unset;
    opacity: 0; visibility: hidden; pointer-events: none;
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.2s;
    padding-left: 1rem;
  }
  .has-dropdown.mob-open .dropdown { opacity: 1; visibility: visible; pointer-events: all; max-height: 600px; }
  .dropdown a { padding: 0.6rem 0.5rem; border-color: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5); font-size: 13px; }
  .nav-cta { margin: 1.5rem 0 0; display: inline-block; }
  .mob-arrow { transition: transform 0.2s; display: inline-block; }
  .has-dropdown.mob-open .mob-arrow { transform: rotate(180deg); }
  .nav-mob-btn { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 580px) {
  .footer-main { grid-template-columns: 1fr; }
  html { font-size: 17px; }
  .section-label { font-size: 12px; }
  .btn-primary, .btn-gold, .btn-outline-white { font-size: 13px; padding: 14px 26px; }
  .footer-col a { font-size: 15px; }
  .footer-bottom p { font-size: 13px; }
}
