/* ============================================================
   Radio Dentix — hoja de estilos
   Colores y tipografías definidos por la marca.
   Para reemplazar las fuentes por las originales (Larken / TAN
   Ashford), sube los .woff2 a assets/fonts/ y descomenta el
   bloque @font-face de más abajo.
   ============================================================ */

:root {
  --teal: #047a95;
  --teal-dark: #03606f;
  --teal-deep: #024e5c;
  --cream: #f4f1ec;
  --cream-soft: #faf8f5;
  --gold: #cdad7d;
  --gold-dark: #a8874f;
  --white: #ffffff;
  --ink: #1d3238;
  --muted: rgba(4, 122, 149, 0.75);

  --font-display: "Fraunces", "Larken", Georgia, serif;
  --font-title: "Cormorant Garamond", "TAN Ashford", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --nav-h: 76px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(2, 78, 92, 0.10);
}

/* Fuentes originales (opcional)
@font-face { font-family: "Larken"; src: url("../fonts/larken-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TAN Ashford"; src: url("../fonts/tan-ashford.woff2") format("woff2"); font-weight: 400; font-display: swap; }
*/

/* ---------- Fuentes auto-alojadas ---------- */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-var.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--teal); color: var(--white); padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }

/* ---------- Tipografía ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 .5rem;
}

.section-kicker {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--gold-dark);
  margin: 0 0 2.5rem;
  font-style: italic;
}

/* ---------- Barra de navegación ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(4, 122, 149, 0.12);
  transition: box-shadow .25s ease;
}
.nav.is-stuck { box-shadow: 0 4px 20px rgba(2, 78, 92, 0.10); }

.nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.nav__logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav__logo img { height: 44px; width: auto; }
.nav__logo span {
  font-family: var(--font-title); font-size: 1.15rem; line-height: 1.05;
  letter-spacing: .1em; text-transform: uppercase; display: none;
  color: var(--teal);
}

.nav__links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }

.nav__link {
  font-family: var(--font-title);
  font-size: 1.22rem;
  text-decoration: none;
  color: var(--muted);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.nav__link:hover { color: var(--teal); }
.nav__link.is-active { color: var(--teal-deep); border-bottom-color: var(--gold); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--teal);
}
.nav__toggle svg { width: 30px; height: 30px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 2rem;
  border: 0; border-radius: 4px;
  font-family: var(--font-body);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--gold { background: var(--gold); color: #4a3a1c; }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }

.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-dark); }

.btn--ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); }

.btn--light { background: var(--cream); color: var(--teal-deep); }
.btn--light:hover { background: var(--white); }

/* ---------- Secciones ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--cream { background: var(--cream); }
.section--soft { background: var(--cream-soft); }
.section--teal { background: var(--teal); color: var(--cream); }
.section--teal .section-title { color: var(--white); }
.section--teal .section-kicker { color: var(--gold); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  margin-top: var(--nav-h);
  display: flex; align-items: center;
  background: var(--cream) url("../img/hero-radiografia.webp") center right / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(244, 241, 236, 0.985) 0%,
    rgba(244, 241, 236, 0.96) 42%,
    rgba(244, 241, 236, 0.62) 68%,
    rgba(244, 241, 236, 0.22) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 620px; padding: 3rem 0; }

.hero__eyebrow {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--teal);
  margin: 0 0 .6rem;
  letter-spacing: .01em;
}
.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  margin: 0 0 1.4rem;
  color: var(--teal);
}
.hero__lead {
  font-size: 1.12rem;
  max-width: 34rem;
  margin: 0 0 2.2rem;
  color: var(--teal-dark);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Beneficios ---------- */

.benefits__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-align: center; margin: 0 0 3.2rem; font-weight: 400;
}
.benefits__grid {
  display: grid; gap: clamp(2.4rem, 4vw, 3.8rem);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .benefits__grid { grid-template-columns: 1fr 1fr; column-gap: 0; }
  .benefit { padding-inline: clamp(1.5rem, 3vw, 3rem); }
  .benefit:nth-child(even) { border-left: 1px solid rgba(4, 122, 149, 0.22); }
}
.benefit { display: flex; gap: 1.25rem; align-items: flex-start; }
.benefit__icon { flex: none; width: 58px; height: 58px; color: var(--teal); }
.benefit__icon svg { width: 100%; height: 100%; }
.benefit h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; margin: .2rem 0 .45rem; }
.benefit p { margin: 0; font-size: 1rem; color: var(--teal-dark); }

/* ---------- Quiénes somos ---------- */

.team {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  justify-items: center;
}
.team__card { max-width: 420px; text-align: center; width: 100%; }
.team__frame {
  border-radius: 200px 200px 14px 14px;
  overflow: hidden;
  border: 9px solid var(--cream);
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  aspect-ratio: 3 / 4;
}
.team__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team__name {
  display: inline-block;
  margin: 1.6rem auto .8rem;
  padding: .5rem 1.6rem;
  background: var(--cream);
  color: var(--teal);
  border-radius: 999px;
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
  line-height: 1.25;
}
.team__role {
  display: inline-block;
  margin: 0 auto;
  padding: .7rem 1.5rem;
  background: var(--cream);
  color: var(--teal);
  border-radius: 22px;
  font-size: .98rem;
  line-height: 1.45;
  max-width: 24rem;
}

