/* ═══════════════════════════════════════════════════════════════
   VN11 — Equipo · Cátedra Ocampo · FADU UBA
   styles.css
   Paleta: coral #ff5a5f · azul-violeta #4b47a3 · fondo #f5f3ee
   Tipografía: Playfair Display + DM Sans
═══════════════════════════════════════════════════════════════ */

/* ─── 0. Variables CSS ──────────────────────────────────────── */
:root {
  --coral:      #ff5a5f;
  --coral-dark: #d94247;
  --violet:     #4b47a3;
  --violet-lt:  #6e6bc2;
  --ink:        #222222;
  --ink-mid:    #555555;
  --ink-soft:   #888888;
  --cream:      #f5f3ee;
  --cream-dark: #ebe8e1;
  --white:      #ffffff;

  --ff-serif: 'Playfair Display', Georgia, serif;
  --ff-sans:  'DM Sans', system-ui, sans-serif;

  --header-h: 72px;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.76, 0, 0.24, 1);

  /* Clamp fluido */
  --step--1: clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --step-0:  clamp(0.9375rem, 0.875rem + 0.33vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1rem    + 0.5vw,  1.375rem);
  --step-2:  clamp(1.375rem, 1.2rem  + 0.75vw, 1.875rem);
  --step-3:  clamp(1.75rem,  1.4rem  + 1.5vw,  2.75rem);
  --step-4:  clamp(2.25rem,  1.6rem  + 2.5vw,  4rem);
  --step-5:  clamp(3rem,     1.8rem  + 4vw,    6.5rem);
  --step-6:  clamp(5rem,     3rem    + 7vw,    11rem);

  --space-xs:  clamp(0.5rem,  0.4rem + 0.4vw, 0.75rem);
  --space-sm:  clamp(0.75rem, 0.6rem + 0.6vw, 1rem);
  --space-md:  clamp(1.25rem, 1rem   + 1vw,   1.75rem);
  --space-lg:  clamp(2rem,    1.5rem + 2vw,   3.5rem);
  --space-xl:  clamp(3rem,    2rem   + 4vw,   6rem);
  --space-2xl: clamp(5rem,    3rem   + 6vw,   9rem);
}

/* ─── 1. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none; /* oculto para el cursor personalizado */
}

/* Accesibilidad: cursor visible si no hay puntero fino */
@media (pointer: coarse) {
  body { cursor: auto; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  padding: .5em 1em;
  background: var(--coral);
  color: #fff;
  border-radius: 2px;
  font-size: var(--step--1);
  z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ─── 2. Cursor personalizado ───────────────────────────────── */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
  will-change: transform;
}

.cursor {
  width: 40px;
  height: 40px;
  transition: transform 0.12s var(--ease-out), opacity 0.2s;
}

.cursor__svg { width: 100%; height: 100%; }

.cursor__ring {
  stroke: var(--violet);
  stroke-width: 0.8;
  fill: none;
  opacity: 0.5;
}
.cursor__cross {
  stroke: var(--coral);
  stroke-width: 0.8;
  opacity: 0.7;
}
.cursor__dot {
  fill: var(--coral);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--coral);
  border-radius: 50%;
  transition: transform 0.06s var(--ease-out);
}

/* Estado hover sobre links/botones */
body.cursor-hover .cursor {
  transform: translate(-50%, -50%) scale(1.6);
}
body.cursor-hover .cursor__ring {
  opacity: 1;
  stroke: var(--coral);
}

/* Desactivar en móvil */
@media (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ─── 3. Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-color: var(--cream-dark);
  box-shadow: 0 2px 20px rgba(34,34,34,0.06);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--space-lg);
  gap: var(--space-md);
  max-width: 1440px;
  margin: 0 auto;
}

/* Brand */
.header__brand { display: flex; align-items: center; }

.header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.6em;
  transition: opacity 0.2s;
}
.header__logo-link:hover { opacity: 0.7; }
.header__logo-link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 2px;
}

.header__logo-placeholder {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* REEMPLAZAR .header__logo-placeholder con tu img real */
.logo-mark {
  font-size: 1.1rem;
  line-height: 1;
}

.header__catedra {
  font-size: var(--step--1);
  font-family: var(--ff-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* Título central */
.header__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  user-select: none;
  line-height: 1;
}
.header__vn  { color: var(--ink); }
.header__num { color: var(--coral); font-style: italic; }

/* Nav */
.header__nav { display: flex; justify-content: flex-end; align-items: center; }

.nav__list {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav__link {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mid);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--coral);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  width: 100%;
}
.nav__link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 1px;
}

