/* ==========================================================================
   PROYECTO: Biotecnología y Genética - AGROSAVIA Turipaná
   INSTITUCIÓN: Institución Educativa Nuestra Señora del Carmen (Colcarmen)
   ESTILO: Académico, sobrio, científico y responsive
   AUTORAS: Isabella Pizarro, María Juliana Rivadeneira, Daniela Rosero, Gabriela Zúñiga
   ========================================================================== */

/* --- Variables Globales de Diseño --- */
:root {
  /* Paleta Sobria Científica: Verde Bosque y Tonos Naturales */
  --color-primary-dark: #0e2a1b;
  --color-primary: #17442a;
  --color-primary-medium: #235c3b;
  --color-primary-light: #2e7d4e;
  --color-accent: #15803d;
  --color-accent-soft: #eaf5ee;
  --color-accent-border: #bbf7d0;

  /* Neutros y Fondos */
  --bg-main: #f8faf8;
  --bg-surface: #ffffff;
  --bg-alt: #f0f4f1;
  --bg-card: #ffffff;
  
  /* Textos y Contraste */
  --text-title: #0f172a;
  --text-body: #2d3748;
  --text-muted: #5a6a7e;
  --text-light: #ffffff;
  
  /* Bordes y Sombras */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #17442a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 14px 28px rgba(23, 68, 42, 0.12);

  /* Tipografías */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  /* Espaciados y Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --nav-height: 72px;
  --container-max: 1200px;
  --transition-normal: all 0.25s ease-in-out;
}

/* --- Reseteo y Estilos Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  overflow-x: hidden;
}

/* Enlaces y enfoque accesible */
a {
  color: var(--color-primary-medium);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--color-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenedor centralizado */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Secciones con margen superior para navegación ancla */
.content-section {
  padding: 5rem 0;
  scroll-margin-top: var(--nav-height);
}

.content-section.bg-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Encabezados de sección */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background-color: var(--color-accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  margin: 1.25rem auto 0 auto;
  border-radius: 2px;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN FIJA (HEADER)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  width: 92%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-badge {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-medium));
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.brand-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-title);
}

.brand-text strong {
  color: var(--color-primary-medium);
}

/* Enlaces de menú */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

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

/* Botón Hamburguesa Móvil */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--text-title);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   PORTADA ACADÉMICA (HERO SECTION)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(160deg, #0e2a1b 0%, #17442a 60%, #1e5a38 100%);
  color: var(--text-light);
  padding: calc(var(--nav-height) + 4rem) 0 5rem 0;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(21, 128, 61, 0.22) 0%, transparent 50%),
                    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.tag-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}

.institution-tag {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  color: #f0fdf4;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.location-tag {
  background-color: rgba(21, 128, 61, 0.4);
  color: #dcfce7;
}

.scope-tag {
  background-color: rgba(0, 0, 0, 0.25);
  color: #e2e8f0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
  max-width: 1050px;
}

.highlight-title {
  color: #86efac;
  display: inline;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 900px;
  margin-bottom: 2.5rem;
}

/* Ficha de Metadatos */
.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.meta-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.meta-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #86efac;
  font-weight: 700;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.4;
}

.meta-value.placeholder-text,
.placeholder-text {
  color: #fde047;
  background-color: rgba(250, 204, 21, 0.15);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-style: italic;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background-color: #22c55e;
  color: #052e16;
  border: none;
}

.btn-primary:hover {
  background-color: #16a34a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN 1: INTRODUCCIÓN Y PILARES
   ========================================================================== */
.grid-2-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.content-text-block p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.lead-text {
  font-size: 1.15rem !important;
  color: var(--color-primary-dark);
  font-weight: 500;
  line-height: 1.8 !important;
}

.pillars-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.pillars-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent-soft);
}

.pillars-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillars-list li {
  display: flex;
  gap: 1rem;
}

.pillar-bullet {
  width: 32px;
  height: 32px;
  background-color: var(--color-accent-soft);
  color: var(--color-primary);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-accent-border);
}

.pillars-list strong {
  display: block;
  font-size: 1rem;
  color: var(--text-title);
  margin-bottom: 0.25rem;
}

.pillars-list p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN 2: AGROSAVIA TURIPANÁ
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.info-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.info-card-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.info-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.85rem;
}

.info-card p {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-body);
}

.highlight-card {
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf7 100%);
}

/* ==========================================================================
   SECCIÓN 3: GALERÍA DE PRÁCTICAS DE LABORATORIO
   ========================================================================== */
/* Barra de Filtro */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background-color: var(--bg-surface);
  color: var(--text-body);
  border: 1px solid var(--border-light);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background-color: var(--color-accent-soft);
  color: var(--color-primary);
  border-color: var(--color-accent-border);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--text-light);
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(23, 68, 42, 0.25);
}

