/* ==========================================================================
   YAKAITIAN — Instituto de Modas y Alta Costura
   Sistema de diseño · "Editorial Alta Costura"
   --------------------------------------------------------------------------
   Índice
   01. Tokens
   02. Base y reset
   03. Tipografía
   04. Estructura (shell, section, grid)
   05. Componentes (botones, etiquetas, tarjetas, medios, marquesina)
   06. Cabecera y navegación
   07. Pie de página
   08. Secciones de página
   09. Galería y visor
   10. Formularios
   11. Animación y accesibilidad
   12. Impresión
   ========================================================================== */

/* 01. Tokens =============================================================== */
:root {
  /* Color — muestreado del logotipo original y elevado a sistema */
  --ink: #0b0b0c;
  --ink-2: #141417;
  --ink-3: #1e1e23;
  --bone: #f7f4ef;
  --bone-2: #efe9e1;
  --bone-3: #e3dbd0;
  --red: #d6111c;
  --red-deep: #a70d15;
  --blue: #0b3f8f;
  --gold: #b08a46; /* decorativo sobre fondos oscuros */
  --gold-ink: #856428; /* texto dorado legible sobre fondos claros */
  --gold-soft: #d8bf8c;
  --muted: #6c675f; /* ≥4.5:1 sobre fondos claros (AA) */
  --muted-inv: #a49e95;

  --line: rgba(11, 11, 12, 0.14);
  --line-soft: rgba(11, 11, 12, 0.08);
  --line-inv: rgba(247, 244, 239, 0.16);
  --line-inv-soft: rgba(247, 244, 239, 0.08);

  /* Tipografía */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Medidas */
  --wrap: 1280px;
  --wrap-narrow: 860px;
  --gut: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 140px);
  --header-h: 84px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 02. Base y reset ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

/* 03. Tipografía =========================================================== */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display--xl {
  font-size: clamp(2.75rem, 1.4rem + 6.4vw, 6.5rem);
}

.display--lg {
  font-size: clamp(2.25rem, 1.3rem + 4.4vw, 4.75rem);
}

.display--md {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
}

.display--sm {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  line-height: 1.12;
}

.display em,
.display i {
  font-style: italic;
  color: var(--red);
}

.display--on-dark em,
.display--on-dark i {
  color: var(--gold-soft);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin: 0;
}

.eyebrow::before {
  content: '';
  width: clamp(20px, 3vw, 44px);
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex: none;
}

.eyebrow--on-dark {
  color: var(--gold-soft);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--plain::before {
  display: none;
}

.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
  line-height: 1.65;
  font-weight: 300;
  color: #3d3a35;
  max-width: 62ch;
}

.lede--on-dark {
  color: rgba(247, 244, 239, 0.78);
}

.prose p + p {
  margin-top: 1.1em;
}

.prose {
  max-width: 68ch;
  color: #3d3a35;
}

.prose--on-dark {
  color: rgba(247, 244, 239, 0.76);
}

.prose strong {
  font-weight: 500;
  color: var(--ink);
}

.prose--on-dark strong {
  color: var(--bone);
}

.small {
  font-size: 0.875rem;
  color: var(--muted);
}

.section-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-ink);
}

.section--dark .section-label {
  color: var(--gold-soft);
}

/* 04. Estructura =========================================================== */
.shell {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.shell--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 84px);
}

.section--dark {
  background: var(--ink);
  color: var(--bone);
}

.section--bone-2 {
  background: var(--bone-2);
}

.section__head {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section__head--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}

.section__head--center {
  justify-items: center;
  text-align: center;
}

.section__head--center .lede {
  margin-inline: auto;
}

.rule {
  border-top: 1px solid var(--line);
}

.section--dark .rule {
  border-color: var(--line-inv);
}

