/* === ARCHIVO: css/variables.css === */
/**
 * VARIABLES.CSS
 * Design tokens inspirados en "The Late Checkout", "Nectar" y "Rebel Riot".
 */

:root {
  /* Paleta cromática inspirada en Nectar */
  --bg-primary: #FFF5F7;          /* Crema blush suave con tinte rosado */
  --bg-secondary: #FCEAEF;        /* Rosa suave para secciones secundarias */
  --bg-card: #FFFFFF;             /* Blanco puro para tarjetas */
  --bg-dark: #6E1326;             /* Bordó/vino cereza profundo para footer y marcos */
  
  /* Colores de acento Nectar */
  --color-wine: #701428;          /* Vino/cereza profundo de titulares y enlaces */
  --color-terracotta: #701428;    /* Mapeado al bordó para unificar todo el sitio */
  --color-terracotta-hover: #520D1C;
  --color-candy-pink: #F9D6DE;    /* Rosa pastel de la barra de navegación */
  --color-candy-pink-hover: #F2C3CE;
  --color-lavender: #CCD6FF;      /* Lila suave del botón "JOIN THE CLUB" */
  --color-lavender-text: #2D3960; /* Azul marino para el texto del botón lila */
  --color-mustard: #F9D6DE;       /* Cinta en rosa pastel con texto bordó */
  --color-mustard-dark: #EAB9C6;
  --color-notebook-grid: rgba(112, 20, 40, 0.12); /* Cuadrícula rosa/bordó */
  
  /* Textos y contrastes */
  --text-primary: #701428;        /* Bordó profundo para lectura óptima */
  --text-secondary: #8A3D4D;      /* Tono ciruela/vino suave para subtítulos */
  --text-light: #FFF5F7;          /* Texto sobre fondos oscuros */
  --border-subtle: rgba(112, 20, 40, 0.14);
  --border-strong: #701428;

  /* Tipografías */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Syne', sans-serif;
  --font-script: 'Caveat', cursive; /* Acento manuscrito de notas de dirección */

  /* Radios de borde (Curvas suaves estilo editorial) */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Sombras suaves y orgánicas */
  --shadow-sm: 0 2px 6px rgba(35, 30, 28, 0.05);
  --shadow-md: 0 8px 24px rgba(35, 30, 28, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 30, 28, 0.12);
  --shadow-paper: 0 12px 32px rgba(45, 35, 25, 0.1), 0 2px 6px rgba(45, 35, 25, 0.05);

  /* Transiciones fluidas */
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max-width: 1320px;
  --header-height: 76px;
}

/* === ARCHIVO: css/main.css === */
/* Google Fonts: Fraunces (Editorial Serif), Syne (Bold Display), Plus Jakarta Sans (Body), Caveat (Script) */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Selección de texto personalizada */
::selection {
  background-color: var(--color-terracotta);
  color: var(--text-light);
}

/* Enlaces y botones base */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: all var(--transition-fast);
}

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

/* Contenedores globales */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* Clases tipográficas utilitarias */
.font-serif {
  font-family: var(--font-serif);
}

.font-display {
  font-family: var(--font-display);
}

.font-script {
  font-family: var(--font-script);
}

/* Botones con estilo de autor */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 78, 52, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: rgba(35, 30, 28, 0.04);
}

.btn-arrow-down {
  display: inline-block;
  transform: rotate(90deg);
  transition: transform var(--transition-fast);
  line-height: 1;
  vertical-align: middle;
  margin-left: 0.2rem;
}

.btn:hover .btn-arrow-down,
.btn-secondary:hover .btn-arrow-down {
  transform: rotate(90deg) translateX(3px);
}

/* Badges / Etiquetas de categorías */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-subtle);
}

.badge-terracotta {
  background-color: rgba(217, 78, 52, 0.1);
  color: var(--color-terracotta);
  border-color: rgba(217, 78, 52, 0.2);
}

.badge-mustard {
  background-color: var(--color-mustard);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Accesibilidad */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* === ARCHIVO: css/components/navbar.css === */
/**
 * NAVBAR.CSS
 * Barra de navegación inspirada en Nectar con fondo rosa pastel, tipografía bordó y borde festoneado (scalloped edge).
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-candy-pink);
  /* Soporte seguro para notch, Dynamic Island y barra de estado de iPhone */
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background-color var(--transition-normal);
}

