/* ==========================================================================
   Dr. Arturo Melendres Villa — styles.css
   --------------------------------------------------------------------------
   ÍNDICE
   00. Tokens de diseño (colores, tipografía, espacios)  ← cambia aquí la paleta
   01. Base y utilidades
   02. Botones y enlaces
   03. Header / navegación
   04. Hero
   05. Barra de credenciales
   06. Encabezados de sección
   07. Especialidades
   08. Mapa corporal / síntomas
   09. Sobre el doctor
   10. Banner deportistas
   11. Procedimientos
   12. Pasos de atención
   13. FAQ
   14. Agendar / contacto / mapa
   15. Footer
   16. WhatsApp flotante
   17. Animaciones
   18. Responsive
   ========================================================================== */


/* 00. TOKENS ================================================================
   Paleta “Hueso & Cobalto”: tinta azul profundo (confianza clínica),
   blanco hueso cálido (ortopedia, calidez) y cobalto del logotipo
   como único acento. El verde menta se usa solo para “Abierto ahora”. */
:root {
  /* Siempre en modo claro: evita que el “modo oscuro forzado” de
     Chrome/Samsung en Android invierta la paleta en celulares. */
  color-scheme: only light;

  /* Color */
  --ink:          #0F1B2D;   /* texto principal y secciones oscuras */
  --ink-2:        #18283F;
  --ink-soft:     #3C4A5E;   /* texto secundario */
  --muted:        #6A768A;
  --bone:         #F5F2EC;   /* fondo cálido */
  --bone-2:       #ECE7DE;
  --paper:        #FFFFFF;
  --cobalt:       #2152C4;   /* acento principal (del logotipo) */
  --cobalt-deep:  #183E99;
  --cobalt-tint:  #E4EBFA;
  --indigo:       #2A1F5C;   /* del logotipo, para degradados */
  --mint:         #2FB39A;   /* estado: abierto */
  --amber:        #E0A23B;   /* estado: abre más tarde */
  --line:         rgba(15, 27, 45, .10);
  --line-light:   rgba(255, 255, 255, .14);

  /* Tipografía */
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Espaciado y forma */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 140px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(15,27,45,.05), 0 2px 8px rgba(15,27,45,.04);
  --shadow:    0 10px 30px -12px rgba(15,27,45,.18), 0 2px 6px rgba(15,27,45,.04);
  --shadow-lg: 0 30px 60px -20px rgba(15,27,45,.28);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}


/* 01. BASE ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-tint { background: var(--paper); }
.muted { color: var(--muted); }

.i { width: 20px; height: 20px; flex: none; }
.i-lg { width: 26px; height: 26px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cobalt);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .6; }
.eyebrow .dot { display: none; }
.eyebrow-light { color: #9DB6F0; }


/* 02. BOTONES ============================================================== */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 15px/1 var(--font-sans); letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { --bg: var(--cobalt); box-shadow: 0 10px 24px -10px rgba(33,82,196,.7); }
.btn-primary:hover { --bg: var(--cobalt-deep); box-shadow: 0 16px 30px -12px rgba(33,82,196,.75); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(15,27,45,.18); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.6); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-light:hover { --bg: var(--bone); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 17px 26px; font-size: 15.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--cobalt); margin-top: 28px;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }
.link-arrow.light { color: #fff; margin-top: 14px; }


/* 03. HEADER =============================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s, height .3s;
}
.site-header.is-scrolled {
  background: rgba(245, 242, 236, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-weight: 400; font-size: 20px; letter-spacing: .005em; }
.brand-text small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-list a:not(.btn):hover, .nav-list a.is-active { color: var(--ink); background: rgba(15,27,45,.06); }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child  { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child  { top: 21px; transform: rotate(-45deg); }


/* 04. HERO ================================================================= */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px));
  padding-bottom: clamp(70px, 9vw, 120px);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(33,82,196,.13), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(42,31,92,.07), transparent 70%),
    var(--bone);
}
.hero-bg::after { /* rejilla sutil tipo placa radiográfica */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,27,45,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,27,45,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 80% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.8vw, 84px);
  line-height: .98; letter-spacing: -.02em;
  margin: 22px 0 26px;
}
.hero-title em { color: var(--cobalt); }
.hero-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-meta {
  display: grid; grid-template-columns: .8fr 1.5fr .8fr; gap: 30px; max-width: 600px;
  margin: 48px 0 0; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-meta dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 540px; justify-self: end; width: 100%; }
.orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(33,82,196,.18); }
.ring.r1 { inset: 0; border-style: dashed; animation: spin 80s linear infinite; }
.ring.r2 { inset: 9%; }
.ring.r3 { inset: 18%; border-color: rgba(33,82,196,.10); }
.orbit-core {
  position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, var(--bone-2) 75%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.8);
  display: grid; place-items: center;
}
.orbit-core img { width: 62%; filter: drop-shadow(0 12px 18px rgba(42,31,92,.18)); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14.5px; line-height: 1.25; }
.float-card small { display: block; font-size: 12.5px; color: var(--muted); }
.float-card .i { color: var(--cobalt); }
.fc-status { top: 4%; left: 2%; }
.fc-arthro { top: 70%; right: -6%; animation-delay: -2.5s; }
.fc-img { top: 44%; left: -15%; animation-delay: -5s; }

.status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--muted); box-shadow: 0 0 0 4px rgba(106,118,138,.15);
}
.status-dot.open { background: var(--mint); box-shadow: 0 0 0 4px rgba(47,179,154,.18); animation: blink 2s ease-in-out infinite; }
.status-dot.later { background: var(--amber); box-shadow: 0 0 0 4px rgba(224,162,59,.18); }


/* 05. CREDENCIALES ========================================================= */
.trust { background: var(--ink); color: rgba(255,255,255,.82); }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px;
  padding-block: 22px; font-size: 14px; font-weight: 500; letter-spacing: .02em;
}
.trust-row span { display: inline-flex; align-items: center; gap: 10px; }
.trust-row span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #7FA0EE; }


/* 06. ENCABEZADOS DE SECCIÓN =============================================== */
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -.015em;
  margin: 18px 0 18px;
}
.section-head h2 em { color: var(--cobalt); }
.section-head p { color: var(--ink-soft); font-size: 18px; }
.section-head-left { text-align: left; margin: 0; }


/* 07. ESPECIALIDADES ======================================================= */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spec-card {
  position: relative; padding: 34px 30px 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden;
}
.spec-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--cobalt), var(--indigo));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.spec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.spec-card:hover::after { transform: scaleX(1); }
.spec-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--cobalt-tint); color: var(--cobalt); margin-bottom: 26px;
  transition: background .3s, color .3s;
}
.spec-icon .i { width: 30px; height: 30px; }
.spec-card:hover .spec-icon { background: var(--cobalt); color: #fff; }
.spec-card h3 { font-family: var(--font-serif); font-size: 30px; margin-bottom: 12px; }
.spec-card p { color: var(--ink-soft); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tags li {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  padding: 5px 11px; border-radius: 999px; background: var(--bone); border: 1px solid var(--line);
}


/* 08. MAPA CORPORAL / SÍNTOMAS ============================================ */
.bodymap {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
  background: var(--bone); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--line);
}
.bodymap-figure { position: relative; display: flex; flex-direction: column; align-items: center; }
.bodymap-figure svg { width: min(100%, 300px); height: auto; overflow: visible; }
.figure > * { fill: var(--bone-2); }
.figure .limb { fill: none; stroke: var(--bone-2); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.figure .leg { stroke-width: 26; }
.figure { filter: drop-shadow(0 1px 0 rgba(15,27,45,.06)); }

.hotspot { cursor: pointer; outline: none; }
.hotspot .core { fill: var(--paper); stroke: var(--cobalt); stroke-width: 2.5; transition: fill .25s, r .25s; }
.hotspot .pulse { fill: var(--cobalt); opacity: .18; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.hotspot:hover .core, .hotspot:focus-visible .core { fill: var(--cobalt-tint); }
.hotspot.is-active .core { fill: var(--cobalt); stroke: #fff; }
.hotspot.is-active .pulse { opacity: .3; }

.zone-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.zone-pills button {
  font: 600 13px/1 var(--font-sans); padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  transition: all .2s;
}
.zone-pills button:hover { border-color: var(--cobalt); color: var(--cobalt); }
.zone-pills button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.zone-panel {
  background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 44px);
  box-shadow: var(--shadow); min-height: 420px; display: flex; flex-direction: column;
}
.zone-panel.is-changing > * { animation: fadeUp .45s var(--ease) both; }
.zone-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); }
.zone-panel h3 { font-family: var(--font-serif); font-size: clamp(28px, 2.8vw, 38px); margin: 12px 0 14px; }
.zone-panel > p { color: var(--ink-soft); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 26px 0 32px; }
.checklist li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--cobalt-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232152C4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/11px no-repeat;
}
.zone-panel .btn { margin-top: auto; align-self: flex-start; }

