/* =========================================================
   ACNÉ FACIALES IRAPUATO — Hoja de estilos principal
   HTML5 + CSS3 puro, sin frameworks ni preprocesadores.
   Organización: variables > reset > tipografía > utilidades >
   componentes > secciones > responsive > accesibilidad.
   ========================================================= */

/* ---------- 1. Variables de marca ---------- */
:root {
  /* Azul institucional extraído del logotipo original */
  --brand-blue: #001A5C;
  --brand-blue-dark: #000F38;
  --brand-blue-light: #274785;
  --brand-blue-soft: #EAF0F8;
  --ivory: #F7F5F1;
  --surface: #FFFFFF;
  --text-primary: #191D25;
  --text-secondary: #667085;
  --text-inverse: #F7F5F1;
  --border: #E1E5EC;
  --border-soft: #ECEEF3;
  --success: #2E7D5A;
  --whatsapp: #25D366;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 1.5rem;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --nav-height: 84px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-mid: 0.5s;
  --dur-slow: 0.9s;

  --shadow-sm: 0 2px 10px rgba(0, 26, 92, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 26, 92, 0.1);
  --shadow-lg: 0 24px 60px rgba(0, 26, 92, 0.14);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
input, textarea, select { background: none; border: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brand-blue);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 500; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand-blue);
  display: inline-block;
}

/* Reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Utilidades de layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.section--soft { background: var(--brand-blue-soft); }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--brand-blue); color: var(--text-inverse); }
.section--dark h2, .section--dark h3, .section--dark .eyebrow { color: var(--text-inverse); }
.section--dark p { color: rgba(247, 245, 241, 0.78); }
.section--dark .eyebrow::before { background: var(--text-inverse); }

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-lg);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--space-sm); font-size: 1.05rem; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-sm);
  background: var(--brand-blue);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-blue-dark); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn--ghost:hover { background: var(--brand-blue); color: #fff; }

.btn--light {
  background: #fff;
  color: var(--brand-blue);
}
.btn--light:hover { background: var(--ivory); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; min-height: 38px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn--whatsapp:hover { background: #1fb959; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 0.92rem;
  position: relative;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }

/* ---------- 5. Encabezado / navegación ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding-block: 18px;
  transition: background var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease), padding var(--dur-mid) var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  padding-block: 10px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; transition: height var(--dur-mid) var(--ease); }
.site-header.is-solid .brand img { height: 40px; }

/* Sobre el hero (transparente): el logo es azul, se mantiene legible sobre imagen clara */
.brand-mark--fallback {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brand-blue);
}

.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-desktop a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-blue);
  padding: 0.4rem 0.1rem;
  position: relative;
}
.nav-desktop a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-fast) var(--ease);
}
.nav-desktop a:not(.btn):hover::after,
.nav-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--surface);
  z-index: 490;
  display: flex;
  flex-direction: column;
  padding: 110px var(--space-md) var(--space-lg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-mid) var(--ease), visibility var(--dur-mid);
}
.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.nav-mobile a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--brand-blue);
}
.nav-mobile .nav-mobile__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.nav-mobile .nav-mobile__meta a { font-size: 0.9rem; color: var(--text-secondary); font-weight: 600; }

body.nav-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-zoom 16s var(--ease) forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,15,56,0.32) 0%, rgba(0,15,56,0.18) 40%, rgba(0,15,56,0.78) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 140px var(--space-2xl);
}
.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-sm);
}
.hero h1 {
  color: #fff;
  max-width: 16ch;
  margin-bottom: var(--space-sm);
}
.hero__subtext {
  max-width: 46ch;
  color: rgba(247,245,241,0.88);
  font-size: 1.08rem;
  margin-bottom: var(--space-md);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
}
.scroll-cue__line {
  width: 1px; height: 34px;
  background: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  animation: scroll-cue 2.4s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; transform: none; }
  .scroll-cue__line::after { animation: none; display: none; }
}