/* Rejillas */
.grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 40px);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid--editorial {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.grid--editorial-rev {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.stack {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
}

.stack--lg {
  gap: clamp(24px, 3vw, 40px);
}

/* 05. Componentes ========================================================== */
/* Botones */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 0.95em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* Relleno animado desde abajo */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateY(0);
}

.btn:hover,
.btn:focus-visible {
  color: var(--bone);
  border-color: var(--red);
}

.btn--solid {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bd: var(--red);
}

.btn--solid::after {
  background: var(--ink);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  color: var(--bone);
  border-color: var(--ink);
}

.btn--ghost-light {
  --btn-fg: var(--bone);
  --btn-bd: var(--line-inv);
}

.btn--sm {
  padding: 0.72em 1.25em;
  font-size: 0.7rem;
}

.btn--block {
  width: 100%;
}

/* Enlace subrayado elegante */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0.35em;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.link-underline:hover {
  color: var(--red);
  gap: 0.9em;
}

.link-underline--on-dark:hover {
  color: var(--gold-soft);
}

/* Etiqueta / píldora */
.tag {
  display: inline-block;
  padding: 0.4em 0.85em;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag--red {
  border-color: rgba(214, 17, 28, 0.4);
  color: var(--red);
}

.tag--on-dark {
  border-color: var(--line-inv);
  color: var(--gold-soft);
}

/* Medios / figuras */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bone-3);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.media--4x5 {
  aspect-ratio: 4 / 5;
}

.media--3x4 {
  aspect-ratio: 3 / 4;
}

.media--1x1 {
  aspect-ratio: 1 / 1;
}

.media--16x9 {
  aspect-ratio: 16 / 9;
}

.media--3x2 {
  aspect-ratio: 3 / 2;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

.media--zoom:hover img {
  transform: scale(1.045);
}

/* Marco con desplazamiento editorial */
.media--framed::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 244, 239, 0.25);
  pointer-events: none;
}

.media__caption {
  margin-top: 0.9em;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Tarjetas */
.card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.card--bordered {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  background: var(--bone);
}

.section--dark .card--bordered {
  border-color: var(--line-inv);
  background: rgba(247, 244, 239, 0.02);
}

.card__num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-ink);
  line-height: 1;
}

.section--dark .card__num {
  color: var(--gold-soft);
}

.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.15;
}

.card__text {
  font-size: 0.95rem;
  color: #4a463f;
}

.section--dark .card__text {
  color: rgba(247, 244, 239, 0.78);
}

/* Texto atenuado dentro de secciones oscuras: usa el gris claro, no el oscuro */
.section--dark .small,
.section--dark .form__aviso,
.section--dark .field__hint,
.section--dark .media__caption {
  color: var(--muted-inv);
}

/* Marquesina de credenciales */
.ticker {
  background: var(--ink-2);
  color: var(--bone);
  border-block: 1px solid var(--line-inv);
  padding-block: 1.1rem;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.72);
  white-space: nowrap;
}

.ticker__item::after {
  content: '◆';
  color: var(--red);
  font-size: 0.6rem;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Estadísticas */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line-inv);
  padding-top: clamp(24px, 3vw, 40px);
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  color: var(--bone);
}

.stat__num span {
  color: var(--gold);
  font-size: 0.6em;
}

.stat__label {
  display: block;
  margin-top: 0.6em;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

/* Cita */
.quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.quote__mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--red);
  display: block;
  margin-bottom: 0.2em;
}

.quote__cite {
  display: block;
  margin-top: 1.6em;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--dark .quote__cite {
  color: var(--gold-soft);
}

/* 06. Cabecera ============================================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.9em 1.4em;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease),
    border-color 0.45s var(--ease), transform 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line-inv-soft);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand__logo {
  width: clamp(128px, 11.5vw, 164px);
  height: auto;
  transition: opacity 0.3s var(--ease);
}

.brand:hover .brand__logo {
  opacity: 0.82;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.35vw, 21px);
}

/* «Inscripciones» ya está como botón de acción en escritorio: en la barra
   solo se muestra dentro del menú móvil. */
.nav__item--solo-movil {
  display: none;
}

.nav__list a {
  position: relative;
  font-size: 0.69rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.82);
  padding-block: 0.4em;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav__list a:hover,
.nav__list a[aria-current='page'] {
  color: #fff;
}

.nav__list a:hover::after,
.nav__list a[aria-current='page']::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-inv);
  cursor: pointer;
  position: relative;
}

.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1px;
  background: var(--bone);
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle__bar:nth-child(1) {
  top: 16px;
}

.nav-toggle__bar:nth-child(2) {
  top: 21.5px;
}

.nav-toggle__bar:nth-child(3) {
  top: 27px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
  transform: translateX(-50%) translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) {
  transform: translateX(-50%) translateY(-5.5px) rotate(-45deg);
}

