/* =====================================================
   CIDEM — Design System
   Centro Integral de la Mujer · Neuquén
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Colores marca (paleta original: coral + neutros) */
  --cidem-coral: #EB7487;
  --cidem-coral-dark: #D85970;
  --cidem-coral-soft: #FCE9ED;
  --cidem-coral-50: #FEF5F7;

  --cidem-pink-deep: #F65589;
  --cidem-burgundy: #95182C;

  /* Neutros (texto y superficies) */
  --ink-900: #222222;
  --ink-800: #2E2E33;
  --ink-700: #535353;
  --ink-500: #6F6F75;
  --ink-300: #B5B5BA;
  --ink-200: #DCDCE0;
  --ink-100: #ECECEF;
  --ink-50:  #F6F6F8;
  --footer-bg: #CBCBCD;
  --white:   #FFFFFF;

  /* Tipografía */
  --font-display: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-sans:    "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Espaciado escala 4 */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  /* Radius */
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-xl: 32px;  --r-full: 999px;

  /* Sombras */
  --sh-sm: 0 1px 2px rgba(34, 34, 34, 0.06), 0 1px 3px rgba(34, 34, 34, 0.04);
  --sh-md: 0 4px 12px rgba(34, 34, 34, 0.08), 0 2px 4px rgba(34, 34, 34, 0.04);
  --sh-lg: 0 16px 40px rgba(34, 34, 34, 0.12), 0 4px 12px rgba(34, 34, 34, 0.06);
  --sh-coral: 0 10px 30px rgba(235, 116, 135, 0.25);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --nav-h: 108px;

  /* Transiciones */
  --t-fast: 150ms ease;
  --t: 220ms cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset suave ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cidem-coral-dark); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--cidem-coral); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0 0 var(--s-4);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.35rem, 1.2vw + 1rem, 1.65rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
p  { margin: 0 0 var(--s-4); }
.lead { font-size: 1.125rem; color: var(--ink-500); line-height: 1.7; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cidem-coral);
  margin-bottom: var(--s-4);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }
.section-tight { padding: var(--s-6) 0; }
.section-band { background: var(--ink-50); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
  font-size: 0.83rem;
  color: var(--ink-500);
}
.topbar__inner {
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  padding: 10px 0;
  justify-content: flex-end;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 14px; height: 14px; color: var(--cidem-coral); }
@media (max-width: 700px) { .topbar { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-100);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; }
.brand:hover { text-decoration: none; }
/* Solo el símbolo del logo original recortado del JPG */
.brand__art {
  flex-shrink: 0;
  width: 60px;
  height: 76px;
  background-image: url('../images/logo.jpg');
  background-position: left center;
  background-size: auto 76px;
  background-repeat: no-repeat;
}
/* Cuando estamos en /medicos/, la ruta a images sube un nivel más */
.medicos-page .brand__art { background-image: url('../../images/logo.jpg'); }
.brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cidem-coral);
  letter-spacing: 0.06em;
}
.brand__tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
}
@media (max-width: 600px) {
  .brand__art { width: 44px; height: 56px; background-size: auto 56px; }
  .brand__name { font-size: 1.35rem; }
  .brand__tag { font-size: 0.6rem; letter-spacing: 0.14em; }
}
@media (max-width: 380px) {
  .brand__tag { display: none; }
}

.nav { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.nav > a, .nav .has-submenu > a {
  display: inline-flex;
  align-items: center;
  padding: var(--s-2) var(--s-4);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  border-radius: var(--r-full);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav > a:hover, .nav .has-submenu > a:hover,
.nav > a.is-active, .nav .has-submenu > a.is-active { background: var(--cidem-coral-soft); color: var(--cidem-coral-dark); }
.nav .has-submenu { position: relative; }
/* Puente hoverable en el PADRE (no en el submenú, porque éste tiene
   pointer-events:none cuando está cerrado y el mouse no lo detectaría). */
.nav .has-submenu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  /* invisible pero hoverable */
}
.nav .submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: var(--s-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
  max-height: 70vh;
  overflow-y: auto;
}
.nav .has-submenu:hover .submenu,
.nav .has-submenu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Pequeño retardo al "cerrar" para tolerar movimientos del mouse */
.nav .has-submenu:not(:hover):not(:focus-within) .submenu {
  transition-delay: 150ms;
}
.nav .submenu a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  color: var(--ink-700);
}
.nav .submenu a:hover { background: var(--cidem-coral-soft); color: var(--cidem-coral-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: var(--s-3);
  color: var(--ink-900);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-5);
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t);
    margin-left: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a, .nav .has-submenu > a { width: 100%; padding: var(--s-4); border-radius: 0; border-bottom: 1px solid var(--ink-100); }
  .nav .submenu {
    position: static; opacity: 1; pointer-events: auto;
    transform: none; box-shadow: none; border: 0; padding: 0;
    background: var(--ink-50);
    max-height: none;
  }
  .nav .has-submenu > a::after { content: ' ▾'; opacity: 0.5; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--cidem-coral);
  color: var(--white);
  box-shadow: var(--sh-coral);
}
.btn-primary:hover { background: var(--cidem-coral-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(235,116,135,0.32); }
.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn-ghost:hover { border-color: var(--cidem-coral); color: var(--cidem-coral-dark); background: var(--cidem-coral-50); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1DA851; color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t-fast);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--ink-200); }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-100); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: var(--s-5); }
.card__date {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cidem-coral);
  margin-bottom: var(--s-3);
}
.card__title { font-size: 1.1rem; margin-bottom: var(--s-3); line-height: 1.35; }
.card__excerpt { font-size: 0.93rem; color: var(--ink-500); margin: 0; }