/* ---------- 7. Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.38s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.44s; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- 8. Grids genéricos ---------- */
.grid {
  display: grid;
  gap: var(--space-md);
}
.grid--needs { grid-template-columns: repeat(2, 1fr); }
.grid--treatments { grid-template-columns: repeat(2, 1fr); }
.grid--categories { grid-template-columns: repeat(2, 1fr); }
.grid--process { grid-template-columns: repeat(2, 1fr); }
.grid--2 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--needs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 780px) {
  .grid--2 { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-lg); }
}
@media (min-width: 860px) {
  .grid--treatments { grid-template-columns: repeat(3, 1fr); }
  .grid--categories { grid-template-columns: repeat(3, 1fr); }
  .grid--process { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .grid--treatments { grid-template-columns: repeat(4, 1fr); }
  .grid--needs { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- 9. Tarjetas de necesidad ---------- */
.need-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  text-align: left;
}
.need-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.need-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.need-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-fast) var(--ease); }
.need-card:hover .need-card__photo img { transform: scale(1.06); }
.need-card__icon {
  width: 40px; height: 40px;
  margin-top: -28px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  border: 2px solid var(--surface);
  box-shadow: 0 2px 6px rgba(11, 46, 115, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  position: relative;
  z-index: 1;
}
.need-card__icon svg { width: 20px; height: 20px; }
.need-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--text-primary); }
.need-card span.link-arrow { font-size: 0.82rem; }

/* ---------- 10. Tarjetas de tratamiento ---------- */
.treatment-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  height: 100%;
}
.treatment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.treatment-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--brand-blue-soft); }
.treatment-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.treatment-card:hover .treatment-card__media img { transform: scale(1.06); }
.treatment-card__category {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--brand-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.treatment-card__body { padding: var(--space-sm) var(--space-sm) var(--space-md); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.treatment-card__body h3 { font-size: 1.15rem; }
.treatment-card__desc { font-size: 0.9rem; flex: 1; }
.treatment-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.25rem;
}
.treatment-card__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-blue); font-weight: 600; }
.treatment-card__price small { font-family: var(--font-body); font-size: 0.7rem; color: var(--text-secondary); font-weight: 700; margin-left: 0.2rem; }
.treatment-card__duration { font-size: 0.78rem; color: var(--text-secondary); }
.treatment-card__actions { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.treatment-card__actions .btn { flex: 1; padding-inline: 0.9rem; font-size: 0.82rem; }

/* ---------- 11. Resultados / editorial ---------- */
.editorial {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.editorial img { width: 100%; height: 100%; object-fit: cover; }
.editorial--tall { aspect-ratio: 3/4; }

.note-variance {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.9rem 1.1rem;
  background: var(--brand-blue-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-blue);
}

/* ---------- 12. Proceso ---------- */
.process-step {
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  position: relative;
}
.process-step__number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--brand-blue-soft);
  -webkit-text-stroke: 1px var(--brand-blue);
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.9rem; }

/* ---------- 12B. Galería de experiencia (Resultados / Nosotros) ----------
 * Sprint 1C: una fotografía principal + dos secundarias, sin implicar
 * comparación de "antes y después" — son tomas independientes de
 * procedimiento/atención.
 */
.experience-gallery {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}
.experience-gallery__principal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.experience-gallery__principal img { width: 100%; height: 100%; object-fit: cover; }
.experience-gallery__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.experience-gallery__secondary figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  margin: 0;
}
.experience-gallery__secondary img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 780px) {
  .experience-gallery { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .experience-gallery__secondary { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}

/* ---------- 13. Categorías ---------- */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.category-card:hover img { transform: scale(1.07); }
.category-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,15,56,0.05) 30%, rgba(0,15,56,0.82) 100%);
}
.category-card__label {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

/* ---------- 14. Mapa / contacto ---------- */
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.98rem;
}
.contact-row__icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row__icon svg { width: 18px; height: 18px; }
.contact-row a { font-weight: 700; color: var(--brand-blue); }
.contact-row a:hover { text-decoration: underline; }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--brand-blue-soft);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.social-row { display: flex; gap: 0.7rem; }
.social-chip {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.social-chip:hover { background: var(--brand-blue); color: #fff; transform: translateY(-3px); }
.social-chip svg { width: 19px; height: 19px; }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--brand-blue-dark);
  color: rgba(247,245,241,0.75);
  padding-block: var(--space-xl) var(--space-lg);
}
.site-footer a { color: rgba(247,245,241,0.75); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(247,245,241,0.12);
  margin-bottom: var(--space-md);
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; font-size: 0.9rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; font-size: 0.8rem; }