/* 07. Pie ================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 239, 0.72);
  padding-block: clamp(56px, 7vw, 96px) clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-inv);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.footer__logo {
  width: clamp(160px, 18vw, 210px);
  height: auto;
  margin-bottom: 1.6rem;
}

.footer__claim {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 40ch;
  color: rgba(247, 244, 239, 0.62);
}

.footer__clave {
  margin-top: 1.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.footer__clave strong {
  font-weight: 500;
  color: var(--bone);
}

.footer__title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1.4rem;
}

.footer__list {
  display: grid;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.footer__list a {
  transition: color 0.3s var(--ease);
}

.footer__list a:hover {
  color: var(--gold-soft);
}

.footer__list--contact address {
  line-height: 1.6;
  color: rgba(247, 244, 239, 0.6);
  max-width: 32ch;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-inv);
  font-size: 0.78rem;
  color: rgba(247, 244, 239, 0.58);
}

/* Botón volver arriba */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--line-inv);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s,
    background-color 0.3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--red);
}

/* 08. Secciones de página ================================================== */
/* Portada (hero) */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 78% 18%, rgba(176, 138, 70, 0.16), transparent 58%),
    radial-gradient(90% 80% at 12% 88%, rgba(214, 17, 28, 0.14), transparent 60%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding-block: clamp(128px, 17vh, 190px) clamp(64px, 9vw, 116px);
}

.hero__copy {
  display: grid;
  gap: clamp(18px, 2.2vw, 30px);
  justify-items: start;
}

.hero__title {
  max-width: 15ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.hero__visual {
  position: relative;
}

.hero__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-3);
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.15), rgba(11, 11, 12, 0.42));
}

/* Placa superpuesta */
.hero__plate {
  position: absolute;
  left: clamp(-40px, -3vw, -16px);
  bottom: clamp(20px, 4vw, 44px);
  z-index: 2;
  background: var(--bone);
  color: var(--ink);
  padding: clamp(18px, 2.2vw, 28px) clamp(20px, 2.6vw, 34px);
  max-width: 300px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero__plate-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 0.4em;
}

.hero__plate-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero__side-note {
  position: absolute;
  right: clamp(-56px, -3.5vw, -18px);
  top: 12%;
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.54);
  z-index: 2;
}

.hero__stats {
  margin-top: clamp(40px, 6vw, 72px);
  grid-column: 1 / -1;
}

/* Encabezado de página interior */
.page-head {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}

.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(100% 80% at 82% 10%, rgba(176, 138, 70, 0.14), transparent 60%),
    radial-gradient(80% 70% at 6% 96%, rgba(11, 63, 143, 0.18), transparent 62%);
}

.page-head__inner {
  padding-block: clamp(120px, 16vh, 176px) clamp(48px, 6vw, 84px);
  display: grid;
  gap: clamp(18px, 2.2vw, 28px);
  max-width: 46rem;
}

.page-head__title {
  max-width: 18ch;
}

/* Migas de pan */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-inv);
}

.breadcrumb a:hover {
  color: var(--gold-soft);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.6em;
  opacity: 0.5;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

/* Dos carreras */
.programa {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--line);
  background: var(--bone);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease-out);
  overflow: hidden;
}

.programa::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}

.programa:hover {
  transform: translateY(-4px);
}

.programa:hover::before {
  transform: scaleX(1);
}

.programa__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.programa__name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.08;
  font-weight: 300;
}

/* Lista editorial numerada */
.index-list {
  border-top: 1px solid var(--line);
}

.section--dark .index-list {
  border-color: var(--line-inv);
}

.index-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 40px);
  padding-block: clamp(18px, 2.2vw, 28px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), padding-left 0.4s var(--ease);
}

.section--dark .index-list__item {
  border-color: var(--line-inv);
}

.index-list__item:hover {
  background: rgba(214, 17, 28, 0.04);
  padding-left: 0.85rem;
}

.section--dark .index-list__item:hover {
  background: rgba(247, 244, 239, 0.04);
}

.index-list__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-ink);
  min-width: 2.4ch;
}

.section--dark .index-list__num {
  color: var(--gold-soft);
}

.index-list__name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
}

