@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
}

:root {
  --chocolate: #573a2b;
  --chocolate-dark: #3a261c;
  --chocolate-deep: #2a1b14;
  --beige: #d9bf9f;
  --beige-soft: #efe4d6;
  --beige-light: #f7f1e9;
  --crema: #f6ece0;
  --white: #ffffff;
  --texto: #2e241f;
  --texto-suave: #6e6158;
  --linea: #e6d9c8;
  --wa: #1f9d55;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(58, 38, 28, 0.10);
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--texto);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--chocolate);
  background: var(--chocolate);
  color: var(--white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--chocolate-dark); border-color: var(--chocolate-dark); transform: translateY(-1px); }
.btn-small { padding: 10px 20px; font-size: 0.78rem; }
.btn-beige { background: var(--beige); border-color: var(--beige); color: var(--chocolate-deep); }
.btn-beige:hover { background: var(--crema); border-color: var(--crema); }
.btn-outline { background: transparent; color: var(--chocolate); }
.btn-outline:hover { background: var(--chocolate); color: var(--white); }
.btn-outline-light { background: transparent; border-color: rgba(246, 236, 224, 0.7); color: var(--crema); }
.btn-outline-light:hover { background: var(--crema); border-color: var(--crema); color: var(--chocolate-deep); }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #17834a; border-color: #17834a; }
.btn-wa svg { width: 18px; height: 18px; fill: currentColor; }

/* Etiqueta tipo "píldora" sobre los títulos */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--beige-soft);
  color: var(--chocolate);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-beige .tag { background: var(--white); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); transition: height 0.3s; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand-mark { height: 46px; width: auto; }
.brand-word { height: 34px; width: auto; }
.logo-dark { display: none; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  color: var(--crema);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
  transition: opacity 0.2s, color 0.2s;
}
.nav a:not(.btn):hover { opacity: 1; }
.btn-pill { background: var(--beige); border-color: var(--beige); color: var(--chocolate-deep); padding: 10px 22px; }
.btn-pill:hover { background: var(--crema); border-color: var(--crema); }
.nav-toggle { display: none; }

.site-header.scrolled,
.site-header.menu-open { background: var(--white); box-shadow: 0 4px 24px rgba(58, 38, 28, 0.08); }
.site-header.scrolled .header-inner { height: 70px; }
.site-header.scrolled .logo-light,
.site-header.menu-open .logo-light { display: none; }
.site-header.scrolled .logo-dark,
.site-header.menu-open .logo-dark { display: block; }
.site-header.scrolled .nav a:not(.btn) { color: var(--texto); }
.site-header.scrolled .btn-pill { background: var(--chocolate); border-color: var(--chocolate); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  color: var(--crema);
  background:
    linear-gradient(100deg, rgba(42, 27, 20, 0.92) 0%, rgba(58, 38, 28, 0.78) 45%, rgba(58, 38, 28, 0.35) 100%),
    var(--foto-hero, none) center / cover no-repeat,
    radial-gradient(ellipse at 80% 20%, #7a5541 0%, var(--chocolate) 45%, var(--chocolate-deep) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  margin: 0 0 18px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beige);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.hero h1 em, .method-text h2 em { font-style: normal; color: var(--beige); }
.hero-lead { margin: 22px 0 36px; max-width: 520px; font-size: 1.25rem; font-weight: 300; color: var(--crema); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.call-card {
  background: var(--white);
  color: var(--texto);
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}
.call-title {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chocolate);
}
.call-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.call-grid .btn { padding: 12px 10px; }
.call-item {
  display: flex;
  flex-direction: column;
  padding: 14px 8px;
  border-radius: 12px;
  background: var(--beige-light);
  text-decoration: none;
  transition: background 0.2s;
}
.call-item:hover { background: var(--beige-soft); }
.call-city { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--texto-suave); }
.call-number { font-size: 1.35rem; font-weight: 600; color: var(--chocolate); letter-spacing: 0.01em; }
.call-sub { margin: 22px 0 12px; font-size: 0.95rem; color: var(--texto-suave); }
.call-hours { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--linea); font-size: 0.82rem; color: var(--texto-suave); }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section-beige { background: var(--beige-light); }
.section-head { margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--chocolate-dark); letter-spacing: -0.01em; }
.section-head p { color: var(--texto-suave); margin: 16px 0 0; font-size: 1.05rem; }
.section-head.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head.split h2 { max-width: 620px; }