/* Borde festoneado / Ondas semicirculares (Scalloped hem como en la foto Nectar) */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background-image: radial-gradient(circle at 14px 0, var(--color-candy-pink) 13px, transparent 14px);
  background-size: 28px 12px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  position: relative;
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-wine);
}

.site-logo span {
  color: var(--color-wine);
  font-style: italic;
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-wine);
  position: relative;
  padding: 0.4rem 0;
  transition: opacity var(--transition-fast);
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-wine);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.82rem;
  padding: 0.6rem 1.35rem;
  background-color: var(--color-wine);
  color: var(--color-candy-pink);
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-cta:hover {
  background-color: var(--color-terracotta-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* Menú hamburguesa para mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-wine);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* === ARCHIVO: css/components/hero.css === */
/**
 * HERO.CSS
 * Portada dividida en dos columnas con fondo cuadriculado inspirada en Nectar.
 * Columna izquierda: Título, subtítulo, botón lila y flecha doodle.
 * Columna derecha: Foto portada.jpeg integrada estilo el camión de Nectar con nota manuscrita.
 */

.hero-section {
  position: relative;
  background-color: var(--bg-primary);
  /* Textura de papel cuadriculado rosa pastel (Graph Paper) */
  background-image: 
    linear-gradient(to right, var(--color-notebook-grid) 1.2px, transparent 1.2px),
    linear-gradient(to bottom, var(--color-notebook-grid) 1.2px, transparent 1.2px);
  background-size: 38px 38px;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 2px solid var(--border-subtle);
}

/* Grilla dividida en 2 columnas */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Columna Izquierda: Textos y Acciones */
.hero-col-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-wine);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.hero-title-split {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--color-wine);
  margin-bottom: 1.4rem;
}

.hero-title-split em {
  font-style: italic;
  font-weight: 300;
}

.hero-desc-split {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--color-wine);
  max-width: 480px;
  margin-bottom: 2.2rem;
  opacity: 0.92;
}

/* Fila de acción: Botón lila estilo Nectar + Flecha doodle hacia la imagen */
.hero-action-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.btn-nectar-pill {
  background-color: var(--color-wine);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(112, 20, 40, 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-nectar-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(112, 20, 40, 0.38);
  background-color: var(--color-terracotta-hover);
}

/* Flecha curva dibujada a mano apuntando a la foto (Ref. Foto Nectar) */
.hero-doodle-arrow {
  display: flex;
  align-items: center;
  position: relative;
  top: 4px;
}

.hero-doodle-arrow svg {
  width: 72px;
  height: 48px;
  display: block;
}

/* Columna Derecha: Foto portada.jpeg como el camión */
.hero-col-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-truck-style-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
}

/* Imagen con bordes redondeados y sombra suave, integrada a la cuadrícula */
.hero-featured-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(112, 20, 40, 0.16);
  border: 4px solid #FFFFFF;
  transition: transform var(--transition-normal);
}

.hero-truck-style-wrapper:hover .hero-featured-image {
  transform: scale(1.015);
}

/* Nota manuscrita lateral estilo 'catch me if you candy!' */
.hero-floating-script {
  position: absolute;
  right: -5px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-script);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-wine);
  transform: rotate(5deg);
  background-color: rgba(255, 245, 247, 0.96);
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(112, 20, 40, 0.25);
  box-shadow: 0 2px 8px rgba(112, 20, 40, 0.08);
  pointer-events: none;
  z-index: 3;
}

.hero-script-arrow {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  color: var(--color-wine);
}

/* Elementos decorativos flotantes tipo cerezas/dulces en SVG */
.hero-deco-candy {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
}

.deco-top-right {
  top: -15px;
  right: 15px;
  width: 32px;
}

.deco-bottom-left {
  bottom: -20px;
  left: 20px;
  width: 28px;
}

/* === ARCHIVO: css/components/curved-banner.css === */
/**
 * CURVED-BANNER.CSS
 * Cinta ondulada y titular llamativo inspirados en la Referencia 3 ("Rebel Riot").
 */

.curved-banner-section {
  position: relative;
  width: 100%;
  padding: 3rem 0 5rem;
  background-color: var(--bg-primary);
  overflow: hidden;
}

/* Contenedor de la cinta amarilla ondulada */
.wavy-ribbon-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  line-height: 0;
}

.wavy-ribbon-svg {
  width: 100%;
  height: 140px;
  display: block;
}