.index-list__note {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.section--dark .index-list__note {
  color: var(--muted-inv);
}

/* Acordeón (plan de estudios) */
.accordion {
  border-top: 1px solid var(--line);
}

.accedion__item,
.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  padding: clamp(20px, 2.6vw, 32px) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: padding-left 0.4s var(--ease);
}

.accordion__trigger:hover {
  padding-left: 0.8rem;
}

.accordion__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-ink);
}

.accordion__heading {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
}

.accordion__heading small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5em;
}

.accordion__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}

.accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__trigger[aria-expanded='true'] .accordion__icon::after {
  transform: rotate(0deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.accordion__panel[data-open='true'] {
  grid-template-rows: 1fr;
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__panel-inner {
  padding-bottom: clamp(20px, 2.6vw, 34px);
}

/* Tabla de temario */
.temario {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.temario caption {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.9rem;
}

.temario th,
.temario td {
  text-align: left;
  padding: 0.85em 0.9em;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.temario thead th {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line);
  padding-top: 0;
}

.temario td:last-child,
.temario th:last-child {
  text-align: right;
  width: 8ch;
  white-space: nowrap;
}

.temario tbody tr:hover {
  background: rgba(214, 17, 28, 0.03);
}

.temario__count {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}

/* Nota / aviso */
.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--bone-2);
  border-left: 2px solid var(--red);
}

.note--on-dark {
  background: rgba(247, 244, 239, 0.04);
  border-left-color: var(--gold);
}

.note__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

/* Lista de requisitos con marca */
.checklist {
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8em;
  align-items: baseline;
}

.checklist li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: translateY(-2px) rotate(45deg);
  flex: none;
}

.checklist--on-dark li::before {
  background: var(--gold);
}

/* Bloques de datos (contacto) */
.datos {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}

.dato {
  display: grid;
  gap: 0.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.section--dark .dato {
  border-color: var(--line-inv);
}

.dato__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--dark .dato__label {
  color: var(--gold-soft);
}

.dato__value {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.3;
}

.dato__value a:hover {
  color: var(--red);
}

/* Horarios */
.horario {
  display: grid;
  gap: 1.6rem;
}

.horario__grupo {
  display: grid;
  gap: 0.7rem;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--line);
  background: var(--bone);
}

.horario__title {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.horario__fila {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.horario__fila:last-child {
  border-bottom: 0;
}

.horario__fila span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: center;
}

/* Franja CTA */
.cta-band {
  position: relative;
  background: var(--red);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 120% at 88% 0%, rgba(0, 0, 0, 0.28), transparent 60%);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(56px, 7vw, 92px);
}

.cta-band .display {
  max-width: 22ch;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.cta-band .lede {
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .btn {
  --btn-bg: #fff;
  --btn-fg: var(--red);
  --btn-bd: #fff;
}

.cta-band .btn::after {
  background: var(--ink);
}

.cta-band .btn:hover,
.cta-band .btn:focus-visible {
  color: var(--bone);
  border-color: var(--ink);
}

/* Botón secundario sobre la franja roja: contorno claro y texto claro.
   Debe ir después de `.cta-band .btn` para ganar en orden de cascada. */
.cta-band .btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.7);
}

.cta-band .btn--ghost-light::after {
  background: var(--ink);
}

.cta-band .btn--ghost-light:hover,
.cta-band .btn--ghost-light:focus-visible {
  color: var(--bone);
  border-color: var(--ink);
}

/* 09. Galería ============================================================== */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.filtro {
  padding: 0.6em 1.1em;
  background: none;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.filtro:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.filtro[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.galeria {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(10px, 1.4vw, 20px);
}

.galeria__item {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  background: var(--bone-3);
  cursor: zoom-in;
  padding: 0;
  border: 0;
  display: block;
}

.galeria__item--wide {
  grid-column: span 8;
}

.galeria__item--tall {
  grid-row: span 2;
}

.galeria__item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 0.5s var(--ease);
}

.galeria__item:hover img {
  transform: scale(1.05);
}

.galeria__item::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(11, 11, 12, 0.8));
  color: var(--bone);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}

.galeria__item:hover::after,
.galeria__item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.galeria__item[hidden] {
  display: none;
}