/* Botón hamburguesa (móvil) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Línea técnica bajo header */
.header__rule {
  height: 2px;
  background: linear-gradient(90deg, var(--coral) 0 30%, transparent 30% 50%, var(--violet) 50% 80%, transparent 80%);
  opacity: 0.35;
}

/* ─── 4. Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}

/* Grid técnico de fondo */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(75,71,163,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,71,163,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Líneas SVG de arquitectura */
.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeLines 1.8s 0.6s var(--ease-out) forwards;
}
.hero__lines-svg {
  width: 100%;
  height: 100%;
}
@keyframes fadeLines {
  to { opacity: 1; }
}

.arch-line {
  stroke-width: 0.5;
  fill: none;
}
.arch-line--h, .arch-line--v {
  stroke: var(--violet);
  opacity: 0.15;
}
.arch-line--d {
  stroke: var(--ink);
  opacity: 0.05;
}
.arch-circle {
  stroke: var(--coral);
  stroke-width: 0.6;
  opacity: 0.2;
}
.arch-circle--sm {
  opacity: 0.12;
  stroke-dasharray: 4 4;
}
.arch-rect {
  stroke: var(--ink);
  stroke-width: 0.5;
  opacity: 0.12;
}
.arch-rect--accent {
  stroke: var(--coral);
  opacity: 0.2;
}

/* Número de fondo */
.hero__bg-number {
  position: absolute;
  right: -0.1em;
  bottom: -0.15em;
  font-family: var(--ff-serif);
  font-size: clamp(18rem, 40vw, 56rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(75,71,163,0.08);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
}

/* Contenido */
.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + var(--space-xl)) var(--space-lg) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero__tag {
  margin-bottom: var(--space-md);
}
.tag-pill {
  display: inline-block;
  font-size: var(--step--1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--coral);
  color: var(--coral);
  padding: 0.25em 0.85em;
  border-radius: 2px;
}

.hero__title {
  font-family: var(--ff-serif);
  line-height: 0.9;
  margin-bottom: var(--space-lg);
}
.hero__title-equipo {
  display: block;
  font-size: var(--step-3);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-mid);
  letter-spacing: 0.02em;
}
.hero__title-vn11 {
  display: block;
  font-size: var(--step-6);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.hero__title-vn11 em {
  font-style: italic;
  color: var(--coral);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.hero__catedra {
  font-family: var(--ff-serif);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--violet);
}
.hero__divider {
  width: 40px;
  height: 1.5px;
  background: var(--ink-soft);
  flex-shrink: 0;
}
.hero__sub {
  font-size: var(--step-0);
  color: var(--ink-mid);
  font-style: italic;
}

.hero__team-info {
  font-size: var(--step-0);
  color: var(--ink-mid);
  border-left: 3px solid var(--coral);
  padding-left: var(--space-md);
  line-height: 1.8;
}
.hero__team-info strong { color: var(--ink); font-weight: 500; }

/* Scroll hint */
.hero__scroll-hint {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--ink-soft);
}
.scroll-label {
  font-size: var(--step--1);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-hint svg {
  width: 20px;
  height: 30px;
}
.scroll-dot {
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%       { transform: translateY(8px); opacity: 0.3; }
}

/* ─── 5. Sections base ──────────────────────────────────────── */
.section {
  padding: var(--space-2xl) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section__header {
  margin-bottom: var(--space-xl);
}
.section__label {
  display: block;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.4em;
}
.section__title {
  font-family: var(--ff-serif);
  font-size: var(--step-4);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.section__rule {
  margin-top: var(--space-sm);
  height: 1.5px;
  background: linear-gradient(90deg, var(--coral) 60px, var(--cream-dark) 60px);
}

/* ─── 6. Integrantes ────────────────────────────────────────── */
.integrantes {
  background: var(--ink);
  color: var(--cream);
}
.integrantes .section__title { color: var(--cream); }
.integrantes .section__rule {
  background: linear-gradient(90deg, var(--coral) 60px, rgba(255,255,255,0.1) 60px);
}

.integrantes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.card-integrante {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  overflow: hidden;
  transition: background 0.3s;
  animation-delay: var(--delay, 0s);
}
.card-integrante:hover {
  background: #1a1a1a;
}
.card-integrante:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: -2px;
}

/* Foto */
.card-integrante__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #2a2a2a;
}

.card-integrante__foto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #1e1e2e;
}
/* CUANDO SE REEMPLACE CON IMAGEN REAL:
   .card-integrante__foto-placeholder → <img src="..." alt="...">
   Agregar: img { width:100%; height:100%; object-fit:cover; }
*/