/* ---------- 16. Botón flotante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  z-index: 450;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--whatsapp);
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  font-weight: 700;
  font-size: 0.88rem;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 30px rgba(0,0,0,0.28); }
.whatsapp-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-float__label { white-space: nowrap; }
@media (max-width: 640px) {
  .whatsapp-float { padding: 0.85rem; }
  .whatsapp-float__label { display: none; }
}

/* ---------- 17. Breadcrumbs ---------- */
.breadcrumbs {
  padding-top: calc(var(--nav-height) + 22px);
  padding-bottom: 0.5rem;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-secondary); }
.breadcrumbs a { color: var(--text-secondary); font-weight: 600; }
.breadcrumbs a:hover { color: var(--brand-blue); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--border); }
.breadcrumbs li[aria-current] { color: var(--brand-blue); font-weight: 700; }

/* ---------- 18. Página interior: hero corto ---------- */
.page-hero {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: var(--space-lg);
  background: var(--brand-blue-soft);
}
.page-hero .eyebrow { margin-bottom: 0.6rem; }
.page-hero p.lede { max-width: 62ch; font-size: 1.05rem; margin-top: 0.9rem; }

/* ---------- 19. Filtros / buscador tratamientos ---------- */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  position: sticky;
  top: calc(var(--nav-height) - 10px);
  background: var(--surface);
  z-index: 10;
  padding-block: 0.75rem;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.2rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.search-field:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--brand-blue-soft); }
.search-field svg { width: 18px; height: 18px; color: var(--text-secondary); flex-shrink: 0; }
.search-field input {
  flex: 1;
  padding: 0.7rem 0.6rem;
  font-size: 0.95rem;
}
.search-field input::placeholder { color: var(--text-secondary); }
.search-field button { color: var(--text-secondary); padding: 0.4rem; border-radius: 50%; }
.search-field button:hover { background: var(--brand-blue-soft); color: var(--brand-blue); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.filter-chip {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.filter-chip[aria-pressed="true"] {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.catalog-count { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-sm); }
.catalog-empty {
  display: none;
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
  color: var(--text-secondary);
}
.catalog-empty.is-visible { display: block; }
.catalog-empty h3 { margin-bottom: 0.5rem; }

.treatment-card[hidden] { display: none; }
.treatment-card.is-filtered-out { display: none; }

/* ---------- 20. FAQ (detalles/summary) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 1.2rem;
  background: var(--surface);
}
.faq-item summary {
  padding: 1.1rem 0;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--brand-blue);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brand-blue);
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.1rem; font-size: 0.95rem; }

/* ---------- 21. Datos de tratamiento (reutilizado por el modal, Sprint 1B) ---------- */
.treatment-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-block: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.treatment-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 0.25rem; }
.treatment-facts dd { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand-blue); }
.treatment-facts dd small { font-family: var(--font-body); font-size: 0.68rem; color: var(--text-secondary); font-weight: 700; }

.benefit-list { display: grid; gap: 0.9rem; grid-template-columns: 1fr; margin-top: var(--space-sm); }
@media (min-width: 640px) { .benefit-list { grid-template-columns: 1fr 1fr; } }
.benefit-item { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; }
.benefit-item svg { width: 20px; height: 20px; color: var(--brand-blue); flex-shrink: 0; margin-top: 2px; }

.valoracion-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  background: var(--brand-blue-soft);
  border-radius: var(--radius-md);
  margin-block: var(--space-md);
}
.valoracion-note svg { width: 24px; height: 24px; color: var(--brand-blue); flex-shrink: 0; }

/* ---------- 21B. Modal de tratamiento (Sprint 1B) ----------
 * Un solo <dialog> reutilizable en /tratamientos/, poblado dinámicamente
 * por app.js para los 36 tratamientos. Ver <dialog id="treatment-dialog">.
 */