/* ---------- Servicios ---------- */

.services {
  display: grid; gap: clamp(2rem, 4vw, 3.4rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service { text-align: center; }
.service__img {
  aspect-ratio: 4 / 3;
  background: #0d0d0d;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow);
}
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; margin: 0 0 .6rem; }
.service p { margin: 0; font-size: .98rem; color: var(--teal-dark); }

/* ---------- Testimonios ---------- */

.reviews { max-width: 800px; margin-inline: auto; text-align: center; }
.reviews__viewport { position: relative; min-height: 250px; display: grid; }
.review {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 .5rem;
}
.review.is-active { opacity: 1; visibility: visible; }
.review__stars { color: var(--gold-dark); font-size: 1.25rem; letter-spacing: .28em; margin-bottom: 1.1rem; }
.review__text {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.55;
  margin: 0 0 1.3rem;
  color: var(--teal-dark);
}
.review__author { font-size: .93rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin: 0; }

.reviews__controls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 2rem; }
.reviews__arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(4, 122, 149, 0.35);
  background: transparent; color: var(--teal); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.reviews__arrow:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.reviews__arrow svg { width: 20px; height: 20px; }
.reviews__dots { display: flex; gap: .6rem; }
.reviews__dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--teal); background: transparent; cursor: pointer;
  transition: background-color .2s ease;
}
.reviews__dot.is-active { background: var(--teal); }
.reviews__link { display: inline-block; margin-top: 2rem; font-size: .95rem; color: var(--gold-dark); }

/* ---------- Orden radiográfica ---------- */

.orders {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.order { text-align: center; display: flex; flex-direction: column; }
.order h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 0 0 1.8rem;
}
.order__media {
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 5px var(--cream-soft), 0 0 0 7px var(--gold);
  margin: 0 auto 2.2rem;
  max-width: 400px; width: 100%;
  background: var(--white);
  overflow: hidden;
}
.order__media img, .order__media video { width: 100%; height: auto; display: block; }
.order__media--video { aspect-ratio: 346 / 462; }
.order__media--video video { height: 100%; object-fit: cover; }
.order .btn { align-self: center; margin-top: auto; }
.order__hint { font-size: .88rem; color: var(--gold-dark); margin: .9rem 0 0; }

/* ---------- Contacto ---------- */

.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.contact__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.contact__item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact__icon { flex: none; width: 34px; height: 34px; color: var(--gold-dark); }
.contact__icon svg { width: 100%; height: 100%; }
.contact__item a { text-decoration: underline; text-underline-offset: 4px; }
.contact__item a:hover { color: var(--teal-deep); }
.contact__label { display: block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .15rem; }

.contact__aside-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.8rem;
}
.contact__note {
  position: relative;
  background: var(--gold);
  color: #4a3a1c;
  border-radius: 20px;
  padding: 1rem 1.6rem;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-style: italic;
  display: inline-block;
  margin-bottom: 2rem;
}
.contact__note::after {
  content: ""; position: absolute; left: 2.2rem; bottom: -14px;
  border: 9px solid transparent; border-top-color: var(--gold); border-bottom: 0;
}
.contact__frame {
  border: 3px solid var(--teal);
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 7px var(--gold);
  overflow: hidden; background: var(--white);
}
.contact__frame iframe { display: block; width: 100%; height: 340px; border: 0; }
.contact__frame img { width: 100%; height: 340px; object-fit: cover; }
.contact__directions { display: inline-flex; margin-top: 1.6rem; }

/* ---------- Footer ---------- */

.footer { background: var(--teal-deep); color: rgba(244, 241, 236, 0.85); padding: 3rem 0 2rem; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.footer a { color: var(--gold); }
.footer__legal { width: 100%; border-top: 1px solid rgba(244, 241, 236, 0.18); padding-top: 1.5rem; margin-top: .5rem; font-size: .82rem; opacity: .75; }

/* ---------- WhatsApp flotante ---------- */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: .7rem;
  background: #25d366; color: #063d1c;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.04); }
.wa-float svg { width: 26px; height: 26px; flex: none; }

/* ---------- Animación de entrada ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(4, 122, 149, 0.15);
    box-shadow: 0 14px 30px rgba(2, 78, 92, 0.14);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: .9rem .25rem; border-bottom: 1px solid rgba(4, 122, 149, 0.12); font-size: 1.3rem; }
  .nav__link.is-active { border-bottom-color: var(--gold); }
  .hero { background-position: 68% center; min-height: auto; }
  .hero::after { background: linear-gradient(180deg, rgba(244,241,236,0.95) 0%, rgba(244,241,236,0.88) 55%, rgba(244,241,236,0.55) 100%); }
  .hero__content { padding: 3.5rem 0; }
  .wa-float span { display: none; }
  .wa-float { padding: 1rem; right: 16px; bottom: 16px; }
}

@media (min-width: 480px) { .nav__logo span { display: block; } }

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