.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 70px; }
.symptoms h4 {
  font-family: var(--font-serif); font-size: 26px; padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.symptoms li { padding: 7px 0; color: var(--ink-soft); font-size: 15.5px; border-bottom: 1px dashed var(--line); }


/* 09. SOBRE EL DOCTOR ===================================================== */
.doctor-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.doctor-photo { position: relative; }
.doctor-photo-inner {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 35%, rgba(255,255,255,.95), transparent 70%),
    linear-gradient(160deg, var(--cobalt-tint), var(--bone-2));
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.doctor-photo-inner img { width: 58%; }
/* Si usas una foto real, se ajusta para cubrir todo el marco: */
.doctor-photo-inner img.photo { width: 100%; height: 100%; object-fit: cover; }
.doctor-badge {
  position: absolute; right: -24px; bottom: 34px;
  background: var(--ink); color: #fff; padding: 18px 22px; border-radius: 16px; box-shadow: var(--shadow-lg);
}
.doctor-badge strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.doctor-badge span { font-size: 13px; color: rgba(255,255,255,.7); }

.doctor-copy h2 { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 66px); letter-spacing: -.015em; margin: 18px 0 28px; }
.doctor-copy h2 em { color: var(--cobalt); }
.doctor-copy blockquote {
  margin: 0 0 26px; padding-left: 24px; border-left: 2px solid var(--cobalt);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35;
}
.doctor-copy > p { color: var(--ink-soft); }
.doctor-points { margin-top: 30px; display: grid; gap: 12px; }
.doctor-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.doctor-points .i { color: var(--cobalt); margin-top: 3px; }


