/* =============================================
   DENTALOGIC — Premium Dental Clinic CSS
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0F1E35;
  --blue:   #1B3A6B;
  --teal:   #4FC3C3;
  --gold:   #F5A623;
  --cream:  #FAFAF8;
  --muted:  #6B7280;
  --serif:  'Cormorant Garamond', serif;
  --sans:   'Plus Jakarta Sans', sans-serif;
  /* compatibilidad interna */
  --navy2:  #1B3A6B;
  --teal2:  #3AAFAF;
  --gold2:  #D4901E;
  --white:  #FAFAF8;
  --gray:   #6B7280;
  --light:  #F2F0EA;
  --text:   #0F1E35;
  --radius: 4px;
  --shadow: 0 8px 32px rgba(15,30,53,.12);
  --trans:  all .28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; }

a { text-decoration: none; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s ease, transform .2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--teal2); transform: translateY(-1px); }
.btn-primary.full { width: 100%; text-align: center; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,.5);
  transition: border-color .25s, background .25s;
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .3px;
  transition: var(--trans);
  border: 2px solid var(--gold);
}
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,168,76,.4); }

.btn-nav {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s ease;
}
.btn-nav:hover { background: var(--teal2); }

/* ─── SECTION HEADERS ─── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-sub { font-family: var(--sans); color: var(--muted); font-size: .95rem; max-width: 520px; margin: 16px auto 0; font-weight: 300; }

.gold-line {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 2px;
  margin: 0 auto;
}
.gold-line.left { margin: 0 0 24px; }

/* ─── LOGO ─── */
.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 52px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}
.logo-img--footer {
  height: 60px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}
.navbar.scrolled {
  background: rgba(15,30,53,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.3px;
}
.logo span { color: var(--teal); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--sans);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-inner .btn-nav { margin-left: 16px; flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--trans);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--trans);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu .btn-nav { text-align: center; margin-top: 8px; }
.mobile-menu.open { display: flex; }

/* ─── HERO ─── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: -8%;
  z-index: 0;
  will-change: transform;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,20,45,.88) 0%, rgba(15,30,53,.55) 60%, rgba(15,30,53,.4) 100%);
  z-index: 1;
}
/* Fallback cuando no hay imagen */
.hero-bg:not(:has(img[src])) { background: linear-gradient(160deg, #0A141D 0%, #0F1E35 100%); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 820px;
}
.hero-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(79,195,195,.35);
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  padding: 14px 36px;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s ease, transform .2s ease;
}
.btn-hero-primary:hover { background: var(--teal2); transform: translateY(-2px); }

.btn-hero-outline {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 14px 36px;
  border-radius: 2px;
  border: 1.5px solid rgba(255,255,255,.45);
  font-family: var(--sans);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .25s ease, background .25s ease;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Animaciones de entrada hero */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { opacity: 0; animation: fadeUp .7s ease forwards; animation-delay: .3s; }
.anim-2 { opacity: 0; animation: fadeUp .7s ease forwards; animation-delay: .5s; }
.anim-3 { opacity: 0; animation: fadeUp .7s ease forwards; animation-delay: .75s; }
.anim-4 { opacity: 0; animation: fadeUp .7s ease forwards; animation-delay: .95s; }

/* Reveal al scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

@keyframes scrollDot { 0%,100%{top:6px;opacity:1} 50%{top:18px;opacity:.3} }

/* ─── STATS ─── */
.stats {
  background: var(--navy);
  padding: 48px 0;
}
.stats .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  text-align: center;
  font-weight: 500;
  letter-spacing: .3px;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,.12);
}

/* ─── SERVICES ─── */
.services {
  padding: 110px 0;
  background: var(--cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1.5px solid #E8E6E0;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 0;
  background: var(--teal);
  transition: height .4s ease;
  z-index: 1;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,30,53,.1); }