/* Estilo del texto que viaja a lo largo de la curva */
.curved-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  fill: var(--color-wine);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Manifiesto y titular contundente inferior */
.manifesto-container {
  max-width: 1000px;
  margin: 3.5rem auto 0;
  text-align: center;
  padding: 0 1.5rem;
}

.manifesto-pretitle {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  background: rgba(35, 30, 28, 0.05);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

.manifesto-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Píldoras de colores superpuestas en el texto estilo "Rebel Riot" */
.highlight-pill {
  display: inline-block;
  vertical-align: middle;
  padding: 0.15rem 0.65rem;
  margin: 0 0.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.3vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  top: -4px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.highlight-pill:hover {
  transform: scale(1.08) rotate(-2deg);
}

.pill-orange {
  background-color: var(--color-terracotta);
  color: #fff;
}

.pill-yellow {
  background-color: var(--color-mustard);
  color: var(--text-primary);
}

.pill-soft-blue {
  background-color: #6FA8DC;
  color: #fff;
}

.manifesto-subline {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--color-terracotta);
  margin-bottom: 1.5rem;
}

.manifesto-desc {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === ARCHIVO: css/components/gallery.css === */
/**
 * GALLERY.CSS
 * Grilla mixta responsiva para videos horizontales (16:9), verticales (9:16) y Behance.
 */

.gallery-section {
  padding: 4rem 0 6rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  text-align: center;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--color-terracotta);
  margin-bottom: 0.5rem;
}

.gallery-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-serif);
}

/* Barra de Filtros interactiva */
.filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.4rem;
  background-color: rgba(35, 30, 28, 0.05);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  position: relative;
  z-index: 25;
  pointer-events: auto;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 26;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background-color: var(--color-terracotta) !important;
  color: #FAF6EE !important;
  box-shadow: 0 4px 12px rgba(217, 78, 52, 0.28);
}

/* Grilla adaptable de proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.2rem);
  align-items: start;
}

/* Clases de dimensionamiento de tarjetas en la grilla */
.card-col-12 {
  grid-column: span 12;
}

.card-col-8 {
  grid-column: span 8;
}

.card-col-6 {
  grid-column: span 6;
}

.card-col-4 {
  grid-column: span 4;
}

/* Comportamiento al filtrar */
.project-card {
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.project-card.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.95);
}

/* Adaptabilidad armónica de columnas según el filtro activo */
.projects-grid[data-current-filter="ficcion"] .project-card.card-col-8 {
  grid-column: span 12;
}

/* === ARCHIVO: css/components/video-card.css === */
/**
 * VIDEO-CARD.CSS
 * Tarjetas de proyecto con reproductor nativo (16:9 y 9:16) y facade para Behance.
 */

.project-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Contenedor de Medios (Video o Poster) */
.card-media-wrapper {
  position: relative;
  width: 100%;
  background-color: #12100F;
  overflow: hidden;
}