/* 10. DEPORTISTAS ========================================================= */
.sport { padding-inline: var(--gutter); }
.sport-inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  max-width: var(--container); margin: 0 auto; padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg); color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(33,82,196,.55), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--indigo) 100%);
}
.sport-inner::before { /* línea de movimiento decorativa */
  content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02);
}
.sport h2 { font-family: var(--font-serif); font-size: clamp(34px, 4vw, 54px); margin: 14px 0 14px; }
.sport h2 em { color: #A9C0F5; }
.sport p { color: rgba(255,255,255,.75); max-width: 36em; }
.sport .btn { position: relative; }


/* 11. PROCEDIMIENTOS ====================================================== */
.proc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.proc-grid .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
.proc-list { counter-reset: proc; display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.proc-list li {
  counter-increment: proc;
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 16.5px;
  transition: color .25s, padding .3s var(--ease);
}
.proc-list li::before {
  content: counter(proc, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 22px; font-weight: 400; color: var(--cobalt); min-width: 28px;
}
.proc-list li:hover { color: var(--cobalt); padding-left: 10px; }


/* 12. PASOS =============================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; padding: 30px 26px 32px; border-radius: var(--radius); background: var(--bone); border: 1px solid var(--line); }
.step-n { font-family: var(--font-serif); font-size: 50px; line-height: 1; color: var(--cobalt); opacity: .9; }
.step h3 { font-family: var(--font-serif); font-size: 26px; margin: 22px 0 10px; }
.step p { color: var(--ink-soft); font-size: 15px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -16px; width: 12px; height: 12px;
  border-top: 1.5px solid var(--cobalt); border-right: 1.5px solid var(--cobalt); transform: rotate(45deg); opacity: .5;
}


/* 13. FAQ ================================================================= */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 56px 24px 0; font-weight: 600; font-size: 17.5px;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center/11px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 11px no-repeat;
  transition: transform .35s var(--ease), background-color .25s;
}
.faq-item summary:hover { color: var(--cobalt); }
.faq-item[open] summary::after { transform: rotate(135deg); background-color: var(--cobalt-tint); }
.faq-item p { padding: 0 56px 26px 0; color: var(--ink-soft); }
.faq-item[open] p { animation: fadeUp .4s var(--ease); }


/* 14. CONTACTO ============================================================ */
.contact { padding-top: 0; }
.contact-card {
  display: grid; grid-template-columns: 1.25fr .75fr; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
}
.contact-main {
  padding: clamp(36px, 6vw, 72px);
  background: radial-gradient(70% 90% at 0% 0%, rgba(33,82,196,.35), transparent 60%);
}
.contact-main h2 { font-family: var(--font-serif); font-size: clamp(40px, 5vw, 68px); letter-spacing: -.015em; margin: 16px 0 16px; }
.contact-main h2 em { color: #A9C0F5; }
.contact-lead { color: rgba(255,255,255,.72); max-width: 32em; }
.contact-actions { display: grid; gap: 12px; margin-top: 38px; max-width: 460px; }
.action {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px;
  border: 1px solid var(--line-light); background: rgba(255,255,255,.04);
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.action:hover { background: rgba(255,255,255,.09); transform: translateX(4px); }
.action .i { width: 24px; height: 24px; color: #A9C0F5; }
.action small { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); }
.action strong { font-size: 16.5px; }
.action-primary { background: var(--cobalt); border-color: var(--cobalt); }
.action-primary:hover { background: var(--cobalt-deep); }
.action-primary .i, .action-primary small { color: rgba(255,255,255,.9); }

.contact-side { padding: clamp(32px, 5vw, 56px); background: var(--ink-2); border-left: 1px solid var(--line-light); }
.status-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-light); font-size: 13.5px; font-weight: 600;
}
.side-title { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 32px 0 12px; }
.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours th { text-align: left; font-weight: 500; color: rgba(255,255,255,.75); padding: 8px 0; }
.hours td { text-align: right; padding: 8px 0; font-variant-numeric: tabular-nums; }
.hours td.closed { color: rgba(255,255,255,.4); }
.hours td.urg { color: #F3B9B9; font-weight: 600; }
.hours-note { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.62); }

/* Urgencias 24 h */
.urgent {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(214,69,69,.22), rgba(214,69,69,.08));
  border: 1px solid rgba(240,128,128,.35); transition: transform .25s var(--ease), background .25s;
}
.urgent:hover { transform: translateY(-2px); background: rgba(214,69,69,.3); }
.urgent-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #D64545; color: #fff; flex: none; }
.urgent small { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); }
.urgent strong { font-size: 16px; white-space: nowrap; }