/* ---------- Portada: selector de clínica ---------- */
.hero-home { padding-bottom: 120px; }
.hero-home .container { width: 100%; }
.hero-center { text-align: center; max-width: 760px; margin: 0 auto; }
.hero-center .hero-lead { margin: 22px auto 0; }
.chooser { margin-top: 56px; }
.chooser-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beige);
}
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.choice {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  text-decoration: none;
  color: var(--crema);
  border: 1px solid rgba(217, 191, 159, 0.35);
  background:
    linear-gradient(180deg, rgba(42, 27, 20, 0) 20%, rgba(42, 27, 20, 0.85) 75%, rgba(42, 27, 20, 0.97) 100%),
    var(--foto) center / cover no-repeat,
    url("assets/monograma-crema.png") right 28px top 28px / 64px auto no-repeat,
    linear-gradient(135deg, #8a6650, var(--chocolate-dark));
  background-origin: border-box;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s, border-color 0.3s;
}
.choice:hover { transform: translateY(-6px); border-color: var(--beige); }
.choice-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--beige); }
.choice-city { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--white); line-height: 1.1; }
.choice-address { margin-top: 6px; color: var(--beige-soft); }
.choice-cta {
  align-self: flex-start;
  margin-top: 20px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--beige);
  color: var(--chocolate-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.choice:hover .choice-cta { background: var(--crema); }

.chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.chips li { padding: 12px 22px; border-radius: 999px; background: var(--white); border: 1px solid var(--linea); color: var(--chocolate-dark); font-weight: 500; }
.center-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

/* ---------- Página de clínica ---------- */
.nav .nav-switch { color: var(--beige) !important; }
.site-header.scrolled .nav .nav-switch { color: var(--chocolate) !important; }
.call-item-big { padding: 18px 8px; }
.call-item-big .call-number { font-size: 1.9rem; }
.btn-block { width: 100%; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 360px; gap: 16px; }
.gallery-4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 340px; }
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    url("assets/monograma-chocolate.png") center / 56px auto no-repeat,
    linear-gradient(135deg, var(--beige-light), var(--beige-soft));
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.04); }

.location-wide { display: grid; grid-template-columns: 1.2fr 1fr; }
.location-wide .map { aspect-ratio: auto; min-height: 380px; }

.other-clinic { background: var(--chocolate); color: var(--crema); padding: 48px 0; }
.other-clinic-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.other-clinic p { margin: 0; font-size: 1.15rem; }
.other-clinic strong { color: var(--white); }

/* ---------- Método ---------- */
.method { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.method-photo {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--beige), #b8957a);
  box-shadow: var(--shadow);
}
.method-mark { width: 34%; opacity: 0.9; }
.method-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method-text h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--chocolate-dark); }
.method-text h2 em { color: var(--chocolate); font-weight: 400; }
.method-lead { margin: 20px 0 32px; color: var(--texto-suave); font-size: 1.08rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.checks li { position: relative; padding-left: 44px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23573a2b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 4px 12px rgba(58, 38, 28, 0.1);
}
.checks h3 { font-size: 1.1rem; font-weight: 600; color: var(--chocolate-dark); }
.checks p { margin: 4px 0 0; color: var(--texto-suave); }

/* ---------- Servicios ---------- */
.services { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; --cols: 5; }
.service { flex: 0 0 calc((100% - (var(--cols) - 1) * 18px) / var(--cols)); }
.service {
  background: var(--white);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: 30px 20px 26px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--beige); }
.service svg {
  width: 38px;
  height: 38px;
  margin: 0 auto 16px;
  fill: none;
  stroke: var(--chocolate);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { font-size: 1.05rem; font-weight: 600; color: var(--chocolate-dark); margin-bottom: 10px; }
.service p { margin: 0; font-size: 0.9rem; color: var(--texto-suave); }

/* ---------- Equipo ---------- */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; --cols: 5; }
.member { flex: 0 0 calc((100% - (var(--cols) - 1) * 22px) / var(--cols)); }
.member { text-align: center; }
.member-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--beige-soft), var(--beige));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.member-photo span { font-size: 2.4rem; font-weight: 300; letter-spacing: 0.1em; color: var(--chocolate); }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.08rem; font-weight: 600; color: var(--chocolate-dark); }
.member p { margin: 2px 0 0; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-suave); }