/* Visor (lightbox) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 9, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  object-fit: contain;
  background: var(--ink-2);
}

.lightbox__caption {
  color: rgba(247, 244, 239, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 1px solid var(--line-inv);
  color: var(--bone);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox__close {
  top: clamp(14px, 2.5vw, 28px);
  right: clamp(14px, 2.5vw, 28px);
}

.lightbox__nav--prev {
  left: clamp(14px, 2.5vw, 28px);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: clamp(14px, 2.5vw, 28px);
  top: 50%;
  transform: translateY(-50%);
}

/* Video responsivo */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tarjeta de egresada */
.egresada {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bone);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s var(--ease);
}

.egresada:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 17, 28, 0.45);
}

.egresada__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bone-3);
}

.egresada__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.egresada:hover .egresada__media img {
  transform: scale(1.04);
}

.egresada__body {
  padding: clamp(18px, 2vw, 26px);
  display: grid;
  gap: 0.4rem;
}

.egresada__name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.15;
}

.egresada__role {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

/* Ajustes de encuadre para fotos concretas */
.crop--olivo img {
  object-position: 55% 30%;
}

.crop--ilescas img {
  object-position: 62% 42%;
}

.crop--bulfrano img {
  object-position: 52% 28%;
}

.crop--zarate img {
  object-position: 58% 26%;
}

.crop--ortiz img {
  object-position: 60% 34%;
}

/* 10. Formularios ========================================================== */
.form {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--dark .field__label {
  color: var(--gold-soft);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 0.9em 1em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: inherit;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.section--dark .field__input,
.section--dark .field__select,
.section--dark .field__textarea {
  border-color: var(--line-inv);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(214, 17, 28, 0.03);
}

.field__textarea {
  min-height: 150px;
  resize: vertical;
}

.field__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.6em;
}

.field__select option {
  color: var(--ink);
  background: var(--bone);
}

.field__hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.form__aviso {
  font-size: 0.8rem;
  color: var(--muted);
}

.form__status {
  padding: 1em 1.2em;
  border-left: 2px solid var(--red);
  background: rgba(214, 17, 28, 0.06);
  font-size: 0.9rem;
}

.form__status[hidden] {
  display: none;
}

/* 11. Animación y accesibilidad =========================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Sin JavaScript: el contenido debe verse igualmente */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 12. Adaptación a pantallas ============================================== */
/* El botón de acción se oculta al estrecharse para dar aire a la barra de
   navegación; «Inscripciones» sigue accesible en el menú móvil. */
@media (max-width: 1279px) {
  .header__cta {
    display: none;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .nav__item--solo-movil {
    display: block;
  }

  /* Menú móvil a pantalla completa */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--ink);
    padding: calc(var(--header-h) + 40px) var(--gut) 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2%);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out), visibility 0.4s;
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--line-inv);
  }

  .nav__list a {
    display: block;
    padding-block: 1.15rem;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    color: var(--bone);
  }

  .nav__list a::after {
    display: none;
  }

  .nav__list a[aria-current='page'] {
    color: var(--gold-soft);
    font-style: italic;
  }

  .hero__inner,
  .grid--editorial,
  .grid--editorial-rev,
  .section__head--split,
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__head--split {
    align-items: start;
  }

  .hero__inner {
    padding-block: clamp(110px, 16vh, 150px) clamp(56px, 8vw, 80px);
  }

  .hero__figure {
    aspect-ratio: 4 / 3;
  }

  .hero__side-note {
    display: none;
  }

  .hero__plate {
    left: auto;
    right: 16px;
    bottom: 16px;
  }

  .cta-band__inner {
    justify-items: start;
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .galeria__item,
  .galeria__item--wide {
    grid-column: span 6;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .galeria {
    grid-template-columns: repeat(1, 1fr);
  }

  .galeria__item,
  .galeria__item--wide {
    grid-column: span 1;
  }

  .galeria__item--tall {
    grid-row: span 1;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .index-list__item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .index-list__note {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }

  .temario th,
  .temario td {
    padding-inline: 0.3em;
  }

  .temario thead th:last-child,
  .temario td:last-child {
    width: 6ch;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
  }
}

/* 13. Impresión ============================================================ */
@media print {
  .site-header,
  .to-top,
  .ticker,
  .lightbox,
  .cta-band {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero,
  .page-head,
  .section--dark,
  .site-footer {
    background: #fff !important;
    color: #000 !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
  }
}
