/* =========================================================
   Dr. Ricardo Alejos · Ortopedia y Traumatología en Mérida
   Hoja de estilos principal (sin frameworks ni dependencias)
   ========================================================= */

:root {
  /* Paleta tomada del sitio original (Elementor) */
  --c-sky: #6ec1e4;          /* azul cielo de marca (decoración, fondos) */
  --c-sky-ink: #2f92bf;      /* azul de marca para texto (contraste AA en títulos) */
  --c-teal: #00a8bc;         /* acento turquesa original */
  --c-teal-ink: #0097a9;     /* turquesa para texto */
  --c-ink: #08363b;          /* títulos oscuros */
  --c-deep: #0e3b40;         /* botón "volver arriba" */
  --c-blue: #416bad;         /* texto destacado del hero */
  --c-mist: #edf9fc;         /* fondo de secciones claras */
  --c-text: #536567;         /* texto de párrafo */
  --c-muted: #6f8082;
  --c-line: #d3e8ef;
  --c-white: #fff;
  --c-wa: #25d366;
  --c-faro: linear-gradient(to top, rgba(0, 140, 158, 0.96) 0%, rgba(0, 168, 188, 0.74) 55%, rgba(0, 168, 188, 0.6) 100%);
  --c-cma: linear-gradient(to top, rgba(20, 106, 196, 0.96) 0%, rgba(28, 128, 226, 0.66) 55%, rgba(28, 128, 226, 0.45) 100%);
  --hero-a: #bee1f3;
  --hero-b: #def4ff;

  --ff-base: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ff-display: "Urbanist", "Roboto", system-ui, sans-serif;

  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-pill: 999px;
  --shadow: 0 18px 40px -20px rgba(8, 54, 59, 0.28);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(48px, 6.5vw, 88px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-sky-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-teal-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
strong { color: var(--c-ink); font-weight: 600; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.12;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + 2 * var(--gutter)); }

.mt-xl { margin-top: clamp(40px, 6vw, 64px); }

.visually-hidden {
  position: absolute !important; 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: 16px; top: -60px; z-index: 100;
  background: var(--c-ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 16px 32px;
  border: 0; border-radius: var(--radius-pill);
  font: 500 clamp(17px, 1.6vw, 21px)/1.1 var(--ff-base);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--c-sky-ink); color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px -12px rgba(47, 146, 191, 0.8);
}
.btn:hover { background: var(--c-teal-ink); color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 11px 20px; font-size: 15px; box-shadow: none; }
.btn--ghost { background: rgba(255, 255, 255, 0.24); color: #fff; box-shadow: none; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--outline { background: transparent; color: var(--c-sky-ink); border: 2px solid currentColor; box-shadow: none; }
.btn--outline:hover { background: var(--c-sky-ink); color: #fff; }
.btn--wa .icon { width: 1.15em; height: 1.15em; }

/* ---------- Cabecera ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  padding-block: 14px;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; }
.brand__logo { width: clamp(240px, 26vw, 340px); height: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-weight: 500; font-size: 15.5px; color: var(--c-teal-ink); text-decoration: none;
}
.nav__link:hover { color: var(--c-ink); background: rgba(255, 255, 255, 0.45); }
.nav__link[aria-current="page"] { color: var(--c-ink); }
.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 0;
  background: rgba(255, 255, 255, 0.6); color: var(--c-ink); cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 14px; border-radius: var(--radius-md);
    background: #fff; box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 12px 14px; font-size: 17px; }
  .nav__link:hover { background: var(--c-mist); }
  .nav__cta { margin: 4px 0 0; }
}

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--hero-a) 0%, var(--hero-b) 50%, var(--hero-a) 100%);
  padding-top: 104px;
}
.hero__words {
  position: absolute; inset: 70px 0 auto 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center;
  font: 600 clamp(54px, 10.4vw, 150px)/0.82 var(--ff-base);
  text-transform: uppercase; letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero__words span:first-child { transform: translateX(-9%); }
.hero__words span:last-child { transform: translateX(4%); }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  text-align: center;
}
.hero__intro { padding-top: clamp(24px, 6vw, 64px); }
.hero__title { margin: 0 0 14px; color: var(--c-sky-ink); }
.hero__title-name { display: block; font: 600 clamp(44px, 6vw, 72px)/0.95 var(--ff-base); letter-spacing: -0.02em; }
.hero__title-role { display: block; margin-top: 12px; font: 500 clamp(17px, 1.7vw, 20px)/1.3 var(--ff-base); color: var(--c-ink); letter-spacing: 0; }
.hero__lead { color: var(--c-blue); font-size: 17px; max-width: 30ch; margin-inline: auto; }
.hero__lead strong { color: var(--c-blue); font-weight: 700; }

.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero__cta-title { margin: 0; font: 600 clamp(20px, 2vw, 24px)/1.2 var(--ff-base); color: var(--c-sky-ink); max-width: 15ch; }
.hero__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--c-ink); text-decoration: none; }
.hero__phone:hover { color: var(--c-sky-ink); }

.hero__cta { order: 1; }
.hero__photo { order: 2; margin: 0; justify-self: center; width: min(78vw, 420px); }
.hero__photo img { width: 100%; height: auto; }

@media (min-width: 1024px) {
  .hero { padding-top: 96px; }
  .hero__grid {
    grid-template-columns: 1.2fr minmax(340px, 420px) 1fr;
    align-items: center; text-align: left; gap: 24px;
    min-height: 700px;
  }
  .hero__intro { padding-top: 40px; align-self: center; }
  .hero__title-name { font-size: clamp(48px, 5vw, 70px); }
  .hero__lead { margin-inline: 0; }
  .hero__photo { order: 0; width: 100%; align-self: end; grid-row: 1; grid-column: 2; }
  .hero__cta { order: 0; align-items: flex-start; grid-row: 1; grid-column: 3; padding-left: 8%; }
}

/* Indicadores para seguir leyendo ("Conoce más sobre mí") */
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px var(--gutter) 0; margin: 0 auto;
  text-align: center; text-decoration: none;
  font: 600 clamp(20px, 2vw, 26px)/1.2 var(--ff-base); color: var(--c-sky-ink);
}
.scroll-cue .icon { width: 24px; height: 24px; transition: transform 0.2s ease; }
.scroll-cue:hover .icon { transform: translateY(3px); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--mist { background: var(--c-mist); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.eyebrow {
  display: block; margin: 0 0 12px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-sky-ink);
}
.section-title { font-size: clamp(28px, 3.3vw, 40px); color: var(--c-sky-ink); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 4.5vw, 52px); }
.section-head p { font-size: 17px; }

.display {
  font: 600 clamp(30px, 3.8vw, 48px)/1.13 var(--ff-display);
  color: var(--c-ink); letter-spacing: -0.01em;
}
.display em { font-style: normal; color: var(--c-teal-ink); }

/* ---------- Sobre mí ---------- */
.about__grid { display: grid; gap: 32px; }
.about__text { font-size: 16.5px; }
.credentials { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.credentials li {
  display: flex; gap: 12px; align-items: flex-start; margin: 0;
  padding: 12px 16px; border-radius: 14px; background: var(--c-mist);
  color: var(--c-ink); font-size: 15.5px; line-height: 1.45;
}
.credentials .icon { color: var(--c-teal-ink); margin-top: 2px; }
.about__more { margin-top: 18px; font-weight: 500; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
  .about__grid .display { margin: 0; }
  .about__body { padding-top: 72px; }
}

/* ---------- Sedes / consultorios ---------- */
.locations__title { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); font-size: clamp(32px, 4.4vw, 54px); }
.locations { display: grid; gap: 20px; }
@media (min-width: 820px) { .locations { grid-template-columns: 1fr 1fr; } }

.location {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(380px, 46vw, 520px);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg); color: #fff;
  background: var(--c-teal-ink);
}
.location--cma { background: #1c80e2; }
.location .media { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.location .media img { width: 100%; height: 100%; object-fit: cover; }
.location::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c-faro); }
.location--cma::after { background: var(--c-cma); }
.location__name { font-size: clamp(26px, 2.6vw, 34px); color: #fff; margin: 0 0 14px; }
.location__name small { display: block; font-size: 15px; font-weight: 500; opacity: 0.92; margin-top: 6px; letter-spacing: 0.01em; }
.location address {
  font-style: normal; font-size: 16px; line-height: 1.5;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.55);
}
.location .btn { align-self: flex-start; }

/* ---------- Servicios (línea de tiempo) ---------- */
.timeline { position: relative; display: grid; gap: clamp(44px, 6vw, 72px); }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 22px;
  width: 1px; background: #c5dce4;
}
.tl-item { position: relative; display: grid; gap: 24px; padding-left: 68px; }
.tl-item__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%;
  background: var(--c-teal-ink); color: #fff; font-weight: 600; font-size: 19px;
  box-shadow: 0 0 0 8px var(--c-mist);
}
.tl-item__media { width: 100%; max-width: 320px; aspect-ratio: 2 / 3; border-radius: var(--radius-md); }
.tl-item__media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tl-item__title { font-size: clamp(26px, 3vw, 40px); color: var(--c-sky-ink); margin-bottom: 18px; }
.tl-item__text { font-size: 15.5px; }
.tl-item__text ul { padding-left: 1.1em; }
.tl-item__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 4px; }
.tl-item__link .icon { width: 18px; height: 18px; transition: transform 0.2s ease; }
.tl-item__link:hover .icon { transform: translateX(3px); }