/* ---------- Hero estático (fallback / banners simples) ---------- */
.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-9);
  background:
    radial-gradient(circle at 85% 20%, var(--cidem-coral-soft) 0%, transparent 55%),
    radial-gradient(circle at 10% 90%, var(--cidem-coral-50) 0%, transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: var(--ink-900); margin-bottom: var(--s-4); }
.hero .lead { color: var(--ink-700); font-size: 1.2rem; margin-bottom: var(--s-6); }
.hero__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- Slider de hero (con imágenes) ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--ink-100);
  height: min(78vh, 640px);
  min-height: 480px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.06);
  transition: transform 8000ms ease-out;
}
.hero-slide.is-active .hero-slide__bg { transform: scale(1); }
.hero-slide__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.88) 38%,
    rgba(255, 255, 255, 0.45) 70%,
    rgba(255, 255, 255, 0.15) 100%);
}
@media (max-width: 700px) {
  .hero-slide__bg::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.92) 40%,
      rgba(255, 255, 255, 0.7) 80%,
      rgba(255, 255, 255, 0.5) 100%);
  }
}
.hero-slide__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-right: var(--s-7);
}
.hero-slide h1 { color: var(--ink-900); margin-bottom: var(--s-4); }
.hero-slide .lead { color: var(--ink-700); font-size: 1.2rem; margin-bottom: var(--s-6); }
.hero-slide__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Animación de entrada del contenido al activarse el slide */
.hero-slide.is-active .eyebrow,
.hero-slide.is-active h1,
.hero-slide.is-active .lead,
.hero-slide.is-active .hero-slide__actions {
  animation: heroSlideIn 700ms cubic-bezier(.2,.7,.3,1) backwards;
}
.hero-slide.is-active .eyebrow { animation-delay: 100ms; }
.hero-slide.is-active h1 { animation-delay: 200ms; }
.hero-slide.is-active .lead { animation-delay: 350ms; }
.hero-slide.is-active .hero-slide__actions { animation-delay: 500ms; }
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.25);
  border: 0;
  cursor: pointer;
  transition: width var(--t), background var(--t);
}
.hero-dot:hover { background: rgba(34, 34, 34, 0.45); }
.hero-dot.is-active {
  width: 32px;
  background: var(--cidem-coral);
}

/* Flechas */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ink-100);
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--t);
  box-shadow: var(--sh-sm);
}
.hero-arrow:hover {
  background: var(--cidem-coral);
  color: var(--white);
  border-color: var(--cidem-coral);
  transform: translateY(-50%) scale(1.05);
}
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }
@media (max-width: 700px) {
  .hero-arrow { display: none; }
}

/* Page banner (cabecera interna sobria) */
.page-banner {
  background:
    radial-gradient(circle at 90% 50%, var(--cidem-coral-soft) 0%, transparent 50%),
    var(--ink-50);
  padding: var(--s-8) 0 var(--s-6);
  position: relative;
  border-bottom: 1px solid var(--ink-100);
}
.page-banner h1 { color: var(--ink-900); margin-bottom: var(--s-2); }
.page-banner .lead { color: var(--ink-500); margin: 0; }
.breadcrumb {
  display: flex; gap: var(--s-2);
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: var(--s-4);
}
.breadcrumb a { color: var(--cidem-coral-dark); }
.breadcrumb a:hover { color: var(--cidem-coral); }
.breadcrumb__sep { opacity: 0.5; }

/* ---------- Footer (blanco con acento coral) ---------- */
.site-footer {
  background: var(--white);
  color: var(--ink-700);
  padding: var(--s-8) 0 var(--s-5);
  font-size: 0.92rem;
  border-top: 1px solid var(--ink-100);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--cidem-coral);
}
.site-footer h4 {
  color: var(--ink-900);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
  font-weight: 700;
}
.site-footer a { color: var(--ink-700); }
.site-footer a:hover { color: var(--cidem-coral-dark); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: var(--s-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--ink-100);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer__brand p { margin: var(--s-3) 0 var(--s-4); }
.footer__contact-item {
  display: flex; gap: var(--s-3); align-items: flex-start;
  margin-bottom: var(--s-3); font-size: 0.9rem;
}
.footer__contact-item svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--cidem-coral-dark); margin-top: 2px; }
.footer__legal {
  padding-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-500);
}