/* Ratio Horizontal 16:9 */
.ratio-horizontal {
  aspect-ratio: 16 / 9;
  width: calc(100% - 2.4rem);
  margin: 1.2rem auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Ratio Vertical 9:16 estricto (Reels, Shorts, TikTok) */
.ratio-vertical {
  aspect-ratio: 9 / 16;
  width: calc(100% - 2.4rem);
  max-width: 360px;
  margin: 1.2rem auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ratio-vertical .native-video {
  aspect-ratio: 9 / 16;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Elemento Video HTML5 */
.native-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Corrección de Pantalla Completa: Mantener proporción vertical 9:16 original sin zoom ni recorte */
video:fullscreen {
  object-fit: contain !important;
  background-color: #000000 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

video:-webkit-full-screen {
  object-fit: contain !important;
  background-color: #000000 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

video:-moz-full-screen {
  object-fit: contain !important;
  background-color: #000000 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.native-video:fullscreen {
  object-fit: contain !important;
  background-color: #000000 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.native-video:-webkit-full-screen {
  object-fit: contain !important;
  background-color: #000000 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

/* Capa de control superpuesta */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(18, 16, 15, 0.35);
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
  cursor: pointer;
  z-index: 4;
}

.video-overlay.is-playing {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Botón central Play/Pause */
.play-trigger-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-terracotta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(217, 78, 52, 0.4);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
  cursor: pointer;
  z-index: 6;
}

.play-trigger-btn:hover {
  transform: scale(1.12);
  background-color: var(--color-terracotta-hover);
}

.play-trigger-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 2px; /* Compensación óptica del icono play */
}

/* Barra de controles inferiores de la tarjeta */
.card-player-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: auto;
}

.player-time-badge {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.player-action-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-control-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.mini-control-btn:hover {
  background: var(--color-terracotta);
  transform: scale(1.08);
}

.mini-control-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Estilos de Tarjeta Behance (Carga 1 a 1 sin saturar el navegador) */
.behance-card-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #1a1918;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.behance-placeholder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform var(--transition-slow), opacity var(--transition-fast);
}

.project-card:hover .behance-placeholder-img {
  transform: scale(1.04);
  opacity: 0.75;
}

.behance-load-action {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}

.behance-logo-badge {
  background: #0057ff;
  color: #fff;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.btn-load-behance {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-load-behance:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Contenedor cuando el iframe de Behance está inyectado o embebido */
.behance-iframe-container,
.behance-iframe-wrapper {
  width: 100%;
  min-height: 316px;
  background-color: #1a1918;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.behance-iframe-container iframe,
.behance-iframe-wrapper iframe {
  width: 100%;
  height: 316px;
  border: none;
  display: block;
}

/* Cuerpo de la Tarjeta (Info de Proyecto) */
.card-content {
  padding: 1.5rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.card-role {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* === ARCHIVO: css/components/torn-paper.css === */
/**
 * TORN-PAPER.CSS
 * Módulo de "Hoja Arrancada / Cuaderno de Rodaje" inspirado en la Referencia 2 ("Nectar").
 */

.notebook-section {
  padding: 5rem 0 7rem;
  background-color: var(--bg-primary);
  position: relative;
}

/* La hoja de cuaderno completa */
.notebook-sheet {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background-color: #FFFDF9;
  border-radius: 4px 4px 16px 16px;
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(35, 30, 28, 0.12);
  /* Textura de cuadrícula de cuaderno (Graph paper) */
  background-image: 
    linear-gradient(to right, var(--color-notebook-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-notebook-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  padding: 0 0 3.5rem;
  overflow: hidden;
}

/* Cabecera troquelada: Simulación de hoja arrancada de espiral con agujeros */
.notebook-perforations {
  position: relative;
  width: 100%;
  height: 52px;
  background-color: #EFE9D9;
  border-bottom: 2px dashed rgba(35, 30, 28, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 1rem;
}

/* Agujeros troquelados circulares con ranura superior de espiral */
.binder-hole {
  width: 16px;
  height: 24px;
  background-color: var(--bg-primary);
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
  position: relative;
}

.binder-hole::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 5px;
  width: 6px;
  height: 12px;
  background-color: var(--bg-primary);
}

/* Contenido de la hoja */
.notebook-content {
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 1rem;
  position: relative;
}

.notebook-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.notebook-stamp {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-terracotta);
  border: 2px solid var(--color-terracotta);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  transform: rotate(-3deg);
  margin-bottom: 1rem;
}

.notebook-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.notebook-grid-cols {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.notebook-bio-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.notebook-bio-text p {
  margin-bottom: 1.2rem;
}

/* Efecto de círculo hecho a mano (Referencia Foto 2: Vendor circulado con lápiz) */
.doodle-circled {
  position: relative;
  display: inline-block;
  padding: 0.1rem 0.4rem;
  color: var(--color-terracotta);
  font-weight: 700;
}

.doodle-circled::after {
  content: '';
  position: absolute;
  inset: -6px -10px;
  border: 2.5px solid var(--color-wine); /* Bordó unificado con el resto de los acentos */
  border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%;
  pointer-events: none;
  transform: rotate(-2deg);
}

/* Ficha técnica y Festivales estilo libreta */
.tech-spec-box {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.tech-spec-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.5rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.92rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.spec-label {
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.spec-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

/* Nota manuscrita lateral estilo cuaderno */
.notebook-handwritten-aside {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--color-terracotta);
  line-height: 1.3;
  margin-top: 1.5rem;
  transform: rotate(2deg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === ARCHIVO: css/components/project-modal.css === */
/**
 * PROJECT-MODAL.CSS
 * Modal emergente interactivo para proyecto Behance (Elira - Ficción).
 * Formato amplio para visualización íntegra de fotografías y fotogramas (sin cortes)
 * manteniendo la estética editorial Nectar (candy pink, vino profundo, vidrio esmerilado).
 */

/* Fondo oscurecido con desenfoque de fondo */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(112, 20, 40, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  overflow-y: auto;
}

.project-modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Tarjeta Modal Amplia (Permite ver toda la foto en alta resolución) */
.project-modal-card {
  position: relative;
  width: 100%;
  max-width: min(94vw, 860px);
  max-height: min(92vh, 900px);
  background-color: #120A0D;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(112, 20, 40, 0.45), 0 12px 30px rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(249, 214, 222, 0.35);
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-backdrop.is-active .project-modal-card {
  transform: scale(1) translateY(0);
}

/* =======================================================
   ÁREA DE VISUALIZACIÓN / ESCENARIO DE FOTOS Y FRAMES
   ======================================================= */
.modal-media-stage {
  position: relative;
  width: 100%;
  flex: 1 1 54vh;
  min-height: 380px;
  max-height: 56vh;
  background: radial-gradient(circle at center, #1e0f14 0%, #0a0406 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Barra superior flotante sobre la foto */
.modal-top-bar {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

/* Insignia superior izquierda ("★ Proyecto Behance • Ficción") */
.modal-badge-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-wine);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}

.modal-badge-pill .star-icon {
  color: #F5A623;
  font-size: 0.95rem;
  line-height: 1;
}

/* Contador flotante de diapositivas */
.modal-slide-counter {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.03em;
}

/* Botón de cierre circular */
.modal-close-btn {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--color-terracotta);
  transform: scale(1.08);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Contenedor de diapositivas */
.modal-gallery-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.modal-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0.32s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.8rem 1.5rem 2.8rem;
  box-sizing: border-box;
}

.modal-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
}

/* CRUCIAL: object-fit: contain para permitir ver TODA LA FOTO sin cortes */
.modal-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
  display: block;
  margin: auto;
  user-select: none;
  pointer-events: none;
}

/* Controles de navegación del carrusel (Flechas) */
.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-wine);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  pointer-events: auto;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.modal-nav-arrow:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
  left: 16px;
}

.modal-nav-next {
  right: 16px;
}

.modal-nav-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  pointer-events: none;
}

/* Indicadores de diapositiva (Puntos) */
.modal-dots-row {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 9;
  max-width: 88%;
  overflow-x: auto;
  padding: 4px 8px;
  scrollbar-width: none;
}

.modal-dots-row::-webkit-scrollbar {
  display: none;
}

.modal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
  flex-shrink: 0;
}

.modal-dot.is-active {
  width: 18px;
  border-radius: 10px;
  background: #ffffff;
}

/* =======================================================
   PANEL INFERIOR DE INFORMACIÓN Y FICHA TÉCNICA
   ======================================================= */
.modal-bottom-info {
  position: relative;
  flex: 0 0 auto;
  background: rgba(18, 10, 13, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem 1.8rem 1.4rem;
  overflow-y: auto;
  max-height: 38vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #ffffff;
}

/* Encabezado principal */
.modal-main-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-project-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.modal-project-subtitle {
  font-size: 0.88rem;
  color: var(--color-candy-pink);
  line-height: 1.35;
  margin-top: 0.2rem;
  font-weight: 600;
}

/* Descripción del proyecto extraída de Behance */
.modal-project-description {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0.2rem 0;
}

/* Botón directo para ver el cortometraje ("Mirá Elira acá") */
.modal-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.modal-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-terracotta);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(217, 78, 52, 0.35);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.modal-watch-btn:hover {
  background-color: #e85d43;
  transform: translateY(-2px);
}

.modal-watch-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Fila de Especificaciones y Métricas */
.modal-specs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-spec-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0 0.5rem;
}

.modal-spec-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-candy-pink);
  flex-shrink: 0;
}

.modal-spec-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.modal-spec-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.modal-spec-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.modal-spec-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  white-space: nowrap;
}

.modal-specs-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

/* Fila de Autor y Acciones */
.modal-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 0.25rem;
}

.modal-author-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  line-height: 1.4;
}

.modal-credit-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.modal-credit-separator {
  color: rgba(255, 255, 255, 0.28);
  user-select: none;
  font-size: 0.85rem;
  margin: 0 0.15rem;
}

.modal-credit-bullet {
  opacity: 0.6;
  user-select: none;
}

.modal-author-credit strong {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-behance-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--color-candy-pink);
  color: var(--color-wine);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.modal-behance-link-btn:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
}