.service-card:hover::before { height: 100%; }
.service-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #d8eef5, #e8f4f8);
}
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }
.service-img.placeholder-img { background: linear-gradient(135deg, #c8e4f0, #b0d8ec); }
.service-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(15,30,53,.82);
  color: var(--teal);
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 16px;
  text-align: center;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  margin: 22px 28px 10px;
  line-height: 1.2;
}
.service-card p {
  font-family: var(--sans);
  font-size: .87rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  padding: 0 28px 28px;
}
/* Detalle de servicios */
.services-detail {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-detail-item {
  padding: 28px 32px;
  background: #fff;
  border: 1.5px solid #E8E6E0;
  border-left: 3px solid var(--teal);
  border-radius: 2px;
}
.service-detail-item h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-detail-item p {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── ABOUT / NUESTRA CLÍNICA ─── */
.about {
  padding: 110px 0;
  background: var(--navy);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}
.about-content p {
  font-family: var(--sans);
  font-weight: 300;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
  font-size: .92rem;
  line-height: 1.8;
}
.btn-about {
  display: inline-block;
  margin-top: 8px;
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 12px 32px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.btn-about:hover { background: var(--teal); color: var(--navy); }
.about-image {
  border-radius: 2px;
  overflow: hidden;
  height: 480px;
  background: linear-gradient(135deg, #112040, #0d2a50);
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-image.placeholder-about {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2); font-size: .85rem;
}

/* ─── DOCTOR SECTION ─── */
.doctor {
  padding: 110px 0;
  background: var(--cream);
}
.doctor-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.doctor-text .section-eyebrow { color: var(--teal); }
.doctor-text h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--navy);
  margin: 12px 0 20px;
}
.doctor-text h2 em { font-style: italic; color: var(--teal); }
.doctor-text p {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 16px;
  font-size: .92rem;
  line-height: 1.8;
}
.doctor-photo {
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,30,53,.12);
  background: #e8f4f8;
}
.doctor-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.doctor-photo.placeholder-doctor {
  height: 500px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem;
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  padding: 110px 0;
  background: #F2F0EA;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.testimonial-card {
  background: #fff;
  border: 1.5px solid #E8E6E0;
  border-radius: 2px;
  padding: 36px 28px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.testimonial-card:hover { box-shadow: 0 12px 40px rgba(15,30,53,.08); transform: translateY(-3px); }
.testimonial-card.featured {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 20px 56px rgba(15,30,53,.22);
}
.testimonial-card.featured .stars { color: var(--gold); }
.testimonial-card.featured p { color: rgba(255,255,255,.75); }
.testimonial-card.featured strong { color: #fff; }
.testimonial-card.featured span { color: var(--teal); }
.stars {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 3px;
}
.testimonial-card > p {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--navy);
  font-weight: 600;
}
.testimonial-author span {
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--teal);
  font-weight: 400;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--navy);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(79,195,195,.15);
  border-bottom: 1px solid rgba(79,195,195,.15);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,195,195,.08) 0%, transparent 65%);
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  line-height: 1.12;
}
.cta-banner p {
  font-family: var(--sans);
  font-weight: 300;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  margin-bottom: 40px;
  position: relative;
}
.btn-gold {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  padding: 14px 40px;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .25s ease, transform .2s ease;
  position: relative;
}
.btn-gold:hover { background: var(--teal2); transform: translateY(-2px); }

/* ─── CONTACT ─── */
.contact {
  padding: 110px 0;
  background: var(--navy);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}
.contact-info .section-eyebrow { color: var(--teal); }
.contact-info .gold-line { margin: 0 0 28px; }
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--teal);
}
.contact-item strong {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--teal);
  margin-bottom: 3px;
}
.contact-item span {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}
.map-wrap { margin-top: 28px; border-radius: 2px; overflow: hidden; }
.contact-form {
  background: #fff;
  border-radius: 2px;
  padding: 44px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.contact-form h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.2;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E8E6E0;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  transition: border-color .2s ease;
  outline: none;
  appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form select { cursor: pointer; color: var(--muted); }
.contact-form select:valid { color: var(--text); }

/* ─── FOOTER ─── */
.footer { background: #0A1422; padding: 80px 0 0; border-top: 1px solid rgba(79,195,195,.1); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand p {
  font-family: var(--sans);
  font-weight: 300;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
  line-height: 1.75;
  margin: 16px 0 24px;
  max-width: 260px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  transition: border-color .25s, color .25s;
}
.social-links a svg { width: 15px; height: 15px; }
.social-links a:hover { border-color: var(--teal); color: var(--teal); }
.footer-links h4,
.footer-contact h4 {
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-family: var(--sans);
  font-weight: 300;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--teal); }
