/* ============================================================
   MedikaPro · Clínica Dental
   Estética limpia tipo Apple · blanco / negro
   ============================================================ */

:root {
  --black: #0a0a0a;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --gray-2: #86868b;
  --line: #e5e5e7;
  --soft: #f5f5f7;
  --white: #ffffff;
  --accent: #0a0a0a;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease);
  white-space: nowrap;
}
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); opacity: .88; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--soft); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--black); }
.btn--light:hover { transform: translateY(-2px); opacity: .9; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--lg { font-size: 17px; padding: 14px 30px; }
.btn--full { width: 100%; }

/* ============================================================
   MODAL DE IDIOMA
   ============================================================ */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  padding: 24px;
}
.lang-modal.is-open { display: flex; animation: fade .5s var(--ease); }
.lang-modal__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 44px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.14);
  animation: pop .6s var(--ease);
}
.lang-modal__logo { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 26px; }
.lang-modal__title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 30px; line-height: 1.25; }
.lang-modal__title span { display: block; font-size: 15px; font-weight: 400; color: var(--gray-2); margin-top: 6px; }
.lang-modal__options { display: grid; gap: 12px; }
.lang-modal__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 22px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.lang-modal__btn:hover { background: var(--black); color: #fff; transform: translateY(-2px); }
.lang-modal__btn:hover .flag { background: rgba(255,255,255,.16); color: #fff; }
.lang-modal__btn .flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 32px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: all .25s var(--ease);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 14px;
  color: var(--gray);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.lang-switch:hover { background: var(--black); color: #fff; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  background:
    radial-gradient(1200px 600px at 50% -10%, #f0f0f2 0%, rgba(245,245,247,0) 60%),
    var(--white);
}
.hero__eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-2);
  letter-spacing: .01em;
  margin-bottom: 22px;
  text-transform: none;
}
.hero__title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.03;
  color: var(--black);
}
.hero__sub {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--gray);
  max-width: 620px;
  margin: 26px auto 0;
  line-height: 1.5;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  width: 24px; height: 38px;
  border: 2px solid var(--line);
  border-radius: 14px;
  transform: translateX(-50%);
}
.hero__scroll::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gray-2);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrolldot 1.8s var(--ease) infinite;
}

/* ============================================================
   FRANJA CIFRAS
   ============================================================ */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 24px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.strip__item { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.strip__num { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; color: var(--black); }
.strip__label { font-size: 14px; color: var(--gray); }

/* ============================================================
   SECCIONES GENÉRICAS
   ============================================================ */
.section { padding: clamp(80px, 12vw, 150px) 24px; }
.section--light { background: var(--white); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--black); color: #fff; }
.section--dark .section__eyebrow { color: var(--gray-2); }
.section--dark .section__lead { color: #b0b0b5; }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-2);
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.section__lead { font-size: clamp(17px, 2vw, 21px); color: var(--gray); margin-top: 20px; line-height: 1.5; }
.section__lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__text p { color: var(--gray); font-size: 17px; margin-top: 18px; }
.about__text .section__lead { color: var(--ink); }
.about__quote {
  margin-top: 30px;
  padding-left: 22px;
  border-left: 3px solid var(--black);
}
.about__quote p { font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; color: var(--ink); margin: 0; }
.about__quote cite { display: block; margin-top: 12px; color: var(--gray); font-size: 15px; font-style: normal; }
.about__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #f0f0f2, #e2e2e6);
  /* la fachada es apaisada: marco 16/10 para que se lea el rótulo entero */
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Servicios ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service {
  background: #141414;
  border: 1px solid #262626;
  border-radius: var(--radius-sm);
  padding: 30px 26px;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-6px); background: #1c1c1c; border-color: #3a3a3a; }
.service__icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: #1f1f1f;
  border: 1px solid #303030;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background .35s var(--ease);
}
.service:hover .service__icon { background: #262626; }
.service__icon svg { width: 25px; height: 25px; color: #fff; }
.service h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: #a1a1a6; line-height: 1.5; }

/* ---------- Por qué ---------- */
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 36px;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.why__item:hover { box-shadow: 0 20px 50px rgba(0,0,0,.06); transform: translateY(-4px); }
.why__num { display: block; font-size: 14px; font-weight: 600; color: var(--gray-2); letter-spacing: .06em; margin-bottom: 16px; }
.why__item h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.why__item p { color: var(--gray); font-size: 16px; }

/* ---------- La clínica por dentro ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery__item {
  position: relative;
  margin: 0;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #151517;
}
.gallery__item { aspect-ratio: 4/5; }
/* la sala de espera es apaisada: ocupa dos columnas */
.gallery__item--wide { aspect-ratio: 8/5; grid-column: span 2; }
/* el equipo de rayos es vertical: el recorte se sube para no cortarle el cabezal */
.gallery__item--xray img { object-position: 50% 30%; }
.gallery__item img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 22px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,10,10,0), rgba(10,10,10,.72));
}