/* =======================================================
   ESTILO DE LA TARJETA EN LA GRILLA PRINCIPAL DE PROYECTOS
   ======================================================= */
.project-card-link-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card.is-clickable {
  cursor: pointer !important;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card.is-clickable * {
  cursor: pointer !important;
}

.project-card.is-clickable:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(112, 20, 40, 0.14);
}

.project-preview-media {
  position: relative;
  width: calc(100% - 2.4rem);
  margin: 1.2rem auto 0;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #120A0D;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.project-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card.is-clickable:hover .project-preview-media img {
  transform: scale(1.05);
}

/* Badge flotante en la tarjeta de la grilla */
.preview-floating-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-wine);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
  pointer-events: none;
}

.preview-overlay-action {
  position: absolute;
  inset: 0;
  background: rgba(112, 20, 40, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 3;
  pointer-events: none;
}

.project-card.is-clickable:hover .preview-overlay-action {
  opacity: 1;
}

.preview-action-pill {
  background: #ffffff;
  color: var(--color-wine);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(6px);
  transition: transform var(--transition-fast);
  pointer-events: none;
}

.project-card.is-clickable:hover .preview-action-pill {
  transform: translateY(0);
}

/* =======================================================
   RESPONSIVIDAD
   ======================================================= */
@media (max-width: 768px) {
  .project-modal-backdrop {
    padding: 0.6rem;
  }

  .project-modal-card {
    max-height: 94vh;
    border-radius: 24px;
  }

  .modal-media-stage {
    min-height: 250px;
    max-height: 44vh;
  }

  .modal-slide {
    padding: 3.2rem 0.8rem 2.2rem;
  }

  .modal-top-bar {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .modal-badge-pill {
    font-size: 0.72rem;
    padding: 0.32rem 0.75rem;
  }

  .modal-bottom-info {
    padding: 1.1rem 1.25rem 1.25rem;
    max-height: 50vh;
    gap: 0.65rem;
  }

  .modal-project-title {
    font-size: 1.35rem;
  }

  .modal-specs-row {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0;
  }

  .modal-spec-item {
    width: 100%;
    justify-content: center;
  }

  .modal-specs-divider {
    display: none;
  }

  /* Créditos uno abajo del otro en móviles (en lugar de al lado) */
  .modal-author-row {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    padding-top: 0.4rem;
    width: 100%;
  }

  .modal-author-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    width: 100%;
  }

  .modal-credit-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.35;
    flex-wrap: wrap;
    text-align: center;
    white-space: normal;
  }

  .modal-credit-separator {
    display: none !important;
  }

  .modal-behance-link-btn {
    align-self: center;
    margin-top: 0.2rem;
  }

  .modal-nav-arrow {
    width: 36px;
    height: 36px;
  }

  .modal-nav-prev {
    left: 10px;
  }

  .modal-nav-next {
    right: 10px;
  }
}

