/* Sitio Dr. Martín Recalde Montesdeoca — recreado del handoff de diseño.
   Tokens y medidas copiados del prototipo (.dc.html) al pie de la letra. */

:root {
  --color-accent: #17655c;
  --color-accent-400: #2e837a;
  --color-accent-600: #10554d;
  --color-accent-700: #0c463f;
  --color-accent-100: #e3efed;
  --color-accent-200: #c4e0dc;
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  text-wrap: pretty;
  background: #fafafa;
  color: #1d1d1f;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent-600); }
img { max-width: 100%; }

/* Marca de agua colibrí */
.marca-agua {
  position: fixed; top: -40px; right: -60px; width: 60vw;
  opacity: 0.075; z-index: 0; pointer-events: none;
}
.contenido { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
nav {
  display: flex; align-items: center; gap: 32px;
  padding: 0 max(var(--pad-x), calc((100% - 1120px) / 2 + var(--pad-x)));
  height: 84px;
  background: color-mix(in srgb, #fafafa 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid #e5e5e7;
}
.nav-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: min(420px, 34vw);
}
.nav-logo img { height: 72px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }

/* ---------- Botones pill ---------- */
.btn-wa-nav {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: #ffffff;
  font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 980px;
}
.btn-wa-nav:hover { background: var(--color-accent-600); color: #ffffff; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-accent); color: #ffffff;
  font-size: 16px; font-weight: 500; padding: 13px 28px; border-radius: 980px;
}
.btn-solid:hover { background: var(--color-accent-600); color: #ffffff; }
.btn-tel {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-accent-700); font-size: 16px; font-weight: 500;
  padding: 13px 28px; border-radius: 980px; border: 1px solid #d2d2d7;
}
.btn-tel:hover { border-color: var(--color-accent); color: var(--color-accent-600); }
.btn-tel span, .btn-tel-oscuro span { white-space: nowrap; }
/* Variantes sobre fondo oscuro */
.btn-solid-oscuro {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2e837a; color: #ffffff;
  font-size: 16px; font-weight: 500; padding: 13px 28px; border-radius: 980px;
}
.btn-solid-oscuro:hover { background: #3a968c; color: #ffffff; }
.btn-tel-oscuro {
  display: inline-flex; align-items: center; gap: 8px;
  color: #f5f5f7; font-size: 16px; font-weight: 500;
  padding: 13px 28px; border-radius: 980px; border: 1px solid #48484c;
}
.btn-tel-oscuro:hover { border-color: #a1a1a6; color: #ffffff; }

/* Iconos (Lucide inline) */
.ic { width: 18px; height: 18px; stroke: currentColor; fill: none;
      stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-card { width: 26px; height: 26px; color: var(--color-accent); }
.ic-fila { width: 16px; height: 16px; color: #2e837a; position: relative; top: 2px; }

/* ---------- Contenedor ---------- */
.envoltura { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Portada ---------- */
.portada {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(28px, 5vw, 80px); align-items: center; padding: 80px 0 90px;
}
.portada .retrato { width: 100%; max-width: 420px; border-radius: 24px; justify-self: start; }
.portada .firma { width: min(504px, 100%); height: auto; margin: 0 auto; display: block; }
.portada .texto {
  font-size: 19px; line-height: 1.55; max-width: 56ch;
  margin: 32px 0 0 auto; text-align: right; color: #48484c;
}
.portada .texto b.centrado { display: block; text-align: center; }
.portada .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; justify-content: center; }

/* ---------- Datos ---------- */
.datos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 400px));
  justify-content: center; gap: 32px clamp(48px, 8vw, 120px); padding: 44px 0;
  border-top: 1px solid #e5e5e7; border-bottom: 1px solid #e5e5e7;
}
.datos p.titulo {
  margin: 0; font-family: var(--font-heading); font-weight: 650;
  font-size: 28px; letter-spacing: -0.02em;
}
.datos p.detalle { margin: 6px 0 0; font-size: 14px; color: #6e6e73; line-height: 1.5; }

/* ---------- Títulos de sección ---------- */
h2.seccion {
  font-family: var(--font-heading); font-weight: 650;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0;
}

/* ---------- Procedimientos (tarjetas) ---------- */
.sec-procedimientos { padding: 90px 0 70px; }
.sec-procedimientos h2 { max-width: 22ch; }
.tarjetas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; margin-top: 44px;
}
.tarjeta { background: #ffffff; border-radius: 18px; padding: 28px; border: 1px solid #ebebed; }
.tarjeta h3 {
  font-family: var(--font-heading); font-weight: 600; font-size: 19px;
  line-height: 1.3; letter-spacing: -0.015em; margin: 16px 0 0;
}
.tarjeta p { font-size: 15px; line-height: 1.55; margin: 10px 0 0; color: #6e6e73; white-space: pre-line; }
.nota-diagnostico { font-size: 15px; line-height: 1.55; margin: 32px 0 0; max-width: 90ch; color: #6e6e73; }

/* ---------- Qué esperar ---------- */
.sec-pasos { padding: 40px 0 90px; }
.pasos {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px clamp(28px, 4vw, 64px); margin-top: 44px;
}
.paso .num {
  font-family: var(--font-heading); font-weight: 650; font-size: 15px;
  color: var(--color-accent-700); letter-spacing: 0.02em;
}
.paso h3 {
  font-family: var(--font-heading); font-weight: 600; font-size: 21px;
  line-height: 1.3; letter-spacing: -0.015em; margin: 10px 0 0;
}
.paso p { font-size: 15px; line-height: 1.55; margin: 10px 0 0; color: #6e6e73; white-space: pre-line; }

/* ---------- Trayectoria ---------- */
.trayectoria {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px clamp(28px, 5vw, 88px); align-items: center; padding: 0 0 90px;
}
.trayectoria p { font-size: 16px; line-height: 1.6; margin: 24px 0 0; color: #48484c; }
.trayectoria p + p { margin-top: 14px; }
.trayectoria .foto {
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
}
.trayectoria .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Preguntas ---------- */
.sec-preguntas { padding: 0 0 90px; max-width: 760px; }
.sec-preguntas h2 { margin-bottom: 24px; }
.faq { border-bottom: 1px solid #e5e5e7; padding: 24px 0; }
.faq h3 {
  font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  line-height: 1.35; letter-spacing: -0.01em; margin: 0;
}
.faq p { font-size: 15px; line-height: 1.6; margin: 10px 0 0; color: #6e6e73; }

/* ---------- Contacto (tarjeta oscura) ---------- */
.contacto {
  background: #1d1d1f; color: #f5f5f7; border-radius: 28px;
  padding: clamp(36px, 5vw, 64px); margin-bottom: 90px;
}
.contacto .rejilla {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px clamp(28px, 4vw, 64px); align-items: start;
}
.contacto h2 {
  font-family: var(--font-heading); font-weight: 650;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0;
}
.contacto .intro { font-size: 16px; line-height: 1.6; margin: 20px 0 0; max-width: 44ch; color: #a1a1a6; }
.contacto .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.contacto .filas { font-size: 15px; line-height: 1.7; color: #d2d2d7; }
.contacto .filas p { margin: 0; display: flex; gap: 12px; align-items: baseline; }
.contacto .filas p + p { margin-top: 20px; }
.contacto .filas strong { color: #f5f5f7; }
.contacto .filas a { color: #d2d2d7; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
footer { padding: 0 0 56px; font-size: 13px; line-height: 1.6; color: #6e6e73; }
footer p { margin: 0; }
footer p + p { margin-top: 8px; }

/* ---------- Página Procedimientos ---------- */
.encabezado-proc {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px clamp(28px, 4vw, 64px); align-items: center; padding: 90px 0 60px;
}
.encabezado-proc h1 {
  font-family: var(--font-heading); font-weight: 650;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.08;
  letter-spacing: -0.03em; margin: 0; max-width: 18ch;
}
.encabezado-proc .sub { font-size: 18px; line-height: 1.55; max-width: 58ch; margin: 28px 0 0; color: #48484c; }
.encabezado-proc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }

.casos { padding: 0 0 90px; display: grid; gap: 56px; }
.caso {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 28px clamp(28px, 4vw, 64px); align-items: center;
  background: #ffffff; border: 1px solid #ebebed; border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
}
.caso .foto { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.caso .foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.caso .kicker {
  margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-accent-700);
}
.caso h2 {
  font-family: var(--font-heading); font-weight: 650; font-size: 26px;
  line-height: 1.2; letter-spacing: -0.02em; margin: 10px 0 0;
}
.caso .texto { font-size: 15px; line-height: 1.6; margin: 14px 0 0; color: #6e6e73; }

.cierre {
  background: #1d1d1f; color: #f5f5f7; border-radius: 28px;
  padding: clamp(36px, 5vw, 56px); margin-bottom: 90px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 24px 48px; justify-content: space-between;
}
.cierre h2 {
  font-family: var(--font-heading); font-weight: 650;
  font-size: clamp(26px, 3vw, 36px); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0;
}
.cierre p { font-size: 16px; line-height: 1.6; margin: 14px 0 0; max-width: 44ch; color: #a1a1a6; }

/* ---------- Móvil ---------- */
@media (max-width: 700px) {
  .portada { grid-template-columns: 1fr; padding: 44px 0 60px; }
  .portada .retrato { justify-self: center; }
  .portada .texto { text-align: left; margin: 28px 0 0; }
  .trayectoria { grid-template-columns: 1fr; }
  .encabezado-proc { grid-template-columns: 1fr; padding: 56px 0 44px; }
  .caso { grid-template-columns: 1fr; }
  .sec-procedimientos { padding: 64px 0 48px; }
  .contacto, .cierre { margin-bottom: 60px; }
}
@media (max-width: 560px) {
  nav { gap: 14px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-logo { width: auto; }
  .nav-logo img { height: 52px; }
  .btn-wa-nav { padding: 7px 14px; font-size: 13px; }
}