/* Sedes */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.place { padding: 30px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }
.place h3 { font-family: var(--font-serif); font-size: 28px; margin: 14px 0 10px; }
.place p { color: var(--ink-soft); font-size: 15px; }
.place .link-arrow { margin-top: auto; padding-top: 18px; align-self: flex-start; border-bottom: 0; }
.place-main { background: var(--cobalt-tint); border-color: transparent; }
.place-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: #fff; }
.place-tag-soft { background: var(--bone-2); color: var(--ink-soft); }
.hours tr { border-bottom: 1px solid rgba(255,255,255,.06); }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; font-weight: 700; }
.hours tr.is-today th::after { content: " · hoy"; color: #A9C0F5; font-weight: 600; }
.address { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.6; }

.map { margin-top: 20px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--bone-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }


/* 15. FOOTER ============================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 80px 0 30px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-light); }
.footer-logo { width: 58px; height: 58px; border-radius: 16px; background: var(--bone); display: grid; place-items: center; margin-bottom: 20px; }
.footer-logo img { width: 38px; }
.footer-brand strong { color: #fff; font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.footer-brand p + p { margin-top: 8px; }
.site-footer h4 { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.site-footer li { padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,.45); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 26px; font-size: 13px; }


/* 16. BOTONES FLOTANTES (Google + Facebook + Instagram + WhatsApp) =========================== */
.float-actions { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ig-float {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 12px 26px -8px rgba(214,36,159,.55);
  transition: transform .3s var(--ease);
}
.ig-float .i { width: 25px; height: 25px; }
.ig-float:hover { transform: scale(1.08); }
.fb-float {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: #1877F2; box-shadow: 0 12px 26px -8px rgba(24,119,242,.55);
  transition: transform .3s var(--ease);
}
.fb-float .i { width: 25px; height: 25px; }
.fb-float:hover { transform: scale(1.08); }
.g-float {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid rgba(15,27,45,.08);
  box-shadow: 0 12px 26px -10px rgba(15,27,45,.35);
  transition: transform .3s var(--ease);
}
.g-float .i { width: 26px; height: 26px; }
.g-float:hover { transform: scale(1.08); }
.wa-float {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .3s var(--ease), opacity .3s;
}
.wa-float .i { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: ring 2.6s ease-out infinite;
}


/* 17. ANIMACIONES ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink  { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pulse  { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes ring   { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

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


/* 18. RESPONSIVE ========================================================== */
@media (max-width: 1080px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .header-cta { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }

  /* Menú móvil */
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bone); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 26px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
  }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: var(--bone); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a:not(.btn) { padding: 14px 6px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn):hover { background: none; }
  .nav-cta-mobile { display: block; margin-top: 18px; }
  .nav-cta-mobile .btn { width: 100%; }

  .hero-grid, .bodymap, .doctor-grid, .proc-grid, .faq-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; justify-self: center; margin-top: 10px; }
  .fc-status { left: 0; }
  .fc-arthro { right: 0; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-meta > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .proc-grid .section-head { position: static; }
  .symptoms { grid-template-columns: 1fr; gap: 30px; }
  .doctor-photo { max-width: 440px; }
  .doctor-badge { right: 16px; }
  .contact-side { border-left: 0; border-top: 1px solid var(--line-light); }
  .sport-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .zone-panel { min-height: 0; }
  .places { grid-template-columns: 1fr; }
  .hero-meta { max-width: none; }
}

@media (max-width: 600px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: 17px; }
  .spec-grid, .steps, .proc-list { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { grid-template-columns: 1fr; }
  .trust-row { justify-content: flex-start; }
  .float-card { padding: 11px 14px; }
  .float-card small { font-size: 11.5px; }
  .fc-img { display: none; }
  .fc-arthro { top: auto; bottom: 4%; right: 0; }
  .bodymap-figure svg { width: min(100%, 230px); }
  .map { height: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-actions { right: 14px; bottom: 14px; gap: 10px; }
  .wa-float { width: 54px; height: 54px; }
  .ig-float, .fb-float, .g-float { width: 46px; height: 46px; }
  .urgent strong { white-space: normal; }
}
.status-dot.urgent { background: #D64545; box-shadow: 0 0 0 4px rgba(214,69,69,.18); }
.urgent strong [data-phone-text] { white-space: nowrap; }