/* ---------- La doctora ---------- */
.doc { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.doc__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #e6e6ea, #cfcfd6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; position: relative; z-index: 1; }
.doc__monogram {
  position: absolute;
  font-size: 88px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .03em;
  z-index: 0;
}
.doc__media--empty { background: linear-gradient(160deg, #1d1d1f, #3a3a3c); }
.doc__role { font-size: 16px; font-weight: 600; color: var(--gray-2); margin: 10px 0 4px; }
.doc__text .section__lead { color: var(--ink); }
.doc__text p { color: var(--gray); font-size: 17px; margin-top: 16px; }
.doc__text .btn { margin-top: 30px; }

/* ---------- Opiniones ---------- */
.reviews__cta { max-width: 680px; margin: 0 auto; text-align: center; }
.reviews__stars { color: #fff; letter-spacing: 6px; font-size: 24px; margin: 22px 0 4px; }
.reviews__buttons { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Sección de cita (CTA) ---------- */
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.09);
}

/* Lado imagen + datos */
.cta__media { position: relative; min-height: 560px; background: #0a0a0a; overflow: hidden; }
.cta__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .32;
}
.cta__overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(10,10,10,.45), rgba(10,10,10,.78));
}
.cta__eyebrow { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.65); letter-spacing: .02em; margin-bottom: 14px; }
.cta__title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.cta__lead { font-size: 17px; color: rgba(255,255,255,.82); margin-top: 16px; max-width: 380px; line-height: 1.5; }
.cta__list { list-style: none; margin-top: 32px; display: grid; gap: 16px; }
.cta__list li { display: flex; gap: 14px; align-items: center; }
.cta__list svg { width: 20px; height: 20px; color: #fff; flex-shrink: 0; opacity: .85; }
.cta__list a, .cta__list span { font-size: 16px; color: #fff; }
.cta__list a:hover { text-decoration: underline; }

/* Lado cita por teléfono */
.cta__form { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
.cta__form-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.cta__form-sub { font-size: 15px; color: var(--gray); margin: 6px 0 26px; }
.cta__call { text-align: center; align-items: center; }
.cta__call .cta__form-title { font-size: 26px; }
.cta__call .cta__form-sub { max-width: 300px; margin: 8px auto 28px; }

.call__number {
  display: block;
  font-size: clamp(30px, 4.4vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 20px;
  transition: opacity .25s var(--ease);
}
.call__number:hover { opacity: .6; }

.cta__call .btn--full { max-width: 320px; }

.call__hours {
  width: 100%;
  max-width: 320px;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--soft);
  border-radius: var(--radius-sm);
}
.call__hours-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.call__days { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.call__slots { font-size: 16px; color: var(--gray); margin-top: 2px; }

.form__note { text-align: center; font-size: 13px; color: var(--gray-2); margin-top: 14px; }

/* ---------- Ubicación (fachada + mapa) ---------- */
.location { margin-top: 90px; }
.location__head { text-align: center; margin-bottom: 40px; }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.location__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
  min-height: 340px;
}
.location__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.location__map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; background: var(--soft); }
.location__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
.location__dir {
  position: absolute;
  left: 20px; bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 60px 24px 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.footer__logo { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.footer__brand p { color: var(--gray); font-size: 15px; margin-top: 10px; max-width: 320px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col a { font-size: 15px; color: var(--gray); transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-2);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================
   ANIMACIONES REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translate(-50%, 12px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .about__media { aspect-ratio: 16/11; max-height: 420px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item--wide { aspect-ratio: 4/3; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--tall { aspect-ratio: 1/1; }
  .doc { grid-template-columns: 1fr; gap: 30px; }
  .doc__media { aspect-ratio: 16/12; max-height: 420px; max-width: 460px; }
  .cta { grid-template-columns: 1fr; }
  .cta__media { min-height: 0; }
  .cta__overlay { padding: 40px 32px; }
  .location__grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

/* el menú pasa a hamburguesa antes: con 6 enlaces ya no caben en una línea */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px);
    padding: 22px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open a { font-size: 17px; }
}

@media (max-width: 720px) {
  .why__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; width: 100%; max-width: 300px; }
  .hero__cta .btn { width: 100%; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .cta__overlay, .cta__form { padding: 34px 26px; }
  .reviews__buttons { flex-direction: column; }
  .reviews__buttons .btn { width: 100%; }
  .nav__actions .btn--dark { display: none; }
}