/* ---------- Opiniones ---------- */
.stars { font-size: 1.8rem; color: #e0a83b; letter-spacing: 0.1em; }
.carousel { position: relative; margin-bottom: 32px; padding: 0 30px; }
.reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 2px 16px;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews:focus-visible { outline: 2px solid var(--chocolate); outline-offset: 4px; border-radius: var(--radius); }
.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: 0 8px 24px rgba(58, 38, 28, 0.08);
}
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head div { display: flex; flex-direction: column; line-height: 1.3; }
.review-head strong { font-size: 0.98rem; color: var(--chocolate-dark); }
.review-head small { font-size: 0.8rem; color: var(--texto-suave); }
.review-avatar {
  flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--chocolate); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.review-google { margin-left: auto; width: 20px; height: 20px; flex: none; }
.review-stars { color: #f4b400; margin: 14px 0 8px; letter-spacing: 0.12em; font-size: 1.05rem; }
.review p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--texto);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review.open p { -webkit-line-clamp: unset; display: block; }
.review-more {
  align-self: flex-start;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--chocolate);
  cursor: pointer;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: var(--white);
  color: var(--chocolate);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}
.carousel-btn:hover { background: var(--chocolate); color: var(--white); }
.carousel-prev { left: -14px; }
.carousel-next { right: -14px; }
.reviews-links { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contacto ---------- */
.location { background: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.map { aspect-ratio: 16 / 9; background: var(--beige-soft); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-lazy {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    url("assets/monograma-chocolate.png") center 22% / 48px auto no-repeat,
    linear-gradient(135deg, var(--beige-light), var(--beige-soft));
}
.map-lazy .btn { margin-top: 40px; }
.map-lazy p { margin: 0; max-width: 340px; font-size: 0.82rem; color: var(--texto-suave); }
.map-lazy a { color: var(--chocolate); }
.location-body { padding: 32px; }
.location-body h3 { font-size: 1.8rem; font-weight: 600; color: var(--chocolate-dark); margin-bottom: 18px; }
.info { list-style: none; margin: 0 0 24px; padding: 0; }
.info li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); color: var(--texto-suave); }
.info li:last-child { border-bottom: 0; }
.info span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chocolate); padding-top: 3px; }
.info a { color: var(--texto); font-weight: 500; text-decoration: none; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--chocolate-deep); color: var(--beige-soft); padding: 80px 0 0; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.1fr 1.1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 170px; margin-bottom: 26px; }
.footer-brand nav { display: grid; gap: 8px; }
.footer-brand nav a { color: var(--beige); text-decoration: none; }
.footer-brand nav a:hover { color: var(--white); }
.footer-col h3 {
  position: relative;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beige);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(217, 191, 159, 0.35);
}
.footer-col p { margin: 0 0 14px; color: rgba(246, 236, 224, 0.82); }
.footer-col a { color: var(--white); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(217, 191, 159, 0.2);
  font-size: 0.82rem;
  color: rgba(246, 236, 224, 0.6);
}
.footer-bottom p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 20px; }
.legal a { color: inherit; text-decoration: none; }
.legal a:hover { color: var(--white); }

.mobile-call { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav a:not(.btn) { font-size: 0.74rem; letter-spacing: 0.08em; }
  .header-inner { gap: 20px; }
}

@media (max-width: 1080px) {
  .services, .team { --cols: 3; }
  .reviews { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
  }
  .nav-toggle span { width: 26px; height: 2px; border-radius: 2px; background: var(--crema); transition: background 0.3s; }
  .site-header.scrolled .nav-toggle span,
  .site-header.menu-open .nav-toggle span { background: var(--chocolate); }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: 8px 24px 24px;
    box-shadow: 0 16px 30px rgba(58, 38, 28, 0.1);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { color: var(--texto) !important; padding: 16px 0; border-bottom: 1px solid var(--linea); }
  .nav .btn { margin-top: 18px; background: var(--chocolate); border-color: var(--chocolate); color: var(--white); }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .call-card { max-width: 520px; }
  .method { grid-template-columns: 1fr; gap: 40px; }
  .method-photo { aspect-ratio: 16 / 10; }
  .location-wide { grid-template-columns: 1fr; }
  .location-wide .map { min-height: 0; aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .gallery-4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  .container { padding: 0 16px; }
  .brand-mark { height: 38px; }
  .brand-word { height: 26px; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 36px) 0 88px; }
  .hero-lead { font-size: 1.1rem; }
  .hero-buttons .btn { flex: 1; }
  .call-card { padding: 24px 18px; }
  .call-number { font-size: 1.15rem; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .chooser { margin-top: 40px; }
  .chooser-grid { grid-template-columns: 1fr; gap: 16px; }
  .choice { min-height: 240px; padding: 24px; }
  .chips li { padding: 10px 16px; font-size: 0.92rem; }
  .gallery { grid-auto-rows: 220px; gap: 10px; }
  .other-clinic-inner .btn { width: 100%; }
  .services { --cols: 2; gap: 12px; }
  .service { flex-basis: calc((100% - 12px) / 2); }
  .service { padding: 22px 14px; }
  .team { --cols: 2; gap: 16px; }
  .member { flex-basis: calc((100% - 16px) / 2); }
  .reviews { grid-auto-columns: 86%; }
  .carousel-btn { display: none; }
  .carousel { padding: 0; }
  .location-body { padding: 24px 20px; }
  .info li { grid-template-columns: 1fr; gap: 2px; }
  .location-actions .btn { flex: 1 1 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { padding-bottom: 64px; }

  .mobile-call {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    background: var(--chocolate-deep);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
  }
  .mobile-call a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 12px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.06em;
  }
  .mobile-call a + a { border-left: 1px solid rgba(217, 191, 159, 0.3); }
  .mobile-call .mobile-wa { background: var(--wa); }
  .mobile-call .mobile-wa small { color: rgba(255, 255, 255, 0.8); }
  .mobile-call small { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--beige); }
}