.treatment-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: none;
  width: min(94vw, 880px);
  max-height: min(90vh, 780px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--text-primary);
}
.treatment-dialog::backdrop {
  background: rgba(0, 15, 56, 0.6);
}
@supports not selector(::backdrop) {
  .treatment-dialog[open] { background: var(--surface); }
}
.treatment-dialog__content {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  overflow: hidden;
  position: relative;
}
.treatment-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.treatment-dialog__close:hover { background: #fff; }
.treatment-dialog__close svg { width: 18px; height: 18px; }

.treatment-dialog__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand-blue-soft);
}
.treatment-dialog__media img { width: 100%; height: 100%; object-fit: cover; }

.treatment-dialog__body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.treatment-dialog__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.treatment-dialog__body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.treatment-dialog__description { margin-top: 0.6rem; font-size: 1rem; }
.treatment-dialog__body section { margin-top: var(--space-sm); }
.treatment-dialog__body section h3 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--brand-blue); }
.treatment-dialog__body section p { font-size: 0.92rem; }

.treatment-dialog__body .treatment-facts { margin-block: var(--space-sm); }
.treatment-dialog__body .valoracion-note { font-size: 0.85rem; }
.treatment-dialog__body .valoracion-note p { color: var(--text-primary); margin: 0; }
.treatment-dialog__body .valoracion-note + .valoracion-note { margin-top: -0.5rem; }

.treatment-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}
.treatment-dialog__actions .btn { flex: 1 1 200px; }

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 0.9rem;
}
.article-link[hidden] { display: none; }

@media (min-width: 720px) {
  .treatment-dialog { width: min(90vw, 880px); }
  .treatment-dialog__content { flex-direction: row; }
  .treatment-dialog__media {
    aspect-ratio: auto;
    width: 42%;
    max-height: 100%;
  }
  .treatment-dialog__body { width: 58%; }
}

@media (max-width: 719px) {
  .treatment-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    inset: 0;
  }
  .treatment-dialog__media { aspect-ratio: 4/3; }
  .treatment-dialog__body {
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
  }
  .treatment-dialog__close {
    top: calc(14px + env(safe-area-inset-top, 0px));
  }
}

body.dialog-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .treatment-dialog, .treatment-dialog::backdrop { transition: none !important; animation: none !important; }
}

/* ---------- 22. Formulario de contacto ---------- */
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-sm); }
.form-field label { font-size: 0.85rem; font-weight: 700; color: var(--brand-blue); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  background: var(--surface);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px var(--brand-blue-soft);
}
.form-field .field-error {
  font-size: 0.8rem;
  color: #B3261E;
  display: none;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #B3261E; }
.form-field.has-error .field-error { display: block; }

.form-note { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.4rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.form-status {
  margin-top: var(--space-sm);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-status.is-success { display: block; background: rgba(46,125,90,0.1); color: var(--success); }
.form-status.is-error { display: block; background: rgba(179,38,30,0.1); color: #B3261E; }

/* ---------- 23. Tarjetas de proceso agenda / blog ---------- */
.bridge-card {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.bridge-card__icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-sm);
}
.bridge-card__icon svg { width: 32px; height: 32px; }

.article-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card__media { aspect-ratio: 16/10; overflow: hidden; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: var(--space-sm); }
.article-card__meta { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-blue); font-weight: 700; margin-bottom: 0.5rem; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--space-lg); margin-bottom: 0.75rem; }
.prose h3 { margin-top: var(--space-md); margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; color: var(--text-secondary); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose blockquote {
  border-left: 3px solid var(--brand-blue);
  padding-left: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brand-blue);
  margin: var(--space-md) 0;
}

/* ---------- 24. Utilidades responsivas finales ---------- */
.hide-mobile { display: none; }
@media (min-width: 780px) { .hide-mobile { display: block; } }
.show-mobile { display: block; }
@media (min-width: 780px) { .show-mobile { display: none; } }

.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }

@media (max-width: 480px) {
  :root { --container-pad: 1.1rem; }
  .hero__content { padding-top: 120px; }
}