/* === ARCHIVO: css/responsive.css === */
/**
 * RESPONSIVE.CSS
 * Adaptabilidad móvil, tablet y pantallas ultra-wide.
 */

@media (max-width: 1024px) {
  .card-col-8 {
    grid-column: span 12;
  }
  
  .card-col-6 {
    grid-column: span 12;
  }

  .card-col-4 {
    grid-column: span 6;
  }

  .notebook-grid-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Navegación móvil */
  .site-header {
    position: sticky;
    top: 0;
    position: relative;
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    position: static;
    width: 100%;
  }

  .site-nav {
    display: contents;
  }

  /* Botón hamburguesa tirado bien a la derecha */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 9px 8px;
    background: rgba(112, 20, 40, 0.08);
    border: 1.5px solid rgba(112, 20, 40, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: auto;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--color-wine);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Menú desplegable completo en mobile */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-candy-pink);
    flex-direction: column;
    padding: 1.8rem 1.5rem 2.2rem;
    gap: 1.2rem;
    border-bottom: 3px solid var(--color-wine);
    box-shadow: 0 16px 36px rgba(112, 20, 40, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1001;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    padding: 0.65rem 0;
    color: var(--color-wine);
    display: block;
    border-bottom: 1px dashed rgba(112, 20, 40, 0.18);
  }

  .nav-cta {
    width: 100%;
    max-width: 280px;
    margin: 0.5rem auto 0;
    text-align: center;
    padding: 0.85rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
  }

  /* Hero Split Grid Mobile */
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-col-content {
    align-items: center;
  }

  .hero-action-row {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-doodle-arrow svg {
    transform: rotate(70deg);
  }

  .hero-floating-script {
    right: 0;
    bottom: -10px;
    font-size: 1.15rem;
    padding: 0.18rem 0.55rem;
  }

  /* Grilla Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-col-4,
  .card-col-6,
  .card-col-8,
  .card-col-12 {
    grid-column: span 1;
  }

  .ratio-vertical {
    max-height: none;
    width: calc(100% - 2rem);
    max-width: 340px;
    margin: 1rem auto 0;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .project-preview-media,
  .ratio-horizontal {
    width: calc(100% - 2rem);
    margin: 1rem auto 0;
    border-radius: var(--radius-md);
  }

  .mini-control-btn {
    width: 42px;
    height: 42px;
  }

  .mini-control-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Ribbon mobile */
  .wavy-ribbon-wrapper {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .wavy-ribbon-svg {
    height: 75px;
  }

  .curved-text {
    font-size: 14px;
    letter-spacing: 0.08em;
  }

  /* Cuaderno Mobile */
  .binder-hole {
    width: 10px;
    height: 18px;
  }

  .notebook-content {
    padding: 2rem 1.25rem;
  }

  .filter-tabs {
    border-radius: var(--radius-md);
  }

  /* Modales en Mobile: Créditos uno abajo del otro */
  .modal-author-row {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    padding-top: 0.4rem;
    width: 100%;
  }

  .modal-author-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    width: 100%;
  }

  .modal-credit-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.35;
    flex-wrap: wrap;
    text-align: center;
    white-space: normal;
  }

  .modal-credit-separator {
    display: none !important;
  }

  .modal-behance-link-btn {
    align-self: center;
    margin-top: 0.2rem;
  }
}