.placeholder-initials {
  font-family: var(--ff-serif);
  font-size: var(--step-4);
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}

.placeholder-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.card-integrante__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.card-integrante:hover .card-integrante__overlay {
  opacity: 0.6;
}

/* Body */
.card-integrante__body {
  padding: var(--space-md) var(--space-md) var(--space-sm);
  flex: 1;
}

.card-integrante__index {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: 0.4em;
}

.card-integrante__nombre {
  font-family: var(--ff-serif);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  transition: transform 0.3s var(--ease-out);
}
.card-integrante:hover .card-integrante__nombre {
  transform: translateY(-3px);
}

.card-integrante__rol {
  display: inline-block;
  margin-top: 0.5em;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Flecha */
.card-integrante__arrow {
  padding: var(--space-sm) var(--space-md);
  color: var(--coral);
  font-size: var(--step-1);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.card-integrante:hover .card-integrante__arrow {
  transform: translateX(0);
  opacity: 1;
}

/* ─── 7. Plan ───────────────────────────────────────────────── */
.plan { background: var(--cream); }

.plan__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.plan__subtitle {
  font-family: var(--ff-serif);
  font-size: var(--step-1);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--ink);
}
.plan__subtitle--timeline {
  font-size: var(--step-0);
  letter-spacing: 0.05em;
  color: var(--ink-mid);
  text-transform: uppercase;
}

.plan__text {
  font-size: var(--step-0);
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

/* Timeline */
.timeline { padding-left: 0; }

.timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 var(--space-md);
  position: relative;
}

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-dark);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--ink-soft);
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  flex-shrink: 0;
}
.timeline__item.is-visible .timeline__num {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.timeline__connector {
  flex: 1;
  width: 1.5px;
  background: var(--cream-dark);
  margin: 4px 0;
  min-height: 24px;
  transition: background 0.5s;
}
.timeline__item.is-visible .timeline__connector {
  background: var(--coral);
  opacity: 0.4;
}

.timeline__content {
  padding-bottom: var(--space-lg);
}

.timeline__etapa {
  font-family: var(--ff-serif);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25em;
  padding-top: 4px; /* alinea con el círculo */
  transition: color 0.3s;
}
.timeline__item.is-visible .timeline__etapa {
  color: var(--coral-dark);
}

.timeline__desc {
  font-size: var(--step--1);
  color: var(--ink-mid);
  line-height: 1.6;
}

/* ─── 8. Diagrama ───────────────────────────────────────────── */
.diagrama {
  background: var(--cream-dark);
}

.diagrama__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.diagrama__desc {
  font-size: var(--step-0);
  color: var(--ink-mid);
  max-width: 60ch;
  line-height: 1.7;
}

/* Marco del diagrama */
.diagrama__frame {
  border: 1px solid rgba(34,34,34,0.15);
  border-radius: 4px;
  background: var(--cream);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: stretch;
  position: relative;
}
.diagrama__frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--violet));
}

/* Placeholder SVG */
.diagrama__placeholder {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  gap: var(--space-md);
}

.diagrama__placeholder-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* Estilos del SVG de diagrama placeholder */
.diag-node {
  stroke: var(--violet);
  stroke-width: 1;
  fill: rgba(75,71,163,0.05);
}
.diag-node--start { stroke: var(--coral); fill: rgba(255,90,95,0.07); }
.diag-node--end   { stroke: var(--coral); fill: rgba(255,90,95,0.1); }

.diag-text {
  text-anchor: middle;
  font-family: var(--ff-sans);
  font-size: 11px;
  fill: var(--ink-mid);
}

.diag-arrow {
  stroke: var(--ink-soft);
  stroke-width: 0.8;
  fill: none;
}
.diag-arrowhead {
  fill: var(--ink-soft);
}