.footer-contact p {
  font-family: var(--sans);
  font-weight: 300;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  line-height: 1.75;
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 300;
  color: rgba(255,255,255,.25);
}

/* ─── LANG BUTTON ─── */
.btn-lang {
  display: inline-block;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: 5px 10px;
  transition: var(--trans);
  margin-left: auto;
}
.btn-lang:hover { color: var(--teal); border-color: var(--teal); }

/* ─── GALLERY ─── */
.gallery {
  padding: 100px 0;
  background: var(--navy);
}
.gallery .section-header h2 { color: #fff; }
.gallery .section-sub { color: rgba(255,255,255,.5); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--navy2);
}
.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #112040, #0d2a50);
}
.gallery-item.placeholder::after {
  content: 'Sube tu foto aquí';
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  font-weight: 500;
}
.gallery-item.placeholder img { display: none; }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,180,216,.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.gallery-overlay svg { width: 44px; height: 44px; opacity: 0; transition: var(--trans); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay { background: rgba(10,22,40,.55); }
.gallery-item:hover .gallery-overlay svg { opacity: 1; }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
#lbCaption {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  margin-top: 14px;
  font-weight: 500;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  opacity: .7;
  transition: var(--trans);
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; transform: scale(1.15); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--teal); border-color: var(--teal); }

/* ─── MAP ─── */
.map-wrap {
  margin-top: 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(10,22,40,.1);
}

/* ─── FORM STATUS ─── */
.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  text-align: center;
}
.form-status.success {
  display: block;
  background: rgba(0,180,216,.1);
  color: var(--teal2);
  border: 1px solid rgba(0,180,216,.25);
}
.form-status.error {
  display: block;
  background: rgba(220,50,50,.08);
  color: #c0392b;
  border: 1px solid rgba(220,50,50,.2);
}
.form-group { width: 100%; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-detail { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-image { max-width: 480px; margin: 0 auto; height: 300px; }
  .doctor-inner { grid-template-columns: 1fr; gap: 48px; }
  .doctor-photo { max-width: 480px; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .nav-inner .btn-nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-inner { padding: 12px 20px; }
  .logo-name { font-size: 1.1rem; }
  .logo-tagline { display: none; }
  .hero { height: 100svh; min-height: 500px; }
  .hero-content h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .services-grid { grid-template-columns: 1fr; }
  .services-detail { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card.featured { transform: none; }
  .contact-form { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ═══════════════════════════════════════════
   ─── MODO ADMINISTRADOR ───
   ═══════════════════════════════════════════ */

/* Barra de admin */
#admin-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #1a1a2e;
  border-bottom: 2px solid var(--teal);
  padding: 0 24px;
  height: 52px;
}
.admin-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-badge {
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .5px;
  white-space: nowrap;
}
.admin-hint {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  flex: 1;
}
.admin-actions {
  display: flex;
  gap: 8px;
}
.admin-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--trans);
  white-space: nowrap;
}
.admin-btn--save {
  background: var(--teal);
  color: #fff;
}
.admin-btn--save:hover { background: var(--teal2); }
.admin-btn--export {
  background: var(--gold);
  color: var(--navy);
}
.admin-btn--export:hover { background: var(--gold2); }
.admin-btn--exit {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
}
.admin-btn--exit:hover { background: rgba(255,255,255,.2); color: #fff; }

/* Cuando admin está activo — empujar contenido */
body.admin-active .navbar { top: 52px; }
body.admin-active .hero  { margin-top: calc(68px + 52px); }

/* Elementos editables */
.admin-editable {
  outline: 1.5px dashed rgba(0,180,216,.5) !important;
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text !important;
  min-width: 20px;
  transition: outline .15s ease;
}
.admin-editable:hover {
  outline: 2px dashed var(--teal) !important;
  background: rgba(0,180,216,.05) !important;
}
.admin-editable:focus {
  outline: 2px solid var(--teal) !important;
  background: rgba(0,180,216,.08) !important;
  border-radius: 4px;
}