/* ============================================================
   ESTILOS ACADÉMICOS DGPC - CÁTEDRA OCAMPO (FADU - UBA)
   ============================================================ */

/* 1. BARRA INSTITUCIONAL SUPERIOR & NAVEGACIÓN DUAL */
.academic-topbar {
  background-color: #6E1326;
  color: #FFF5F7;
  border-bottom: 1.5px solid rgba(249, 214, 222, 0.25);
  padding: 0.65rem 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1005;
}

.academic-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.academic-nav-tp,
.academic-nav-team {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.academic-nav-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-candy-pink);
  white-space: nowrap;
}

.academic-nav-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.academic-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 245, 247, 0.12);
  color: #FFF5F7;
  font-weight: 600;
  font-size: 0.76rem;
  border: 1px solid rgba(255, 245, 247, 0.22);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.academic-pill-link:hover {
  background-color: var(--color-candy-pink);
  color: var(--color-wine);
  border-color: var(--color-candy-pink);
  transform: translateY(-1px);
}

.academic-pill-link.active {
  background-color: var(--color-candy-pink);
  color: var(--color-wine);
  font-weight: 800;
  border-color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.academic-pill-group {
  background-color: #8A3D4D;
  border-color: rgba(249, 214, 222, 0.4);
}

.academic-pill-group:hover {
  background-color: var(--color-candy-pink);
  color: var(--color-wine);
}

/* 2. SECCIÓN PERFIL ACADÉMICO Y FOJA DE MATERIAS */
.academic-section {
  padding: 5rem 0 6rem;
  background-color: var(--bg-primary);
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.academic-sheet {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  background-color: #FFFDF9;
  border-radius: 4px 4px 18px 18px;
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(35, 30, 28, 0.14);
  background-image: 
    linear-gradient(to right, var(--color-notebook-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-notebook-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  padding: 0 0 3.5rem;
  overflow: hidden;
}

.academic-sheet-content {
  padding: 3rem clamp(1.5rem, 5vw, 4rem) 1.5rem;
}

.academic-header {
  text-align: center;
  margin-bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.academic-stamp {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-wine);
  border: 2px solid var(--color-wine);
  padding: 0.3rem 0.95rem;
  border-radius: 4px;
  transform: rotate(-2deg);
  margin-bottom: 1.1rem;
}

.academic-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* Avatar integrado (600x600) en el perfil */
.academic-avatar-card {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
  max-width: 640px;
  width: 100%;
}

.academic-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.academic-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--color-candy-pink);
  box-shadow: 0 4px 16px rgba(112, 20, 40, 0.18);
  display: block;
}

.academic-avatar-wrapper::after {
  content: '★';
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: var(--color-wine);
  color: #FFF5F7;
  font-size: 0.75rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.academic-student-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}

.student-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-wine);
}