/* Rejilla de Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.25rem;
}

.gallery-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent-border);
}

.gallery-card.hidden {
  display: none !important;
}

.card-figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 85%; /* Proporción limpia uniforme */
  background-color: #1e293b;
  overflow: hidden;
}

.gallery-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb {
  transform: scale(1.05);
}

/* Overlay de Zoom */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(14, 42, 27, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .image-overlay {
  opacity: 1;
}

.zoom-icon {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
}

/* Contenido de la Tarjeta */
.card-caption {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.badge-epp {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-invitro {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-dosificacion {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-analisis {
  background-color: #ede9fe;
  color: #6d28d9;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECCIÓN 4: ENCUESTA Y METODOLOGÍA
   ========================================================================== */
.survey-analysis-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3.5rem;
}

.analysis-box-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.75rem;
  text-align: center;
}

.survey-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.kpi-card {
  border-top: 3px solid var(--color-primary);
  padding-top: 1.25rem;
}

.kpi-num {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.kpi-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.5rem;
}

.kpi-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.55;
}

.survey-tabs-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.survey-series-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.35rem;
}

.survey-series-hint {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Pestañas de Documentos */
.doc-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.doc-tab-btn {
  background-color: var(--bg-surface);
  color: var(--text-body);
  border: 1px solid var(--border-light);
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
}

.doc-tab-btn:hover {
  background-color: var(--bg-alt);
  color: var(--color-primary);
}

.doc-tab-btn.active {
  background-color: var(--color-primary);
  color: var(--text-light);
  border-color: var(--color-primary);
}

/* Paneles de Contenido de Pestañas */
.doc-tab-content {
  display: none;
}

.doc-tab-content.active {
  display: block;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.doc-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-medium);
}

.doc-img-wrap {
  width: 100%;
  height: 340px;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.doc-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.doc-card:hover .doc-thumb {
  transform: scale(1.03);
}

.doc-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.doc-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.doc-card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.35;
}

.doc-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN 5: CONCLUSIONES
   ========================================================================== */
.conclusions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.conclusion-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.conclusion-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent-soft);
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #bbf7d0;
}

.conclusion-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.conclusion-body p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.placeholder-box {
  background-color: #fefce8;
  border: 1px dashed #ca8a04;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.placeholder-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #854d0e;
  background-color: #fef08a;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.placeholder-instruction {
  font-size: 0.875rem !important;
  color: #713f12 !important;
  line-height: 1.5 !important;
  font-style: italic;
  margin-bottom: 0 !important;
}

/* ==========================================================================
   SECCIÓN 6: AGRADECIMIENTOS Y CRÉDITOS
   ========================================================================== */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.credit-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.credit-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.credit-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 0.85rem;
}

.credit-card p {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.credit-subtext {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

.authors-badge-box {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--text-light);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.authors-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #86efac;
  margin-bottom: 1.5rem;
}

.authors-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
}

.authors-list li {
  font-size: 1.05rem;
  color: #f0fdf4;
}

.authors-list strong {
  color: #ffffff;
}

/* ==========================================================================
   MODAL LIGHTBOX INTERACTIVO
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 17, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2010;
  width: 92%;
  max-width: 1050px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botones de control del Lightbox */
.lightbox-btn-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.75rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 2020;
}

.lightbox-btn-close:hover {
  background-color: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 2020;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev {
  left: -60px;
}

.lightbox-nav-btn.next {
  right: -60px;
}

/* Tarjeta y Foto en Lightbox */
.lightbox-figure-wrap {
  width: 100%;
  max-height: 85vh;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.lightbox-figure {
  display: grid;
  grid-template-columns: 1fr 340px;
  max-height: 85vh;
  width: 100%;
  background-color: #0b140e;
}

.lightbox-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #09120c;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  background-color: var(--bg-surface);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  border-left: 1px solid var(--border-light);
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.lightbox-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background-color: var(--color-accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.lightbox-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
  background-color: #0b1f13;
  color: #cbd5e1;
  padding: 4rem 0 2.5rem 0;
  border-top: 3px solid var(--color-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
}

.footer-school {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.footer-location {
  font-size: 0.9rem;
  color: #86efac;
  margin-bottom: 0.85rem;
}

.footer-project {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.footer-info strong {
  color: #f1f5f9;
}

.footer-copy {
  font-size: 0.8rem !important;
  color: #64748b !important;
  margin-top: 1rem;
}

/* ==========================================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .lightbox-figure {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }

  .lightbox-image-container {
    padding: 1rem;
    max-height: 50vh;
  }

  .lightbox-img {
    max-height: 48vh;
  }

  .lightbox-caption {
    padding: 1.5rem;
    max-height: 35vh;
  }

  .lightbox-nav-btn.prev {
    left: 10px;
  }

  .lightbox-nav-btn.next {
    right: 10px;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 2rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lightbox-btn-close {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .gallery-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .filter-btn {
    white-space: nowrap;
  }
}

/* Reducción de animaciones si el usuario lo prefiere */
@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;
  }
}