@media (min-width: 900px) {
  .timeline::before { left: 50%; }
  .tl-item { grid-template-columns: 1fr 1fr; gap: 120px; padding-left: 0; align-items: center; }
  .tl-item__num { left: 50%; transform: translateX(-50%); }
  .tl-item__media { justify-self: center; max-width: 300px; }
  .tl-item:nth-child(even) .tl-item__media { order: 2; }
  .tl-item:nth-child(even) .tl-item__body { order: 1; }
}

/* ---------- Testimonio ---------- */
.testimonial { text-align: center; max-width: 960px; margin-inline: auto; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font: 600 clamp(24px, 3.1vw, 40px)/1.15 var(--ff-display); color: #6e6e6e; margin: 0;
}
.testimonial figcaption { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.testimonial__who { font: 600 19px/1.2 var(--ff-display); color: var(--c-ink); }
.testimonial__src { font-size: 14px; color: var(--c-muted); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq details {
  border-radius: 18px; background: #fff; border: 1px solid var(--c-line);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.section--mist .faq details { border-color: transparent; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 17.5px; color: var(--c-ink); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2, .faq summary h3 { font: inherit; color: inherit; margin: 0; }
.faq summary .icon { width: 22px; height: 22px; color: var(--c-sky-ink); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 20px; }
.faq__answer > :last-child { margin-bottom: 0; }
.faq-group { margin-top: 48px; }
.faq-group:first-of-type { margin-top: 0; }
.faq-group__title { font-size: clamp(22px, 2.4vw, 28px); color: var(--c-sky-ink); max-width: 880px; margin: 0 auto 18px; }

/* ---------- Banda de llamada a la acción ---------- */
.cta-band {
  display: grid; gap: 24px; align-items: center;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: linear-gradient(110deg, var(--c-teal-ink), #1c80e2);
  color: #e9fbff;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { background: #fff; color: var(--c-ink); box-shadow: none; }
.cta-band .btn:hover { background: var(--c-ink); color: #fff; }
.cta-band .btn--ghost { background: rgba(255, 255, 255, 0.18); color: #fff; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }

/* ---------- Páginas internas ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--hero-a) 0%, var(--hero-b) 50%, var(--hero-a) 100%);
  padding: 136px 0 clamp(40px, 5vw, 64px);
}
.page-hero__title { font-size: clamp(34px, 4.8vw, 58px); color: var(--c-ink); max-width: 20ch; margin-bottom: 16px; }
.page-hero__lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 62ch; color: var(--c-ink); opacity: 0.85; margin: 0; }
.page-hero .eyebrow { color: var(--c-teal-ink); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink); }
.breadcrumbs li + li::before { content: "›"; color: var(--c-sky-ink); }
.breadcrumbs a { color: var(--c-teal-ink); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.prose { font-size: 17px; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); color: var(--c-sky-ink); margin-top: 1.6em; }
.prose h3 { font-size: clamp(20px, 2vw, 24px); margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--c-teal-ink); }

.service-layout { display: grid; gap: 48px; }
.service-aside { display: grid; gap: 20px; align-content: start; }
.service-aside .media { aspect-ratio: 2 / 3; border-radius: var(--radius-md); max-width: 380px; }
.service-aside .media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@media (min-width: 960px) {
  .service-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; }
  .service-aside { position: sticky; top: 24px; }
}

.card {
  padding: 24px; border-radius: var(--radius-md); background: var(--c-mist);
}
.card h2, .card h3 { font-size: 20px; margin-bottom: 10px; color: var(--c-ink); }
.card p:last-child { margin-bottom: 0; }
.card address { font-style: normal; margin-bottom: 10px; }
.card ul { margin: 0; }
.card--white { background: #fff; box-shadow: var(--shadow); }

.notice {
  margin-top: 40px; padding: 18px 20px; border-left: 4px solid var(--c-sky);
  background: var(--c-mist); border-radius: 0 14px 14px 0; font-size: 15px;
}
.notice p { margin: 0; }

.grid-cards { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards--3 { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center;
  padding: 18px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow);
  text-decoration: none; color: var(--c-text);
  transition: transform 0.2s ease;
}
.service-card:hover { transform: translateY(-3px); color: var(--c-text); }
.service-card .media { aspect-ratio: 2 / 3; border-radius: 16px; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.service-card h2, .service-card h3 { font-size: 21px; color: var(--c-sky-ink); margin-bottom: 8px; }
.service-card p { margin: 0; font-size: 15px; }

/* ---------- Artículos ---------- */
.articles { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.article-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px 14px 20px; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow);
}
.article-card .media { aspect-ratio: 3 / 2; border-radius: 16px; }
.article-card .media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.article-card h2 { font-size: 17.5px; line-height: 1.35; color: var(--c-ink); margin: 0 4px; flex: 1; }
.article-card h2 a { color: inherit; text-decoration: none; }
.article-card h2 a:hover { color: var(--c-sky-ink); text-decoration: underline; }
.article-card__meta { font-size: 13px; color: var(--c-muted); margin: 0 4px; }
.article-card a.btn { margin: 0 4px; align-self: flex-start; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { margin: 0; }
.contact-list a, .contact-list span.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: var(--c-mist); color: var(--c-ink); text-decoration: none; font-weight: 500;
}
.contact-list a:hover { background: #dff3fa; color: var(--c-ink); }
.contact-list .icon { width: 22px; height: 22px; color: var(--c-teal-ink); }
.contact-list small { display: block; font-weight: 400; color: var(--c-muted); font-size: 13.5px; }

.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.form__row { display: grid; gap: 6px; }
.form label { font-weight: 500; color: var(--c-ink); font-size: 15px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid #b9cfd6;
  font: 400 16px/1.4 var(--ff-base); color: var(--c-ink); background: #fff;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--c-teal); outline-offset: 1px; border-color: transparent; }
.form__hint { font-size: 13.5px; color: var(--c-muted); margin: 0; }
.form .btn { width: 100%; background: var(--c-teal-ink); }
.form .btn:hover { background: var(--c-ink); }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--c-mist); padding: clamp(44px, 5.5vw, 72px) 0 0; font-size: 15.5px; }
.site-footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.site-footer__logo { display: inline-block; margin-bottom: 24px; border-radius: 10px; }
.site-footer__logo img { width: min(320px, 80vw); height: auto; }
.site-footer__eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-sky-ink); margin-bottom: 14px; line-height: 1.5; }
.site-footer__title { font: 600 clamp(36px, 4.4vw, 57px)/1.08 var(--ff-base); color: var(--c-sky-ink); margin: 0 0 24px; }
.socials { display: flex; gap: 14px; list-style: none; padding: 0; margin: 0 0 32px; }
.socials li { margin: 0; }
.socials a {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: #fff; color: var(--c-sky-ink); transition: background-color 0.2s ease, color 0.2s ease;
}
.socials a:hover { background: var(--c-sky-ink); color: #fff; }
.socials .icon { width: 28px; height: 28px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink); margin-bottom: 10px; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 6px; }
.footer-nav a { color: var(--c-text); text-decoration: none; }
.footer-nav a:hover { color: var(--c-sky-ink); text-decoration: underline; }
.footer-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.footer-facts li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.footer-facts .icon { color: var(--c-teal-ink); margin-top: 4px; }
.footer-facts a { color: var(--c-ink); text-decoration: none; }
.footer-facts a:hover { color: var(--c-sky-ink); text-decoration: underline; }
.site-footer__bottom {
  margin-top: 48px; padding: 18px 0 22px; border-top: 1px solid var(--c-line);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-sky-ink);
  text-align: center;
}
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; }

/* ---------- Botones flotantes ---------- */
.float-wa, .to-top {
  position: fixed; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
}
.float-wa { left: 20px; width: 58px; height: 58px; border-radius: 50%; background: var(--c-wa); color: #fff; }
.float-wa:hover { color: #fff; transform: scale(1.05); }
.float-wa .icon { width: 30px; height: 30px; }
/* Ventana de WhatsApp (réplica del widget Joinchat del sitio original) */
.wa-chat {
  position: fixed; left: 20px; bottom: 92px; z-index: 45;
  width: min(320px, calc(100vw - 40px)); overflow: hidden;
  border-radius: 20px; background: #fff;
  box-shadow: 0 24px 48px -16px rgba(8, 54, 59, 0.45);
  animation: wa-in 0.22s ease-out;
}
.wa-chat[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.wa-chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 16px; background: var(--c-mist); }
.wa-chat__head img { width: 38px; height: auto; }
.wa-chat__head p { margin: 0; flex: 1; line-height: 1.25; }
.wa-chat__head strong { display: block; font-size: 15.5px; }
.wa-chat__head span { font-size: 13px; color: var(--c-muted); }
.wa-chat__close {
  display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: transparent; color: var(--c-ink); cursor: pointer;
}
.wa-chat__close:hover { background: #fff; }
.wa-chat__close .icon { width: 20px; height: 20px; }
.wa-chat__body { padding: 16px; background: #efeae2; }
.wa-chat__bubble {
  margin: 0 0 10px; padding: 10px 14px; max-width: 92%;
  border-radius: 0 14px 14px 14px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  font-size: 15px; line-height: 1.45; color: var(--c-ink);
}
.wa-chat__gif { width: 150px; height: auto; border-radius: 0 14px 14px 14px; background: #fff; }
.wa-chat__cta { display: flex; margin: 14px 16px 16px; background: #128c7e; box-shadow: none; }
.wa-chat__cta:hover { background: var(--c-ink); }

.to-top {
  right: 20px; width: 44px; height: 44px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--c-deep); color: #fbfeff;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top .icon { width: 18px; height: 18px; }

/* ---------- Imágenes y marcadores de posición ----------
   Mientras la imagen no exista en /img/, main.js agrega .is-missing
   y se muestra un recuadro con el nombre del archivo esperado. */
.media { position: relative; overflow: hidden; }
.media.is-missing { background: linear-gradient(135deg, #d9eef7, #eef8fc); }
.media.is-missing img { visibility: hidden; }
.media.is-missing::after {
  content: "IMG · " attr(data-ph);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 12px;
  font: 500 12px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #2f6f86;
  text-align: center; word-break: break-all;
  background: repeating-linear-gradient(45deg, rgba(110, 193, 228, 0.12) 0 12px, transparent 12px 24px);
  border: 2px dashed rgba(47, 146, 191, 0.45); border-radius: inherit;
}
.location .media.is-missing::after { color: rgba(255, 255, 255, 0.9); border-color: rgba(255, 255, 255, 0.35); align-items: end; padding-bottom: 46%; }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound__anim { display: grid; place-items: center; width: min(320px, 70vw); aspect-ratio: 1; margin: 0 auto 4px; }
.notfound__anim svg { width: 100%; height: 100%; }
.notfound__code { font: 700 clamp(80px, 16vw, 160px)/1 var(--ff-display); color: rgba(255, 255, 255, 0.7); margin: 0; }
.notfound .page-hero__title, .notfound .page-hero__lead { margin-inline: auto; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