.student-career {
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Grilla de Foja */
.foja-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.foja-card {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.foja-card-approved {
  grid-column: span 2;
}

.foja-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1.5px dashed var(--border-subtle);
  padding-bottom: 0.85rem;
}

.foja-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.foja-status-pill {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-full);
}

.pill-current {
  background-color: var(--color-wine);
  color: #FFF5F7;
  box-shadow: 0 3px 10px rgba(112, 20, 40, 0.25);
}

.pill-approved {
  background-color: #2D6A4F;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(45, 106, 79, 0.25);
}

.pill-pending {
  background-color: #D97706;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
}

.foja-subject-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.foja-subject-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background-color: #FFF5F7;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(112, 20, 40, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.foja-subject-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.foja-subject-item.is-highlight {
  background-color: #FCEAEF;
  border-left: 5px solid var(--color-wine);
}

.subject-code {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-wine);
  background-color: #FFFFFF;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(112, 20, 40, 0.18);
  min-width: 52px;
  text-align: center;
  flex-shrink: 0;
}

.subject-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.subject-name {
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.subject-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.subject-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-wine);
  background-color: rgba(112, 20, 40, 0.08);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pending-tag {
  color: #B45309;
  background-color: #FEF3C7;
}

.pending-code {
  color: #B45309;
}

/* Clústeres de materias aprobadas */
.approved-level-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background-color: #FAFAFA;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.level-subhead {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.subject-tags-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.subject-pill.approved {
  background-color: #EBF5EE;
  color: #1B4332;
  border: 1px solid #B7E4C7;
}

.subject-pill.approved:hover {
  background-color: #D8F3DC;
  transform: translateY(-1px);
}

/* 3. BLOQUE INSTITUCIONAL Y CÁTEDRA (#catedra) */
.institutional-section {
  padding: 5.5rem 0 6.5rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.institutional-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  padding: clamp(2rem, 5vw, 3.8rem);
}

.institutional-card-header {
  text-align: center;
  margin-bottom: 3.2rem;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 2rem;
}

.inst-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-wine);
  background-color: var(--color-candy-pink);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.inst-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.8vw, 3.3rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.inst-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-serif);
}

.institutional-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.inst-col {
  background-color: #FFF5F7;
  border-radius: var(--radius-md);
  padding: 1.85rem;
  border: 1px solid rgba(112, 20, 40, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.inst-col-wide {
  grid-column: span 1;
}

.inst-block-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.inst-block-icon {
  font-size: 1.45rem;
}

.inst-block-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-wine);
  margin: 0;
}

.inst-name {
  font-size: 1.02rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.inst-subname {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.inst-authorities-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.93rem;
  margin: 0;
  padding: 0;
}

.inst-authorities-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  border-bottom: 1px dotted rgba(112, 20, 40, 0.16);
  padding-bottom: 0.4rem;
}

.authority-role {
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.authority-name {
  color: var(--text-primary);
  text-align: right;
}

.badge-placeholder {
  display: inline-block;
  background-color: var(--color-candy-pink);
  color: var(--color-wine);
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
  border: 1.5px dashed var(--color-wine);
  font-size: 0.85rem;
}

/* 4. FOOTER LEGAL OBLIGATORIO */
.academic-legal-box {
  max-width: 860px;
  margin: 2.8rem auto 1.6rem;
  padding: 1.35rem 1.85rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  text-align: center;
}

.academic-legal-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #EFE4E7;
  margin: 0;
}

/* 5. RESPONSIVE ACADÉMICO */
@media (max-width: 768px) {
  .academic-topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .academic-nav-tp,
  .academic-nav-team {
    justify-content: center;
  }

  .academic-nav-list {
    justify-content: center;
  }

  .academic-avatar-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.5rem 1.25rem;
  }

  .academic-student-badge {
    align-items: center;
    text-align: center;
  }

  .foja-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .foja-card-approved {
    grid-column: span 1;
  }

  .institutional-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .inst-col-wide {
    grid-column: span 1;
  }

  .inst-authorities-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .authority-name {
    text-align: left;
  }

  .academic-sheet-content {
    padding: 2rem 1.25rem;
  }
}