.diagrama__placeholder-label {
  font-size: var(--step--1);
  color: var(--ink-soft);
  font-style: italic;
  letter-spacing: 0.05em;
  text-align: center;
}

/* ─── 9. Aplicación ─────────────────────────────────────────── */
.aplicacion {
  background: var(--cream);
}

.aplicacion__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.aplicacion__desc {
  font-size: var(--step-0);
  color: var(--ink-mid);
  max-width: 60ch;
  line-height: 1.7;
}

/* Wrapper del iframe */
.aplicacion__frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34,34,34,0.15);
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-dark);
  min-height: 320px;
}
.aplicacion__frame-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--coral));
  z-index: 2;
}

.aplicacion__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* Mostrar placeholder cuando iframe no tiene src */
.aplicacion__iframe:not([src]),
.aplicacion__iframe[src=""] {
  display: none;
}
.aplicacion__iframe:not([src]) + .aplicacion__iframe-placeholder,
.aplicacion__iframe[src=""] + .aplicacion__iframe-placeholder {
  display: flex;
}

.aplicacion__iframe-placeholder {
  display: none; /* se muestra por CSS cuando iframe sin src */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  position: absolute;
  inset: 0;
  color: var(--ink-soft);
  padding: var(--space-lg);
  text-align: center;
}
.aplicacion__iframe-placeholder svg {
  width: 80px;
  opacity: 0.4;
}
.aplicacion__iframe-placeholder p {
  font-size: var(--step--1);
  max-width: 30ch;
  line-height: 1.6;
}
.aplicacion__iframe-placeholder code {
  font-family: 'Courier New', monospace;
  color: var(--coral);
  font-size: 0.9em;
}

/* ─── 10. Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--cream);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  align-items: start;
}

/* Brand */
.footer__vn {
  font-family: var(--ff-serif);
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 0.4em;
}
.footer__materia {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.6;
  letter-spacing: 0.03em;
}

/* Nav rápida */
.footer__nav-title {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-sm);
}
.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.footer__nav a {
  font-size: var(--step--1);
  color: var(--ink-soft);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--cream); }
.footer__nav a:focus-visible {
  outline: 1px solid var(--coral);
  outline-offset: 3px;
}

/* Legal */
.footer__legal p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.8;
  border-left: 2px solid rgba(255,90,95,0.3);
  padding-left: var(--space-md);
}

/* Bottom */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: var(--space-md) var(--space-lg);
}
.footer__bottom p {
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,243,238,0.25);
}

/* ─── 11. Animaciones de aparición (JS-Reveal) ──────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline items */
.js-timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: var(--tl-delay, 0s);
}
.js-timeline-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── 12. Responsive ────────────────────────────────────────── */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .plan__layout {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer__legal {
    grid-column: 1 / -1;
  }
}

/* Tablet pequeña / paisaje móvil: ≤ 768px */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* Header: ocultar nav, mostrar toggle */
  .header__inner {
    grid-template-columns: 1fr auto auto;
    padding: 0 var(--space-md);
  }

  .header__title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(280px, 80vw);
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 99;
  }
  .nav__list.is-open {
    transform: translateX(0);
  }
  .nav__link {
    font-size: var(--step-1);
    color: var(--cream);
  }
  .nav__link::after {
    background: var(--coral);
  }

  /* Hero */
  .hero__bg-number {
    font-size: clamp(12rem, 60vw, 24rem);
  }

  /* Integrantes */
  .integrantes__grid {
    grid-template-columns: 1fr;
  }
  .card-integrante__media {
    aspect-ratio: 4/3;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .footer__legal { grid-column: auto; }
}

/* Móvil: ≤ 480px */
@media (max-width: 480px) {
  .hero__title-vn11 {
    letter-spacing: -0.03em;
  }
  .header__catedra {
    display: none;
  }
  .diagrama__frame {
    min-height: 260px;
  }
}

/* ─── 13. Preferencia de movimiento reducido ────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal,
  .js-timeline-item {
    opacity: 1;
    transform: none;
  }
}

/* ─── 14. Focus visible global ──────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.card-integrante__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.card-integrante__foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-integrante__overlay {
    position: absolute;
    inset: 0;
}
/* ═══════════════════════════════════════════════
   USER FLOW / FIGMA EMBED
═══════════════════════════════════════════════ */

.diagrama__frame {
    width: 100%;
    height: 800px;
    margin-top: 2rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.diagrama__frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}
