/* Psiquiatría CMN 20 de Noviembre · premium.css · lenguaje iOS (Human Interface Guidelines), oct-2026
 * Fondo del sistema #F2F2F7, celdas blancas agrupadas (estilo Ajustes), San Francisco, títulos grandes en negrita,
 * materiales translúcidos solo donde iOS los usa (barra, menús, hojas, controles sobre oscuro),
 * sombras suaves multinivel, esquinas continuas grandes. Color de acento de la app (tint): guinda #7D1535.
 */

/* Tipografía institucional del Gobierno de México: Patria (titulares; versión oficial libre derivada de Gelica,
 * copia local en assets/fonts con respaldo en el CDN de gob.mx) y Montserrat (texto). */
@font-face { font-family: "Patria"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/patria-light.otf") format("opentype"), url("https://framework-gb.cdn.gob.mx/applications/cms/fonts/Patria_Light.otf") format("opentype"); }
@font-face { font-family: "Patria"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/patria-regular.otf") format("opentype"), url("https://framework-gb.cdn.gob.mx/applications/cms/fonts/Patria_Regular.otf") format("opentype"); }
@font-face { font-family: "Patria"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/patria-bold.otf") format("opentype"), url("https://framework-gb.cdn.gob.mx/applications/cms/fonts/Patria_Bold.otf") format("opentype"); }

:root {
  /* Acento (tint) de la app y marca */
  --tint: #7D1535;
  --tint-hi: #93203F;
  --guinda: #7D1535;
  --guinda-bright: #93203F;
  --guinda-deep: #4E0D22;
  --guinda-ink: #FFFFFF;
  --gold: #A87F35;
  --gold-ink: #8C6A2B;
  --gold-soft: #E9D9B4;
  --gold-pale: #F6EEDD;
  --focus: #7D1535;

  /* Colores del sistema iOS (modo claro) */
  --bg: #F2F2F7;
  --cell: #FFFFFF;
  --label: #1D1D1F;
  --label-2: rgba(60,60,67,.62);
  --label-3: rgba(60,60,67,.32);
  --separator: rgba(60,60,67,.18);
  --fill: rgba(118,118,128,.12);
  --fill-2: rgba(118,118,128,.08);
  --green: #34C759;
  --red: #FF3B30;

  /* Nombres heredados (el HTML los usa en línea) */
  --canvas: var(--bg);
  --paper: var(--bg);
  --paper-2: var(--separator);
  --ink: var(--label);
  --ink-2: #6E6E73;
  --rule: var(--separator);
  --sep: var(--separator);

  /* Materiales */
  --mat: rgba(242,242,247,.78);
  --mat-thick: rgba(249,249,251,.92);
  --blur: saturate(180%) blur(24px);

  --sf: "Montserrat", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sf-display: "Patria", "Montserrat", Georgia, serif;
  --font-display: var(--sf-display);
  --font-body: var(--sf);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;

  --radius: 22px;
  --radius-sm: 14px;
  --r-lg: 32px;
  --r-pill: 980px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.04);
  --shadow-2: 0 2px 6px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08), 0 30px 60px rgba(0,0,0,.05);
  --ease: cubic-bezier(.25,1,.5,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --dur: 240ms;
  --ring: 0 0 0 4px rgba(125,21,53,.22);
  --nav-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sf); font-size: 16px; line-height: 1.6; letter-spacing: -.006em;
  color: var(--label); background: var(--bg); overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern";
}
img { max-width: 100%; height: auto; }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
strong, b { font-weight: 600; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
::selection { background: rgba(125,21,53,.16); }

/* ---------- BARRA DE NAVEGACIÓN (material translúcido) ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--mat);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 .5px 0 var(--separator);
}
.nav-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { height: 30px; width: auto; }
.nav-wordmark { font-weight: 600; font-size: 15px; color: var(--label); line-height: 1.15; }
.nav-wordmark small { display: block; font-weight: 400; font-size: 12px; color: var(--label-2); }
.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > .nav-btn {
  display: flex; align-items: center; gap: 4px; padding: 0 12px; height: 34px;
  font-family: var(--sf); font-size: 13px; font-weight: 400; letter-spacing: 0;
  color: var(--label); opacity: .86;
  border: none; background: none; cursor: pointer; white-space: nowrap; border-radius: var(--r-pill);
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links > li > a:hover, .nav-links > li > .nav-btn:hover { opacity: 1; text-decoration: none; background: var(--fill-2); }
.nav-links > li > a.active { opacity: 1; font-weight: 600; }
.nav-links > li > a.btn-p { opacity: 1; height: 30px; padding: 0 14px; margin-left: 8px; background: var(--tint); color: #fff; font-weight: 500; box-shadow: none; }
.nav-links > li > a.btn-p:hover { background: var(--tint-hi); }
.dropdown { position: relative; }
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: -8px; min-width: 280px; z-index: 200;
  background: var(--mat-thick); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: 14px; padding: 6px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 10px 40px rgba(0,0,0,.16);
}
.dropdown:hover .dropdown-menu { display: block; animation: drop .22s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.dropdown-menu a { display: block; padding: 9px 12px; font-size: 14px; color: var(--label); border-radius: 9px; }
.dropdown-menu a:hover { background: var(--tint); color: #fff; text-decoration: none; }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; }
.hamburger span { width: 18px; height: 1.5px; background: var(--label); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }

/* ---------- BOTONES (relleno de acento, capsula; crecen al tocarlos) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  font-family: var(--sf); font-size: 17px; font-weight: 600; letter-spacing: -.006em;
  text-transform: none; text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .34s var(--spring), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover { transform: scale(1.03); } }
.btn:active { transform: scale(1.05); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-p { background: var(--tint); color: #fff; box-shadow: 0 6px 18px rgba(125,21,53,.24); }
.btn-p:hover { background: var(--tint-hi); }
.btn-o { background: var(--fill); color: var(--tint); }
.btn-o:hover { background: rgba(118,118,128,.18); }
.btn-inv { background: #fff; color: var(--tint); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-ghost-inv { background: rgba(255,255,255,.16); color: #fff; -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.btn-ghost-inv:hover { background: rgba(255,255,255,.26); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 400; color: var(--tint); transition: gap .3s var(--spring); }
.link-arrow:hover { gap: 7px; }

/* ---------- SECCIONES ---------- */
section { scroll-margin-top: calc(var(--nav-h) + 8px); }
.section-inner { max-width: 1060px; margin: 0 auto; padding: 88px 22px; }
.section-inner.tight { padding-top: 56px; padding-bottom: 56px; }
.kicker { font-size: 17px; font-weight: 600; letter-spacing: -.006em; color: var(--tint); margin-bottom: 6px; text-transform: none; }
.section-title {
  font-family: var(--sf-display); font-weight: 700; font-style: normal;
  font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.012em; color: var(--label);
  margin-bottom: 14px; max-width: 22ch; overflow-wrap: anywhere; min-width: 0;
}
.section-lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; letter-spacing: -.006em; color: var(--ink-2); max-width: 60ch; margin-bottom: 44px; }
.on-dark .kicker { color: var(--gold-soft); }
.on-dark .section-title { color: #fff; }
.on-dark .section-lead { color: rgba(255,255,255,.72); }
.sub-h { font-family: var(--sf-display); font-weight: 700; font-size: 24px; letter-spacing: -.012em; color: var(--label); margin-bottom: 14px; }

.band-cream, .band-white { background: transparent; }
.band-white + .band-white > .section-inner, .band-cream + .band-cream > .section-inner { padding-top: 40px; }
.band-dark {
  position: relative; overflow: hidden; color: #fff;
  margin: 16px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #5A1029 0%, var(--guinda-deep) 100%);
  box-shadow: var(--shadow-2);
}

/* ---------- PORTADA ---------- */
.hero {
  position: relative; overflow: hidden;
  margin: calc(var(--nav-h) + 16px) 16px 0; border-radius: var(--r-lg);
  min-height: calc(88vh - var(--nav-h)); display: flex; align-items: center; padding: 72px 0 64px;
  background: linear-gradient(160deg, #8A1A3C 0%, var(--guinda) 38%, var(--guinda-deep) 100%);
  box-shadow: var(--shadow-2);
}
.hero-grid { max-width: 1060px; margin: 0 auto; padding: 0 44px; display: grid; grid-template-columns: minmax(0,7fr) minmax(0,4fr); gap: 56px; align-items: center; width: 100%; }
.hero-kicker, .subhero .hero-kicker { font-size: 17px; font-weight: 600; letter-spacing: -.006em; color: var(--gold-soft); margin-bottom: 10px; text-transform: none; }
.hero h1 {
  font-family: var(--sf-display); font-weight: 700; font-style: normal;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -.012em; color: #fff;
  margin-bottom: 18px; overflow-wrap: anywhere; min-width: 0;
}
.hero-desc { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; letter-spacing: -.006em; color: rgba(255,255,255,.8); max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-fact {
  padding: 12px 18px; border-radius: 18px; min-width: 110px;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
.hero-fact strong { font-family: var(--sf-display); display: block; font-weight: 700; font-size: 22px; letter-spacing: -.012em; color: #fff; line-height: 1.15; }
.hero-fact span { font-size: 13px; color: rgba(255,255,255,.66); letter-spacing: 0; text-transform: none; }
.hero-crest { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-crest-main { width: min(240px, 50vw); aspect-ratio: 1; border-radius: 50%; background: #fff; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero-crest-main img { width: 100%; height: 100%; object-fit: contain; }
.hero-crest-side { display: flex; gap: 16px; }
.hero-crest-side div { width: 80px; height: 80px; border-radius: 50%; background: #fff; padding: 9px; box-shadow: 0 10px 28px rgba(0,0,0,.26); }
.hero-crest-side img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- ENCABEZADO DE PÁGINAS INTERIORES ---------- */
.subhero {
  position: relative; overflow: hidden;
  margin: calc(var(--nav-h) + 16px) 16px 0; border-radius: var(--r-lg); padding: 60px 0 54px;
  background: linear-gradient(160deg, #8A1A3C 0%, var(--guinda) 38%, var(--guinda-deep) 100%);
  box-shadow: var(--shadow-2);
}
.subhero-grid { max-width: 1060px; margin: 0 auto; padding: 0 44px; display: flex; align-items: center; gap: 40px; }
.subhero-crest { width: 120px; height: 120px; border-radius: 50%; background: #fff; padding: 12px; flex-shrink: 0; box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.subhero-crest img { width: 100%; height: 100%; object-fit: contain; }
.subhero h1 { font-family: var(--sf-display); font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.012em; color: #fff; margin-bottom: 12px; overflow-wrap: anywhere; }
.subhero p { font-size: 19px; letter-spacing: -.006em; color: rgba(255,255,255,.8); max-width: 60ch; line-height: 1.45; }

/* ---------- TARJETAS (celdas blancas, sombra suave, esquina continua) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px,100%), 1fr)); gap: 16px; }
.card {
  background: var(--cell); border: 0; border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-1);
  transition: transform .4s var(--spring), box-shadow .3s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card:hover { transform: scale(1.015); box-shadow: var(--shadow-2); } }
.card-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(125,21,53,.22); }
.card-ico svg { width: 24px; height: 24px; stroke-width: 1.8; }
.card h3 { font-family: var(--sf-display); font-weight: 600; font-size: 19px; letter-spacing: -.006em; color: var(--label); margin-bottom: 6px; line-height: 1.25; }
.card p { font-size: 15px; letter-spacing: -.006em; color: var(--ink-2); line-height: 1.47; }

/* ---------- CHIPS ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; border: 0; border-radius: var(--r-pill); padding: 4px 12px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--label); background: var(--fill); text-transform: none; }
.band-dark .chip, .on-dark .chip { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- LISTAS ---------- */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.checklist li { display: block; position: relative; padding-left: 32px; font-size: 17px; letter-spacing: -.006em; color: var(--label); line-height: 1.47; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/13px no-repeat;
}
.on-dark .checklist li, .band-dark .checklist li { color: rgba(255,255,255,.9); }
.on-dark .checklist li::before, .band-dark .checklist li::before { background-color: rgba(255,255,255,.22); }

/* ---------- EQUIPO (lista agrupada tipo Ajustes / Contactos) ---------- */
.turnos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px,100%), 1fr)); gap: 28px; }
.turno-block { background: transparent; }
.turno-header { padding: 0 18px 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.turno-header h3 { font-family: var(--sf-display); font-weight: 700; font-size: 22px; letter-spacing: -.012em; color: var(--label); }
.turno-header .turno-sub { font-size: 15px; color: var(--label-2); letter-spacing: 0; }
.medicos-list { list-style: none; background: var(--cell); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.turno-block > div[style] { background: var(--cell); border-radius: var(--radius); margin-top: 12px; box-shadow: var(--shadow-1); border-top: 0 !important; }
.medico-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 18px; min-height: 64px; }
.medico-item + .medico-item::before { content: ""; position: absolute; top: 0; right: 0; left: 72px; height: .5px; background: var(--separator); }
.medico-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; letter-spacing: .01em; flex-shrink: 0; color: #fff; background: linear-gradient(180deg, #A5ABB6 0%, #858994 100%); }
.medico-avatar.gold { background: linear-gradient(180deg, #9E2448 0%, var(--tint) 100%); }
.medico-info { flex: 1; min-width: 0; }
.medico-info strong { display: block; font-size: 17px; font-weight: 400; letter-spacing: -.006em; color: var(--label); line-height: 1.25; }
.medico-info span { font-size: 15px; letter-spacing: -.006em; color: var(--label-2); }
.mbadge { font-size: 13px; font-weight: 500; letter-spacing: 0; padding: 3px 10px; border-radius: var(--r-pill); flex-shrink: 0; color: var(--label-2); background: var(--fill); text-transform: none; }
.mbadge-jefa { color: #fff; background: var(--tint); }

/* ---------- PROGRAMAS ---------- */
.esp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px,100%), 1fr)); gap: 16px; }
.esp-card { background: var(--cell); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform .4s var(--spring), box-shadow .3s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .esp-card:hover { transform: scale(1.015); box-shadow: var(--shadow-2); } }
.esp-head { padding: 22px 22px 6px; background: transparent; display: flex; align-items: center; gap: 14px; }
.esp-logo { width: 60px; height: 60px; border-radius: 50%; background: #fff; padding: 5px; flex-shrink: 0; box-shadow: 0 0 0 .5px var(--separator), 0 4px 12px rgba(0,0,0,.08); }
.esp-logo img { width: 100%; height: 100%; object-fit: contain; }
.esp-tipo { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--tint); margin-bottom: 2px; text-transform: none; }
.esp-head h3 { font-family: var(--sf-display); font-weight: 700; font-size: 22px; letter-spacing: -.012em; color: var(--label); line-height: 1.15; }
.esp-body { padding: 14px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.esp-body > p { font-size: 15px; letter-spacing: -.006em; color: var(--ink-2); line-height: 1.47; margin-bottom: 14px; }
.esp-meta { display: flex; flex-direction: column; margin-bottom: 18px; background: var(--bg); border-radius: 12px; overflow: hidden; }
.esp-meta-item { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: -.006em; color: var(--label); padding: 9px 14px; }
.esp-meta-item + .esp-meta-item { box-shadow: inset 0 .5px 0 var(--separator); }
.esp-meta-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); flex-shrink: 0; }
.esp-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- PUBLICACIONES ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px,100%), 1fr)); gap: 16px; margin-bottom: 28px; }
.pub { display: flex; }
.pub:hover { text-decoration: none; }
.pub-card { background: var(--cell); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; width: 100%; box-shadow: var(--shadow-1); transition: transform .4s var(--spring), box-shadow .3s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .pub:hover .pub-card { transform: scale(1.015); box-shadow: var(--shadow-2); } }
.pub-meta { display: flex; align-items: center; gap: 8px; }
.pub-year { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-pill); background: var(--tint); color: #fff; }
.pub-year.prev { background: var(--fill); color: var(--label-2); }
.pub-type { font-size: 13px; color: var(--label-2); letter-spacing: 0; text-transform: none; }
.pub-title { font-family: var(--sf-display); font-size: 17px; font-weight: 600; letter-spacing: -.006em; color: var(--label); line-height: 1.3; }
.pub-src { font-size: 14px; letter-spacing: 0; color: var(--ink-2); }
.pub-doi { font-size: 13px; color: var(--tint); margin-top: auto; }

/* ---------- PRENSA ---------- */
.press { display: flex; gap: 16px; align-items: flex-start; background: var(--cell); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-1); transition: transform .4s var(--spring), box-shadow .3s var(--ease); }
.press:hover { text-decoration: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .press:hover { transform: scale(1.015); box-shadow: var(--shadow-2); } }
.press-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.press-ico svg { width: 22px; height: 22px; }
.press-src { font-size: 13px; font-weight: 600; color: var(--tint); letter-spacing: 0; text-transform: none; }
.press h4 { font-family: var(--sf-display); font-size: 17px; font-weight: 600; letter-spacing: -.006em; color: var(--label); margin: 2px 0 4px; line-height: 1.3; }
.press p { font-size: 15px; color: var(--ink-2); line-height: 1.47; }
.press .link-arrow { margin-top: 6px; font-size: 15px; }

/* ---------- BLOQUES DESTACADOS ---------- */
.note { background: var(--cell); border: 0; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-1); font-size: 17px; letter-spacing: -.006em; color: var(--label); line-height: 1.47; }
.note.guinda { background: #FBF3F5; box-shadow: var(--shadow-1); }
.on-dark .note, .band-dark .note { background: rgba(255,255,255,.1); color: rgba(255,255,255,.88); box-shadow: none; }
.panel-dark { background: linear-gradient(160deg, var(--guinda) 0%, var(--guinda-deep) 100%); border-radius: var(--radius); padding: 26px; color: #fff; box-shadow: var(--shadow-2); }
.panel-dark h3 { font-family: var(--sf-display); font-weight: 700; font-size: 22px; letter-spacing: -.012em; margin-bottom: 10px; color: #fff; }
blockquote { font-family: var(--sf-display); font-weight: 600; font-style: normal; font-size: 24px; letter-spacing: -.012em; color: #fff; border: 0; padding: 0; margin: 22px 0; line-height: 1.25; }

/* ---------- LAYOUT ---------- */
.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; align-items: center; }
.two-col.top { align-items: flex-start; }
.framed-img { border: 0; border-radius: var(--radius); overflow: hidden; background: var(--cell); box-shadow: var(--shadow-2); }
.framed-img img { display: block; width: 100%; }

/* ---------- PREGUNTAS: lista agrupada con indicador de despliegue ---------- */
.faq-list { max-width: 860px; background: var(--cell); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; }
.faq-item { position: relative; }
.faq-item + .faq-item::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; height: .5px; background: var(--separator); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 15px 20px; min-height: 52px; font-family: var(--sf); font-weight: 400; font-size: 17px; letter-spacing: -.006em; color: var(--label);
  transition: background .2s var(--ease);
}
.faq-item summary:hover { background: rgba(0,0,0,.025); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4C4C7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .35s var(--spring);
}
.faq-item[open] summary::after { transform: rotate(90deg); }
.faq-item .faq-a { padding: 0 20px 18px; font-size: 15px; letter-spacing: -.006em; color: var(--ink-2); line-height: 1.5; max-width: 72ch; }
.faq-item .faq-a p + p { margin-top: 10px; }
.on-dark .faq-list { background: rgba(255,255,255,.08); box-shadow: none; }
.on-dark .faq-item summary { color: #fff; }
.on-dark .faq-item .faq-a { color: rgba(255,255,255,.75); }

/* ---------- DATOS / TABLAS (lista agrupada) ---------- */
.data-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px,100%), 1fr)); gap: 12px; }
.data-cell { padding: 20px 22px; background: var(--cell); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.data-cell strong { font-family: var(--sf-display); display: block; font-weight: 700; font-size: 34px; letter-spacing: -.012em; color: var(--label); line-height: 1.1; }
.data-cell span { font-size: 15px; letter-spacing: -.006em; color: var(--label-2); text-transform: none; }
.table-wrap { overflow-x: auto; border: 0; border-radius: var(--radius); background: var(--cell); box-shadow: var(--shadow-1); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; letter-spacing: -.006em; }
table.data th { text-align: left; font-size: 13px; font-weight: 400; color: var(--label-2); text-transform: uppercase; letter-spacing: .01em; padding: 14px 20px 8px; border-bottom: .5px solid var(--separator); background: transparent; }
table.data td { padding: 12px 20px; border-bottom: .5px solid var(--separator); color: var(--label); line-height: 1.4; vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data td strong { font-weight: 500; }

/* ---------- CONTACTO ---------- */
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; background: var(--tint); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: 13px; font-weight: 400; color: var(--label-2); letter-spacing: 0; text-transform: none; margin-bottom: 2px; }
.contact-item p { font-size: 17px; letter-spacing: -.006em; color: var(--label); line-height: 1.4; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: none; }
.social-links { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sb { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; letter-spacing: -.006em; color: var(--tint); background: var(--fill); transition: transform .34s var(--spring), background var(--dur) var(--ease); }
.sb:hover { background: rgba(118,118,128,.18); text-decoration: none; }
.sb:active { transform: scale(1.05); }
.sb svg { width: 18px; height: 18px; }
.on-dark .sb, .band-dark .sb { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- FACEBOOK ---------- */
.fb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%), 1fr)); gap: 16px; justify-items: center; }
.fb-wrap { background: var(--cell); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); width: 100%; max-width: 500px; }
.fb-hdr { background: transparent; padding: 12px 16px; display: flex; align-items: center; gap: 8px; box-shadow: inset 0 -.5px 0 var(--separator); }
.fb-hdr svg { fill: #1877F2; }
.fb-hdr span { color: var(--label); font-size: 15px; font-weight: 600; letter-spacing: -.006em; }
.fb-hdr a { color: var(--tint); font-size: 15px; margin-left: auto; }
.fb-ifr { width: 100%; overflow: hidden; background: #fff; }
.fb-ifr iframe { width: 100% !important; border: none !important; display: block; }

/* ---------- PIE (estilo pie de página de Apple) ---------- */
footer { background: #E9E9EE; color: var(--label-2); padding: 48px 22px 28px; margin-top: 56px; font-size: 12px; letter-spacing: 0; }
.footer-inner { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { height: 52px; width: 52px; object-fit: contain; border-radius: 50%; background: #fff; padding: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.footer-brand strong { display: block; font-weight: 600; font-size: 15px; color: var(--label); margin-bottom: 4px; }
.footer-brand p { font-size: 13px; line-height: 1.55; color: var(--label-2); }
.footer-brand p a[style] { color: var(--tint) !important; }
footer h5 { font-size: 13px; font-weight: 600; color: var(--label); letter-spacing: 0; text-transform: none; margin-bottom: 10px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer ul a { color: var(--label-2); font-size: 13px; }
footer ul a:hover { color: var(--label); }
.footer-base { max-width: 1060px; margin: 32px auto 0; padding-top: 16px; border-top: .5px solid rgba(60,60,67,.25); font-size: 12px; color: var(--label-2); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-base a { color: var(--label); }

/* ---------- ACCESIBILIDAD ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  nav, .dropdown-menu { background: #F7F7F9; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- iPhone ---------- */
@media (max-width: 960px) {
  :root { --nav-h: 52px; }
  .nav-logo img { height: 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: calc(var(--nav-h) + 8px); left: 10px; right: 10px;
    background: #fff; padding: 6px; border-radius: 22px; box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 20px 50px rgba(0,0,0,.2);
    z-index: 999; align-items: stretch; gap: 0; max-height: calc(100vh - var(--nav-h) - 24px); overflow-y: auto;
    animation: drop .26s var(--ease) both;
  }
  .nav-links.open > li { position: relative; }
  .nav-links.open > li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: .5px; background: var(--separator); }
  .nav-links.open > li > a, .nav-links.open > li > .nav-btn { height: 50px; padding: 0 16px; justify-content: space-between; width: 100%; font-size: 17px; opacity: 1; border-radius: 14px; }
  .nav-links.open > li > a.btn-p { height: 50px; justify-content: center; margin: 8px 0 2px !important; font-weight: 600; }
  .dropdown-menu { position: static; display: none; box-shadow: none; background: var(--bg); margin: 0 6px 6px; border-radius: 14px; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; min-width: 0; }
  .dropdown-menu a { font-size: 16px; padding: 12px 14px; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open .dropdown-menu, .dropdown.open:hover .dropdown-menu { display: block; }

  .hero { min-height: auto; padding: 40px 0 30px; margin: calc(var(--nav-h) + 10px) 10px 0; border-radius: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; padding: 0 22px; }
  .hero-crest { order: -1; flex-direction: row; justify-content: flex-start; gap: 10px; }
  .hero-crest-main { width: 84px; padding: 8px; }
  .hero-crest-side { gap: 10px; }
  .hero-crest-side div { width: 54px; height: 54px; padding: 6px; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; margin-bottom: 26px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 15px; }
  .hero-fact { padding: 10px 14px; min-width: 0; }
  .hero-fact strong { font-size: 19px; }

  .subhero { padding: 36px 0 32px; margin: calc(var(--nav-h) + 10px) 10px 0; border-radius: 28px; }
  .subhero-grid { flex-direction: column; align-items: flex-start; gap: 18px; padding: 0 22px; }
  .subhero-crest { width: 84px; height: 84px; padding: 8px; }
  .subhero p { font-size: 17px; }

  .band-dark { margin: 10px; border-radius: 28px; }
  .two-col, .turnos-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-inner { padding: 60px 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 380px) {
  .hero-actions .btn { font-size: 14px; padding: 0 8px; }
}

/* Clases y profesores (psiq.html #clases, enlace.html #temario) */
.curso-para { display: inline-block; margin-left: .5rem; font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--gold-ink); white-space: nowrap; }
ol.temas { margin: var(--s3) 0 0 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
ol.temas li { padding-left: .25rem; }
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr)); gap: var(--s4); }
.prof-card { padding: 20px 22px; }
.prof-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .75rem; }
.prof-head strong { font-family: var(--sf-display); display: block; font-size: 17px; font-weight: 600; letter-spacing: -.006em; color: var(--label); line-height: 1.25; }
.prof-head span { display: block; font-size: 13px; color: var(--tint); font-weight: 500; letter-spacing: 0; margin-top: 2px; }
.prof-card p { font-size: 15px; letter-spacing: -.006em; color: var(--ink-2); line-height: 1.47; margin: 0; }
@media (max-width: 640px) { .curso-para { display: block; margin: .3rem 0 0; } }

/* Feed en vivo de Facebook (index #social) */
.fb-live { display: grid; grid-template-columns: minmax(0,1fr) 500px; gap: var(--s6); align-items: start; }
.fb-live-txt p { font-size: 17px; letter-spacing: -.006em; color: var(--ink-2); line-height: 1.47; max-width: 46ch; }
.fb-live-frame { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); width: 100%; max-width: 500px; }
@media (max-width: 960px) { .fb-live { grid-template-columns: minmax(0,1fr); } .fb-live-frame { margin: 0 auto; } }