/* ---------- Componentes utilitarios ---------- */
.text-center { text-align: center; }
.text-coral { color: var(--cidem-coral-dark); }
.text-ink   { color: var(--ink-700); }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-5 { margin-bottom: var(--s-5); }
.mt-5 { margin-top: var(--s-5); }
.mt-7 { margin-top: var(--s-7); }

.divider { height: 4px; width: 56px; background: var(--cidem-coral); border-radius: var(--r-full); margin: 0 0 var(--s-5); }
.divider-center { margin: 0 auto var(--s-5); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--cidem-coral-soft);
  color: var(--cidem-coral-dark);
}

/* Listas ---- */
.list-clean { list-style: none; padding: 0; margin: 0; }

/* Floating WhatsApp */
.fab-wa {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: var(--r-full);
  background: #25D366;
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px rgba(37,211,102,0.4);
  z-index: 40;
  transition: transform var(--t);
}
.fab-wa:hover { transform: scale(1.08); color: var(--white); }
.fab-wa svg { width: 28px; height: 28px; }

/* Doctor / staff list */
.doctor-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.doctor-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.doctor-item:hover { border-color: var(--cidem-coral); box-shadow: var(--sh-sm); }
.doctor-item__avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--cidem-coral-soft);
  color: var(--cidem-coral-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.doctor-item__body { flex: 1; min-width: 0; }
.doctor-item__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 2px;
  font-size: 1.02rem;
}
.doctor-item__schedule {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin: 0;
}

/* TOC / aside (privacidad) */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s-7);
}
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-4));
  align-self: start;
  background: var(--ink-50);
  border-radius: var(--r-md);
  padding: var(--s-5);
  font-size: 0.9rem;
}
.legal-toc h4 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: var(--s-3); font-weight: 700; font-family: var(--font-sans); }
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; margin-bottom: var(--s-2); }
.legal-toc a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--ink-700); }
.legal-toc a::before { content: counter(toc) ". "; color: var(--cidem-coral-dark); font-weight: 700; }
.legal-toc a:hover { background: var(--white); color: var(--cidem-coral-dark); }

.legal-content h2 { font-size: 1.4rem; margin-top: var(--s-7); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content ul { font-size: 0.98rem; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content ul li { margin-bottom: var(--s-2); }
.legal-content .callout {
  background: var(--cidem-coral-50);
  border-left: 4px solid var(--cidem-coral);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: var(--s-5) 0;
}

/* Formulario */
.form-row { display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row.two { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.85rem; color: var(--ink-900); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cidem-coral);
  box-shadow: 0 0 0 4px var(--cidem-coral-soft);
}
.field textarea { min-height: 140px; resize: vertical; }

/* Skip to content (accesibilidad) */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink-900); color: white;
  padding: 8px 16px; border-radius: var(--r-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Article content (notas) */
.article-content { font-size: 1.02rem; line-height: 1.75; color: var(--ink-700); }
.article-content p { margin-bottom: var(--s-4); }
.article-content strong {
  display: block;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
}
.article-content strong:first-child { margin-top: 0; }
.article-content a { color: var(--cidem-coral-dark); text-decoration: underline; }
.article-content a:hover { color: var(--cidem-coral); }
.article-content img { border-radius: var(--r-md); margin: var(--s-5) 0; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin: var(--s-3) 0 var(--s-4); }
.article-content li { margin-bottom: 6px; }

/* Galería de fotos */
.gallery-filters {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  justify-content: center;
  margin-bottom: var(--s-6);
}
.gallery-filter {
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: all var(--t-fast);
}
.gallery-filter:hover { border-color: var(--cidem-coral); color: var(--cidem-coral-dark); }
.gallery-filter.is-active {
  background: var(--cidem-coral);
  border-color: var(--cidem-coral);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--ink-100);
  transition: opacity 300ms ease, transform 300ms ease;
}
.gallery-item.is-hidden { display: none; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,21,43,0.85) 0%, rgba(20,21,43,0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--t);
  display: flex;
  align-items: flex-end;
  padding: var(--s-4);
  color: var(--white);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.gallery-item__cat { font-size: 0.75rem; opacity: 0.8; letter-spacing: 0.08em; text-transform: uppercase; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 21, 43, 0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.9rem;
  text-align: center;
  max-width: 80%;
}

/* Mapa */
.map-embed {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}

/* Iframe de turnos */
.turnos-frame-wrap {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  box-shadow: var(--sh-md);
  background: var(--white);
}
.turnos-frame {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
}
@media (max-width: 700px) {
  .turnos-frame { height: 600px; }
}

/* Animaciones suaves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