/* ---------- Páginas legales ---------- */
.legal-page { padding: calc(var(--header-h) + 56px) 0 96px; background: var(--beige-light); }
.legal-inner {
  width: calc(100% - 48px);
  max-width: 860px;
  background: var(--white);
  border-radius: 22px;
  padding: 56px 64px;
  box-shadow: var(--shadow);
}
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; color: var(--chocolate-dark); }
.legal-date { margin: 8px 0 32px; font-size: 0.9rem; color: var(--texto-suave); }
.legal-page h2 { font-size: 1.3rem; font-weight: 600; color: var(--chocolate); margin: 40px 0 12px; }
.legal-page h3 { font-size: 1.05rem; font-weight: 600; color: var(--chocolate-dark); margin: 22px 0 6px; }
.legal-page p, .legal-page li { color: var(--texto); }
.legal-page ul { padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--chocolate); }
.pendiente { background: #fff1b8; border-radius: 4px; padding: 0 4px; color: #6b4e00; font-weight: 500; }
.site-footer-mini { padding-top: 0; }
.site-footer-mini .footer-bottom { border-top: 0; }

@media (max-width: 640px) {
  .legal-page { padding: calc(var(--header-h) + 24px) 0 56px; }
  .legal-inner { padding: 32px 20px; border-radius: 0; width: 100%; }
  .site-footer-mini { padding-bottom: 0; }
}

/* ---------- Fotos de cada clínica ---------- */
.choice-barcelona { --foto: url("assets/fotos/barcelona/fachada.jpg"); }
.choice-badalona { --foto: url("assets/fotos/badalona/fachada.jpg"); }
.hero-barcelona { --foto-hero: url("assets/fotos/barcelona/hero.jpg"); }
.hero-badalona { --foto-hero: url("assets/fotos/badalona/hero.jpg"); }
.footer-reg { font-size: 0.82rem; color: rgba(246, 236, 224, 0.6) !important; }

/* ---------- Página 404 ---------- */
.hero-404 { padding-top: 64px; }
.error-logo { width: 180px; margin: 0 auto 40px; }
.error-buttons { justify-content: center; margin-top: 36px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--linea); border-radius: 14px; padding: 0 24px; transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--beige); box-shadow: var(--shadow); }
.faq-item summary {
  position: relative;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  color: var(--chocolate-dark);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--chocolate);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0 0 20px; color: var(--texto-suave); }
.faq-item a { color: var(--chocolate); font-weight: 500; }

/* ---------- Logos del Kit Digital ---------- */
.footer-kit { padding-top: 28px; padding-bottom: 28px; border-top: 1px solid rgba(217, 191, 159, 0.2); }
.footer-kit img { width: 100%; max-width: 820px; height: auto; margin: 0 auto; }
.site-footer-mini .footer-kit { border-top: 0; }
.kit-split { display: none; }

@media (max-width: 640px) {
  .kit-full { display: none; }
  .kit-split { display: grid; gap: 14px; }
  .kit-split img { width: 100%; height: auto; }
}

/* ---------- Ajustes de compatibilidad y móvil ---------- */
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .mobile-call { padding-bottom: env(safe-area-inset-bottom); }
}
