/*
Theme Name: GENAEIO 2027
Theme URI: https://github.com/jdec92/Web-GENAEIO-2027
Author: Comité Organizador GENAEIO 2027
Description: Tema para las XIII Jornadas Internacionales de Enseñanza y Aprendizaje de la Estadística, la Investigación Operativa y la Ciencia de Datos (Jaén, 15-16 abril 2027).
Version: 1.0.83
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: genaeio2027
*/

/* ==========================================================================
   1. VARIABLES CSS & CONFIGURACIÓN GLOBAL
   ========================================================================== */

:root {
  --verde-oscuro: #123524;
  --verde: #1f6b42;
  --verde-claro: #e7f0e9;
  --oliva: #8a9a3c;
  --dorado: #c9a227;
  --piedra: #f6f4ef;
  --texto: #22281f;
  --texto-suave: #5a6155;
  --blanco: #ffffff;
  --borde: #dfe3d9;
  --radio: 10px;
  --sombra: 0 6px 20px rgba(18, 53, 36, 0.08);
  --fuente-titulo: "Fraunces", Georgia, serif;
  --fuente-cuerpo: "Inter", -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ==========================================================================
   2. RESET Y ESTILOS BASE
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fuente-cuerpo);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
}

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

a {
  color: var(--verde);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulo);
  color: var(--verde-oscuro);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--piedra);
}

/* Subtítulos decorativos */
.eyebrow {
  display: inline-block;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a37e2c; /* Bronce / Oro viejo */
  font-weight: 700;
  margin-bottom: 18px;
}

.eyebrow-hero {
  color: #e9d98a; /* Dorado claro para el Hero */
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* ==========================================================================
   3. BOTONES Y ETIQUETAS (BADGES)
   ========================================================================== */

/* Botones */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid var(--verde);
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--verde);
  color: var(--blanco);
}

.btn-primary:hover {
  background: var(--verde-oscuro);
  border-color: var(--verde-oscuro);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border-color: var(--blanco);
}

.btn-outline:hover {
  background: var(--blanco);
  color: var(--verde-oscuro);
  text-decoration: none;
}

.btn-outline-dark {
  border: 2px solid var(--verde-oscuro);
  color: var(--verde-oscuro);
  background: transparent;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
}

.btn-outline-dark:hover {
  background: var(--verde-oscuro);
  color: var(--blanco);
  text-decoration: none;
}

/* Badges / Etiquetas */
.badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.badge-talk { background: var(--verde-claro); color: var(--verde-oscuro); }
.badge-session { background: #e8f0fe; color: #1a73e8; }
.badge-blue { background: #e8f0fe; color: #1a73e8; }
.badge-green { background: #eef7ee; color: var(--verde-oscuro); }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-purple { background: #fbebf3; color: #9c27b0; }

.role-badge {
  display: inline-block;
  background: var(--dorado);
  color: var(--verde-oscuro);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* ==========================================================================
   4. CABECERA Y NAVEGACIÓN (HEADER)
   ========================================================================== */

/* 1. Dar más altura a la barra superior */
.site-header, 
header.site-header {
    padding: 12px 0 !important;    /* Espacio superior e inferior de la barra */
    min-height: 85px !important;   /* Altura mínima del contenedor */
}

/* 2. Mantener logo y menú perfectamente centrados verticalmente */
.site-header .container,
header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* 3. Hacer el logo de la barra más grande */
.site-header img,
.custom-logo {
    max-height: 75px !important;   /* Antes solía estar entre 45px y 50px */
    width: auto !important;
    height: auto !important;
}
/* Barra Superior */
.top-bar {
  background: var(--verde-oscuro);
  color: var(--blanco);
  font-size: 0.82rem;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}

.top-contact a,
.top-links a {
  color: var(--blanco);
  opacity: 0.9;
  transition: 0.25s;
}

.top-contact a:hover,
.top-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-links span {
  opacity: 0.35;
}

/* Cabecera Principal */
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 65px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img,
.custom-logo {
  max-height: 90px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--fuente-titulo);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--verde-oscuro);
  line-height: 1;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--oliva);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Menú de Navegación */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  color: var(--verde-oscuro);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: 0.25s;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 0;
  height: 2px;
  background: var(--dorado);
  transition: 0.25s;
}

.primary-nav a:hover,
.primary-nav li.current-menu-item > a {
  color: var(--verde);
  text-decoration: none;
}

.primary-nav a:hover::after,
.primary-nav li.current-menu-item > a::after {
  width: 100%;
}

/* Submenús */
.primary-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: var(--blanco);
  border-radius: 12px;
  padding: 14px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.primary-nav li:hover > ul {
  display: flex;
}

/* Header Responsive */
@media (max-width: 1200px) {
  .header-main { gap: 20px; }
  .brand-title { font-size: 1.6rem; }
  .primary-nav ul { gap: 14px; }
  .primary-nav a { font-size: 0.85rem; }
}

@media (max-width: 950px) {
  .header-main {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
    gap: 14px;
  }
  .primary-nav { justify-content: center; }
  .primary-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  .brand { margin-bottom: 5px; }
  .brand-title { font-size: 1.8rem; }
  .brand-subtitle { text-align: center; }
}

@media (max-width: 650px) {
  .top-bar { display: none; }
  .header-main { min-height: auto; }
  .primary-nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================================================
   5. SECCIONES HERO Y PÁGINAS INTERIORES
   ========================================================================== */

/* Hero Principal */
.hero {
  position: relative;
  color: var(--blanco);
  padding: 100px 0 80px;
}

.hero-header-grid {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}

.hero-logo-box {
  flex-shrink: 0;
  background-color: var(--verde-claro);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 22px;
  border-radius: var(--radio);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-box img {
  max-height: 185px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-title-box h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--blanco);
}

.hero .meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 18px 0 30px;
  font-weight: 600;
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-header-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-logo-box img {
    max-height: 130px;
  }
}

/* Hero Páginas Interiores */
.page-hero {
  background: var(--verde-oscuro);
  color: var(--blanco);
  padding: 60px 0 40px;
}

.page-hero h1 {
  color: var(--blanco);
}

.breadcrumb {
  font-size: 0.85rem;
  color: #cfe3d6;
  margin-bottom: 10px;
}

.breadcrumb a {
  color: #cfe3d6;
}

.entry-content {
  padding: 50px 0;
  max-width: 900px;
  margin: 0 auto;
}

.entry-content h2 {
  margin-top: 1.4em;
}

/* ==========================================================================
   6. GRIDS Y SISTEMA DE MAQUETACIÓN
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   7. TARJETAS Y COMPONENTES GENERALES
   ========================================================================== */

.card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 26px;
  box-shadow: var(--sombra);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card .tag {
  color: var(--texto-suave);
  font-size: 0.85rem;
}

.icon-card {
  text-align: center;
}

.icon-card .icono {
  font-size: 2rem;
  margin-bottom: 10px;
}

.info-card-box {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Noticias */
.noticia {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--borde);
}

.noticia .fecha-badge {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  font-weight: 700;
  min-width: 64px;
}

.noticia .fecha-badge span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   8. PROGRAMA, HORARIOS Y LÍNEA DE TIEMPO
   ========================================================================== */

/* Timeline Horizontal (Fechas clave) */
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--borde);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  min-width: 130px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-step .dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.3rem;
}

.timeline-step .fecha {
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline-step .label {
  font-size: 0.8rem;
  color: var(--texto-suave);
}

/* Programa Detallado */
.day-nav-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.day-header h2 {
  font-size: 1.8rem;
  color: var(--verde-oscuro);
  border-bottom: 3px solid var(--verde-claro);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.timeline-schedule {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-card {
  display: flex;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.schedule-card.highlight { border-left: 5px solid var(--dorado); }
.schedule-card.break { background: var(--piedra); }
.schedule-card.social { border-left: 5px solid var(--oliva); }

.schedule-time {
  background: var(--verde-oscuro);
  color: var(--blanco);
  font-weight: 700;
  padding: 20px;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-align: center;
}

.schedule-card.break .schedule-time {
  background: var(--texto-suave);
}

.schedule-content {
  padding: 20px 24px;
  flex: 1;
}

.schedule-content h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.schedule-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--borde);
  font-size: 0.9rem;
}

.map-link {
  color: var(--verde);
  font-weight: 600;
  cursor: pointer;
  background: #f0f7f2;
  padding: 5px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.map-link:hover {
  background: var(--verde-claro);
  text-decoration: underline;
}

.meet-link {
  color: #1a73e8;
  font-weight: 600;
  background: #e8f0fe;
  padding: 5px 12px;
  border-radius: 6px;
}

.meet-link:hover {
  background: #d2e3fc;
  text-decoration: none;
}

.papers-list {
  margin: 12px 0;
  padding-left: 20px;
  font-size: 0.95rem;
}

.papers-list li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .schedule-card {
    flex-direction: column;
  }
  .schedule-time {
    min-width: 100%;
    padding: 10px;
  }
}

/* ==========================================================================
   9. COMITÉS Y ORGANIZACIÓN
   ========================================================================== */

.committee-block {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 35px;
  border: 1px solid var(--borde);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.committee-header h2 {
  font-size: 1.8rem;
  color: var(--verde-oscuro);
  border-bottom: 3px solid var(--verde-claro);
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.flex-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Tarjeta del Presidente */
.president-card {
  background: linear-gradient(135deg, #123524 0%, #1e5238 100%);
  color: var(--blanco);
  padding: 24px 30px;
  border-radius: 8px;
  border-left: 6px solid var(--dorado);
  margin-bottom: 30px;
}

.avatar-president {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--dorado);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.president-card h3 {
  color: var(--blanco);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.president-card .affiliation {
  color: #cfe3d6;
  font-size: 0.98rem;
  margin: 0;
}

/* Vocales y Miembros */
.vocales-title {
  font-size: 1.2rem;
  color: var(--verde-oscuro);
  margin-bottom: 18px;
}

.vocales-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.vocales-grid.single-column {
  grid-template-columns: 1fr;
}

.vocal-card {
  background: var(--piedra);
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 16px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vocal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--verde-claro);
}

.vocal-card.full-width {
  grid-column: span 2;
}

.avatar-vocal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--verde-claro);
  flex-shrink: 0;
  background-color: #ddd;
}

.vocal-card h4 {
  color: var(--verde-oscuro);
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.vocal-card p {
  color: var(--texto-suave);
  font-size: 0.88rem;
  margin: 0;
}

/* Persona Card General */
.persona-card {
  text-align: center;
}

.persona-card .foto {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--verde-claro);
  margin: 0 auto 14px;
  overflow: hidden;
}

.persona-card .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.persona-card h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.persona-card .universidad {
  color: var(--texto-suave);
  font-size: 0.88rem;
}

.persona-card .cargo {
  color: var(--verde);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 6px;
}

@media (max-width: 768px) {
  .vocales-grid {
    grid-template-columns: 1fr;
  }
  .vocal-card.full-width {
    grid-column: span 1;
  }
  .committee-block {
    padding: 20px;
  }
  .flex-card {
    gap: 14px;
  }
}

/* ==========================================================================
   10. TABLAS Y FORMULARIOS
   ========================================================================== */

/* Tablas General */
table.comite,
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

table.comite th, table.comite td,
.custom-table th, .custom-table td,
.entry-content table th, .entry-content table td {
  padding: 12px 16px;
  border: 1px solid var(--borde);
  text-align: left;
}

table.comite th,
.custom-table th,
.entry-content table th {
  background: var(--verde-oscuro);
  color: var(--blanco);
  font-weight: 600;
}

.custom-table tr:nth-child(even) {
  background: var(--piedra);
}

.entry-content table {
  margin: 1.2em 0;
}

.entry-content table th {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
}


/* Tabla de cuotas: adaptación móvil en formato tarjeta */
@media (max-width: 768px) {
  .pricing-table {
    display: block;
    width: 100%;
    border-collapse: separate;
    margin-top: 18px;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table tbody tr {
    margin-bottom: 18px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    overflow: hidden;
    background: var(--blanco);
    box-shadow: 0 3px 10px rgba(18, 53, 36, 0.06);
  }

  .pricing-table tbody tr:nth-child(even) {
    background: var(--blanco);
  }

  .pricing-table td {
    border: 0;
    border-bottom: 1px solid var(--borde);
    padding: 11px 14px;
    text-align: right !important;
  }

  .pricing-table td:last-child {
    border-bottom: 0;
  }

  .pricing-table .pricing-category {
    background: var(--verde-oscuro);
    color: var(--blanco);
    text-align: left !important;
    font-size: 1rem;
    padding: 14px;
  }

  .pricing-table td[data-label] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
  }

  .pricing-table td[data-label]::before {
    content: attr(data-label);
    color: var(--texto-suave);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.3;
  }

  .pricing-table td[data-label] {
    font-weight: 700;
    color: var(--verde-oscuro);
  }

}


/* Formularios */
.form-container-box {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.form-header h2 {
  color: var(--verde-oscuro);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--texto-suave);
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--verde-oscuro);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--verde);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 82, 56, 0.1);
}

.file-input {
  background: #fff !important;
  padding: 10px !important;
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
}

/* ==========================================================================
   11. PÁGINAS DE PARTICIPACIÓN Y FECHAS
   ========================================================================== */

/* Portadilla Participación */
.participacion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.part-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.part-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--verde-claro);
}

.part-card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.part-card h3 {
  color: var(--verde-oscuro);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.part-card p {
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 25px;
}

@media (max-width: 992px) {
  .participacion-grid { grid-template-columns: 1fr; }
}

/* Tarjetas de Fechas Clave */
.dates-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 850px;
  margin: 0 auto;
}

.date-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 22px 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border-left: 8px solid var(--verde);
}

.date-card.highlight { border-left-color: #e67e22; }

.date-card.main-event {
  background: linear-gradient(135deg, #123524 0%, #1e5238 100%);
  color: var(--blanco);
  border-left-color: var(--dorado);
}

.date-icon { font-size: 2.2rem; width: 56px; min-width: 56px; display: flex; align-items: center; justify-content: center; line-height: 1; }

.date-details { flex: 1; }

.date-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: #cfe1d3;
  color: #0d3d27;
  border: 1px solid #a9c7b0;
  margin-bottom: 6px;
}

.date-badge.warning { background: #fdebd0; color: #d35400; }
.date-badge.event { background: var(--dorado); color: var(--verde-oscuro); }

.date-card h3 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.date-card.main-event h3 { color: var(--blanco); }

.date-text {
  font-weight: 700;
  color: var(--verde);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.date-card.main-event .date-text { color: var(--dorado); }

.date-desc {
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin: 0;
}

.date-card.main-event .date-desc { color: #cfe3d6; }

@media (max-width: 768px) {
  .date-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .date-icon {
    width: auto;
    min-width: 0;
  }
}


/* ==========================================================================
   12. ALOJAMIENTO Y SERVICIOS
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.hotel-card {
  background: var(--piedra);
  border: 1px solid var(--borde);
  padding: 22px;
  border-radius: 8px;
}

.hotel-card-full {
  grid-column: span 2;
}

.hotel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .hotel-card-full { grid-column: span 1; }
}

/* ==========================================================================
   13. MODALES Y VENTANAS FLOTANTES
   ========================================================================== */

.map-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.map-modal-content {
  background: var(--blanco);
  padding: 20px;
  border-radius: 12px;
  max-width: 850px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.map-modal-content h4 {
  margin-bottom: 15px;
}

.map-modal-content img {
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid var(--borde);
}

.map-modal-close {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* ==========================================================================
   14. PIE DE PÁGINA (FOOTER)
   ========================================================================== */

.site-footer {
  background: var(--verde-oscuro);
  color: #cfe3d6;
  padding: 46px 0 20px;
  font-size: 0.9rem;
}

.site-footer h4 {
  color: var(--blanco);
  font-size: 0.95rem;
}

.site-footer a {
  color: #cfe3d6;
}

.site-footer a:hover {
  color: var(--dorado);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* Sección Logos Footer */
.footer-logos-section {
  padding: 24px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
  text-align: center;
}

.footer-logos-title {
  color: var(--blanco);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 22px;
  opacity: 0.9;
}

.footer-logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-item {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 75px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.logo-item img {
  max-height: 52px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .footer-logos-grid { gap: 12px; }
  .logo-item {
    height: 65px;
    min-width: 120px;
    padding: 8px 12px;
  }
  .logo-item img {
    max-height: 42px;
    max-width: 110px;
  }
}

/* ==========================================================================
   15. TARJETAS "DESCUBRE JAÉN" (PÁGINA TEMPLATE) - UNIFICADO Y RESPONSIVO
   ========================================================================== */

/* Rejilla Principal - Responsiva automáticamente */
.dj-main-grid {
  display: grid;
  /* Crea columnas de al menos 280px, si no caben se apilan */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 60px;
}

/* Estilo Base de la Tarjeta */
.dj-card {
  background: var(--blanco);
  border: 1px solid #e2e8f0;
  border-radius: 12px; /* Un poco más curvo para destacar */
  overflow: hidden; /* IMPORTANTE: Mantiene las esquinas redondeadas de la imagen */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Efecto Hover */
.dj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(18, 53, 36, 0.15); /* Sombra con tono verde oscuro */
  border-color: var(--verde-claro);
}

/* ADAPTACIÓN DE LA IMAGEN AL CUADRO */
.dj-card-img {
  width: 100%;
  height: 200px; /* Altura fija para mantener consistencia */
  /* CLAVE: La imagen cubre todo el espacio sin deformarse (se recorta si es necesario) */
  object-fit: cover; 
  object-position: center; /* Centra el enfoque de la imagen */
  display: block;
  background-color: #f1f5f9; /* Color base mientras carga */
}

/* Cuerpo de la Tarjeta */
.dj-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Etiquetas (Tags) superiores */
.dj-card-tag {
  align-self: flex-start;
  background-color: #faf3e0; /* Dorado muy claro */
  color: #a37e2c; /* Oro viejo */
  border: 1px solid #e9d98a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Títulos dentro de la tarjeta */
.dj-card-body h3 {
  color: var(--verde-oscuro);
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 700;
}

/* Párrafos dentro de la tarjeta */
.dj-card-body p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1; /* Permite que el botón se alinee abajo */
}

/* Botón de la Tarjeta */
.dj-card-btn {
  margin-top: auto; /* Empuja el botón al final del contenedor flex */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--verde-oscuro);
  color: var(--blanco);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
  text-align: center;
}

.dj-card-btn:hover {
  background-color: var(--verde);
  color: var(--blanco);
  text-decoration: none;
}

/* --- Sub-estilos específicos para la tarjeta de Jaén en Cifras --- */

.dj-cifras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas siempre */
  gap: 12px;
  margin-top: 10px;
}

.dj-cifra-item {
  background-color: #f8fafc;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}

.dj-cifra-num {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #a37e2c; /* Tono bronce/dorado */
}

.dj-cifra-lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-top: 2px;
  line-height: 1.2;
}

/* --- Ajustes Responsivos extra para Móviles pequeños (max-width: 480px) --- */
@media (max-width: 480px) {
  .dj-card-img {
    height: 180px; /* Un poco más baja en móviles muy pequeños */
  }
  .dj-card-body {
    padding: 20px;
  }
  .dj-card-body h3 {
    font-size: 1.2rem;
  }
}
/* ========================================================
   ESTILOS GENERALES PARA TODOS LOS MENÚS DESPLEGABLES
======================================================== */

/* 1. El contenedor principal (cada pestaña del menú) debe ser relativo */
.dropdown {
    position: relative;
}

/* 2. Ocultar la cajita del submenú por defecto */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Aparece justo debajo del menú principal */
    left: 0;
    background-color: #ffffff;
    min-width: 220px; /* Ancho del desplegable */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px; /* Bordes redondeados abajo */
    padding: 10px 0;
    margin: 0;
    list-style: none;
    z-index: 9999; /* Por encima de las imágenes del resto de la web */
    border: 1px solid #e2e8f0;
    border-top: 3px solid #1b4332; /* Detalle verde en la parte superior del desplegable */
}

/* 3. Mostrar el submenú al pasar el ratón por CUALQUIER pestaña con la clase .dropdown */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* 4. Quitar viñetas y márgenes de la lista interna */
.dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 5. Estilos de los enlaces de los submenús */
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

/* 6. Efecto Hover: Cambio de color al pasar el ratón por los sub-enlaces */
.dropdown-menu li a:hover {
    background-color: #f8fafc;
    color: #1b4332; /* Verde corporativo GENAEIO */
}

/* Animación de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ocultar la opción de Sala Virtual */
nav ul li a[href*="sala-virtual"] {
    display: none !important;
}

/* ==========================================================================
   16. AJUSTES RESPONSIVOS GENERALES - v1.0.2
   Evita desbordamientos horizontales y adapta tarjetas/rejillas a móvil.
   ========================================================================== */

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.registration-period-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--dorado);
  background: #faf8f1;
  border-radius: 0 6px 6px 0;
  color: var(--texto);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-placeholder {
  border: 1px dashed #b9c7bd;
  background: #f7faf8;
  border-radius: 10px;
  padding: 34px 24px;
  text-align: center;
}

.form-placeholder-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.form-placeholder h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.form-placeholder p {
  margin: 0;
  color: var(--texto-suave);
}

.google-form-wrapper,
.google-form-wrapper iframe {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 42px 0;
  }

  .page-hero {
    padding: 42px 0 30px;
  }

  .info-card-box,
  .form-container-box,
  .part-card,
  .date-card,
  .recom-card,
  .gastro-card,
  .hotel-card-custom,
  .monument-card,
  .schedule-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .info-card-box,
  .form-container-box {
    padding: 20px !important;
  }

  .payment-grid,
  .services-grid,
  .gastro-grid,
  .hotel-grid,
  .recom-grid,
  .monument-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    gap: 18px;
  }

  .payment-grid {
    margin-bottom: 36px;
  }

  .services-grid > *,
  .payment-grid > *,
  .gastro-grid > *,
  .hotel-grid > *,
  .recom-grid > *,
  .monument-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .gastro-card-header,
  .hotel-card-header,
  .monument-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gastro-badges,
  .hotel-badges {
    justify-content: flex-start;
  }

  .gastro-badge,
  .badge-price,
  .badge-stars,
  .monument-badge {
    white-space: normal;
  }

  .recom-card {
    padding: 20px;
  }

  .recom-user,
  .recom-highlight-box,
  .gastro-card-header,
  .hotel-card-header,
  .monument-card-header {
    min-width: 0;
  }

  .recom-place-text,
  .recom-comment,
  .gastro-desc,
  .gastro-specialty,
  .hotel-location-link,
  .monument-address-link,
  .info-card-box,
  .form-container-box,
  .date-details,
  .member-info {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .recom-comment {
    padding: 16px 14px;
  }

  .recom-comment p {
    padding-left: 8px;
  }

  .form-placeholder {
    padding: 26px 18px;
  }

  .form-placeholder h3 {
    font-size: 1.08rem;
  }

  .registration-period-note {
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .info-card-box,
  .form-container-box,
  .recom-card,
  .gastro-card,
  .hotel-card-custom {
    padding: 17px !important;
  }

  .page-hero h1 {
    font-size: 1.85rem;
  }

  .info-card-box h2,
  .form-header h2,
  .gastro-section-title,
  .hotel-section-title,
  .monument-section-title {
    font-size: 1.3rem !important;
    line-height: 1.2;
  }
}


/* ==========================================================================
   17. MENÚ MÓVIL PLEGABLE - v1.0.3
   ========================================================================== */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--borde);
  border-radius: 8px;
  background: var(--blanco);
  color: var(--verde-oscuro);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--verde-claro);
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .site-header,
  header.site-header {
    padding: 0 !important;
    min-height: auto !important;
  }

  .header-main {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    min-height: auto !important;
  }

  .brand {
    margin: 0 !important;
    min-width: 0;
  }

  .brand img,
  .custom-logo,
  .site-header img {
    max-height: 72px !important;
    max-width: 210px;
    object-fit: contain;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .primary-nav {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding: 8px 0 4px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav > ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100%;
  }

  .primary-nav > ul > li {
    width: 100%;
    border-top: 1px solid var(--borde);
  }

  .primary-nav > ul > li > a {
    display: block;
    width: 100%;
    padding: 12px 4px;
    font-size: 0.98rem;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav ul ul,
  .primary-nav li:hover > ul {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    min-width: 0 !important;
    padding: 0 0 8px 16px !important;
    margin: 0 !important;
    gap: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .primary-nav ul ul li {
    width: 100%;
  }

  .primary-nav ul ul a {
    display: block;
    width: 100%;
    padding: 8px 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--texto-suave);
  }
}


/* ==========================================================================
   RESERVA DE ALOJAMIENTO GENAEIO - VIAJES EL CORTE INGLÉS
   ========================================================================== */
.special-booking-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.special-booking-step {
  background: #f8fafc;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.special-booking-step strong,
.special-booking-step span {
  display: block;
}

.special-booking-step strong {
  color: var(--verde-oscuro);
  margin-bottom: 5px;
}

.special-booking-step span {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}


.special-rates-panel {
  margin: 22px 18px;
  padding: 20px;
  background: #f7faf8;
  border: 1px solid #d8e4dc;
  border-radius: 10px;
}

.special-rates-title {
  margin: 0 0 6px;
  color: var(--verde-oscuro);
  font-size: 1.08rem;
}

.special-rates-intro {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.special-rates-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.special-rate-card {
  background: #ffffff;
  border: 1px solid #cfded4;
  border-top: 3px solid #1b4332;
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.special-rate-card strong,
.special-rate-card span {
  display: block;
}

.special-rate-card strong {
  color: var(--verde-oscuro);
  margin-bottom: 9px;
}

.special-rate-card span {
  color: #475569;
  font-size: 0.9rem;
  margin-top: 4px;
}

.special-booking-note {
  background: #faf3e0;
  border-left: 4px solid #a37e2c;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  color: #334155;
  line-height: 1.6;
  margin: 18px 0;
}

.special-booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.special-booking-actions .btn {
  white-space: normal;
  text-align: center;
}

@media (max-width: 768px) {
  .special-booking-box {
    padding: 20px !important;
  }
  .special-rates-panel {
    margin: 18px 0;
    padding: 16px;
  }
  .special-booking-steps,
  .special-rates-wrap {
    grid-template-columns: 1fr;
  }
  .special-booking-actions {
    flex-direction: column;
  }
  .special-booking-actions .btn {
    width: 100%;
  }
}


/* ==========================================================================
   18. AJUSTES VISUALES - v1.0.6
   ========================================================================== */
@media (min-width: 901px) {
  .header-main {
    min-height: 108px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.footer-logos-grid.footer-logos-grid--plain {
  gap: 24px;
}

.footer-logos-grid.footer-logos-grid--plain .logo-item {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 4px 8px !important;
  min-width: auto !important;
  height: auto !important;
}

.footer-logos-grid.footer-logos-grid--plain .logo-item:hover {
  transform: none;
  box-shadow: none !important;
}

.footer-logos-grid.footer-logos-grid--plain .logo-item img {
  max-height: 78px;
  max-width: 210px;
}

.footer-logos-grid.footer-logos-grid--plain.footer-logos-grid--single .logo-item img {
  max-height: 86px;
  max-width: 250px;
}

@media (max-width: 768px) {
  .footer-logos-grid.footer-logos-grid--plain {
    gap: 16px;
  }
  .footer-logos-grid.footer-logos-grid--plain .logo-item img {
    max-height: 60px;
    max-width: 180px;
  }
  .footer-logos-grid.footer-logos-grid--plain.footer-logos-grid--single .logo-item img {
    max-height: 66px;
    max-width: 200px;
  }
}


/* ==========================================================================
   19. AJUSTES DE CABECERA, FOOTER E INSCRIPCIÓN - v1.0.7
   ========================================================================== */
.site-header .header-main {
  min-height: 128px !important;
}

.site-header .brand img,
.site-header .custom-logo {
  height: 108px !important;
  max-height: 108px !important;
  width: auto !important;
  max-width: 360px !important;
  object-fit: contain;
}

.site-footer .footer-logos-title {
  font-size: 18px !important;
  font-weight: 800 !important;
}

.symposium-registration-box {
  background: var(--piedra);
  border: 1px solid var(--borde);
  border-left: 5px solid var(--verde);
  border-radius: 10px;
  padding: 26px;
  text-align: center;
}

.symposium-registration-box .form-placeholder-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.symposium-registration-box h3 {
  margin-bottom: 8px;
}

.symposium-registration-box p {
  color: var(--texto-suave);
  margin: 0 auto 20px;
  max-width: 720px;
}

@media (max-width: 768px) {
  .site-header .header-main {
    min-height: 112px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .site-header .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 64px);
  }
  .site-header .brand img,
  .site-header .custom-logo {
    height: 102px !important;
    max-height: 102px !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .site-footer .footer-logos-title {
    font-size: 17px !important;
  }
  .symposium-registration-box {
    padding: 20px 16px;
  }
  .symposium-registration-box .btn {
    width: 100%;
    text-align: center;
  }
}


/* ==========================================================================
   19. AJUSTES FINALES - v1.0.8
   ========================================================================== */
@media (min-width: 901px) {
  .site-footer {
    border-top-width: 9px !important;
  }
}


/* ==========================================================================
   20. CABECERA COMPACTA - v1.0.10
   ========================================================================== */
@media (min-width: 901px) {
  .header-main {
    min-height: 150px !important;
    height: 150px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
  }

  .header-main .brand {
    height: 150px;
    display: flex !important;
    align-items: center !important;
  }

  .header-main .brand img {
    height: 146px !important;
    max-height: 146px !important;
    width: auto !important;
    max-width: 360px !important;
    object-fit: contain !important;
    display: block;
  }

  .header-main .primary-nav {
    align-self: center !important;
    display: flex;
    align-items: center;
  }

  .header-main .primary-nav > ul {
    align-items: center !important;
  }
}


/* ==========================================================================
   20. COLABORADORES - v1.0.11
   ========================================================================== */
.footer-logos-grid--collab {
  gap: 34px !important;
}

.footer-logos-grid--collab .logo-item img {
  max-height: 88px !important;
  max-width: 230px !important;
}

.footer-logos-grid--collab .logo-facsoc img {
  max-height: 86px !important;
  max-width: 220px !important;
}

@media (max-width: 768px) {
  .footer-logos-grid--collab {
    gap: 18px !important;
  }
  .footer-logos-grid--collab .logo-item img,
  .footer-logos-grid--collab .logo-facsoc img {
    max-height: 64px !important;
    max-width: 180px !important;
  }
}


/* ==========================================================================
   20. CABECERA COMPACTA - v1.0.12
   ========================================================================== */
@media (min-width: 901px) {
  .header-main {
    height: 150px !important;
    min-height: 150px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
  }
  .header-main .brand {
    height: 150px;
    display: flex;
    align-items: center;
    margin: 0 !important;
  }
  .header-main .header-event-logo {
    height: 148px !important;
    max-height: 148px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
  }
  .header-main .primary-nav {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .header-main .primary-nav > ul {
    align-items: center;
  }
}


/* ==========================================================================
   21. AJUSTE DE LOGOS - v1.0.14
   ========================================================================== */
@media (min-width: 901px) {
  .header-main {
    height: 100px !important;
    min-height: 100px !important;
  }
  .header-main .brand {
    height: 100px !important;
  }
  .header-main .header-event-logo {
    height: 94px !important;
    max-height: 94px !important;
  }
  .hero-logo-box img {
    max-height: 215px !important;
  }
}


/* ==========================================================================
   22. CABECERA EN UNA SOLA LÍNEA - v1.0.15
   ========================================================================== */
@media (min-width: 901px) {
  .site-header .header-main {
    display: grid !important;
    grid-template-columns: max-content 1fr !important;
    align-items: center !important;
    gap: 34px !important;
    height: 88px !important;
    min-height: 88px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .site-header .header-main .brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 88px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .site-header .header-main .header-event-logo {
    display: block !important;
    height: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    max-width: 300px !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  .site-header .header-main .primary-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    align-self: stretch !important;
    height: 88px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .header-main .primary-nav > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
  }
}


/* ========================================================================== 
   23. CORRECCIÓN DESPLEGABLES Y MENÚ MÓVIL - v1.0.16
   ========================================================================== */

/* La cabecera debe permitir que los submenús salgan fuera de su altura. */
.site-header {
  position: relative;
  z-index: 10000;
  overflow: visible !important;
}

.site-header .header-main {
  position: relative;
  overflow: visible !important;
}

.site-header .primary-nav,
.site-header .primary-nav > ul,
.site-header .primary-nav > ul > li {
  overflow: visible !important;
}

/* Desplegables de escritorio: fondo y texto siempre visibles. */
@media (min-width: 769px) {
  .site-header .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% - 2px) !important;
    left: 0 !important;
    z-index: 20000 !important;
    min-width: 245px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d9e1dc !important;
    border-top: 4px solid #123524 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 12px 28px rgba(18, 53, 36, 0.16) !important;
  }

  .site-header .dropdown:hover > .dropdown-menu,
  .site-header .dropdown:focus-within > .dropdown-menu {
    display: block !important;
  }

  .site-header .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .site-header .dropdown-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 11px 16px !important;
    color: #123524 !important;
    background: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-decoration: none !important;
  }

  .site-header .dropdown-menu li a::after {
    display: none !important;
  }

  .site-header .dropdown-menu li a:hover,
  .site-header .dropdown-menu li a:focus {
    color: #0b5d35 !important;
    background: #f1f6f3 !important;
  }
}

/* Móvil: el menú forma parte del flujo de la página y tiene fondo opaco. */
@media (max-width: 768px) {
  .site-header .header-main {
    height: auto !important;
    min-height: 82px !important;
    overflow: visible !important;
    background: #ffffff !important;
    padding: 6px 14px !important;
    row-gap: 0 !important;
  }

  .site-header .brand {
    height: 72px !important;
    overflow: hidden !important;
  }

  .site-header .header-event-logo {
    height: 68px !important;
    max-height: 68px !important;
    max-width: 220px !important;
  }

  .site-header .menu-toggle {
    position: relative;
    z-index: 21000;
    background: #ffffff !important;
  }

  .site-header .primary-nav {
    display: none !important;
    position: relative !important;
    flex: 0 0 100% !important;
    width: calc(100% + 28px) !important;
    max-width: none !important;
    margin: 6px -14px -6px !important;
    padding: 0 !important;
    z-index: 20000 !important;
    background: #ffffff !important;
    border-top: 1px solid #d9e1dc !important;
    box-shadow: 0 10px 18px rgba(18, 53, 36, 0.10) !important;
  }

  .site-header .primary-nav.is-open {
    display: block !important;
  }

  .site-header .primary-nav > ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    background: #ffffff !important;
  }

  .site-header .primary-nav > ul > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #edf1ee !important;
    background: #ffffff !important;
  }

  .site-header .primary-nav > ul > li:first-child {
    border-top: 0 !important;
  }

  .site-header .primary-nav > ul > li > a {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    color: #123524 !important;
    background: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
  }

  .site-header .primary-nav a::after {
    display: none !important;
  }

  /* En móvil mostramos los subapartados claramente indentados. */
  .site-header .primary-nav .dropdown-menu,
  .site-header .primary-nav .dropdown:hover > .dropdown-menu,
  .site-header .primary-nav .dropdown:focus-within > .dropdown-menu {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 3px 0 8px !important;
    background: #f5f8f6 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .site-header .primary-nav .dropdown-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f8f6 !important;
  }

  .site-header .primary-nav .dropdown-menu a {
    display: block !important;
    width: 100% !important;
    padding: 9px 20px 9px 36px !important;
    color: #355f49 !important;
    background: #f5f8f6 !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
  }

  .site-header .primary-nav .dropdown-menu a:hover,
  .site-header .primary-nav .dropdown-menu a:focus {
    color: #0b5d35 !important;
    background: #eaf2ed !important;
  }
}


/* ========================================================================== 
   24. AJUSTES MÓVILES Y MESA REDONDA - v1.0.18
   ========================================================================== */
.mesa-redonda-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 3rem !important;
  line-height: 1 !important;
  background: #e8f0ec !important;
  color: var(--verde-oscuro) !important;
}

@media (max-width: 768px) {
  /* Logo móvil: mantener la imagen completa, sin recortes. */
  .site-header .header-main {
    min-height: 104px !important;
    height: auto !important;
    padding: 6px 12px !important;
    align-items: center !important;
  }

  .site-header .brand {
    height: auto !important;
    min-height: 92px !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
  }

  .site-header .header-event-logo {
    width: min(190px, calc(100vw - 125px)) !important;
    height: auto !important;
    max-height: none !important;
    max-width: 190px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
  }

  .site-header .menu-toggle {
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  /* Botones de navegación del Programa: uno debajo de otro y a ancho completo. */
  .day-nav-buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 28px !important;
  }

  .day-nav-buttons .btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================================
   20. FOOTER MÁS COMPACTO - v1.0.20
   ========================================================================== */
.site-footer .footer-logos-grid.footer-logos-grid--plain {
  gap: 18px;
}

.site-footer .footer-logos-grid.footer-logos-grid--plain .logo-item img {
  max-height: 62px;
  max-width: 175px;
}

.site-footer .footer-logos-grid.footer-logos-grid--plain.footer-logos-grid--collab .logo-item img {
  max-height: 56px;
  max-width: 170px;
}

.site-footer .footer-logos-grid.footer-logos-grid--plain .logo-facsoc img {
  max-height: 50px;
  max-width: 160px;
}

@media (max-width: 768px) {
  .site-footer .footer-logos-grid.footer-logos-grid--plain {
    gap: 14px;
  }
  .site-footer .footer-logos-grid.footer-logos-grid--plain .logo-item img {
    max-height: 48px;
    max-width: 150px;
  }
  .site-footer .footer-logos-grid.footer-logos-grid--plain.footer-logos-grid--collab .logo-item img,
  .site-footer .footer-logos-grid.footer-logos-grid--plain .logo-facsoc img {
    max-height: 42px;
    max-width: 140px;
  }
}


/* ==========================================================================
   21. RETOQUES HERO PORTADA - v1.0.21
   ========================================================================== */
.hero {
  padding: 84px 0 72px;
}

.hero-header-grid {
  align-items: center;
  gap: 42px;
}

.hero-logo-box {
  flex: 0 0 auto;
}

.hero-logo-box img {
  max-height: 310px !important;
  width: auto !important;
  max-width: min(42vw, 540px) !important;
}

.hero-title-box {
  flex: 1 1 auto;
}

.hero .eyebrow-hero,
.hero-title-box h1,
.hero .meta {
  -webkit-text-stroke: 0.45px rgba(0,0,0,0.75);
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.28),
     1px -1px 0 rgba(0,0,0,0.28),
    -1px  1px 0 rgba(0,0,0,0.28),
     1px  1px 0 rgba(0,0,0,0.28),
     0 1px 2px rgba(0,0,0,0.12);
}

.hero-title-box h1 {
  font-size: clamp(2.55rem, 4.45vw, 4.65rem);
  line-height: 1.08;
}

.hero .meta {
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .hero-logo-box img {
    max-height: 260px !important;
    max-width: min(44vw, 430px) !important;
  }
  .hero-title-box h1 {
    font-size: clamp(2.15rem, 4.8vw, 3.5rem);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 58px 0 52px;
  }
  .hero-header-grid {
    gap: 14px;
  }
  .hero-logo-box img {
    max-height: 180px !important;
    max-width: 92vw !important;
  }
  .hero-title-box h1 {
    font-size: clamp(2rem, 8.2vw, 3.2rem);
    line-height: 1.1;
  }
}


/* ==========================================================================
   22. CORRECCIÓN HERO PORTADA - v1.0.22
   ========================================================================== */
.hero-logo-box img {
  max-height: 245px !important;
  width: auto !important;
  max-width: min(41vw, 500px) !important;
}

.hero-title-box h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem) !important;
  line-height: 1.2 !important;
}

.hero .eyebrow-hero,
.hero-title-box h1,
.hero .meta {
  -webkit-text-stroke: 0.4px rgba(0,0,0,0.75);
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.22),
     1px -1px 0 rgba(0,0,0,0.22),
    -1px  1px 0 rgba(0,0,0,0.22),
     1px  1px 0 rgba(0,0,0,0.22),
     0 1px 2px rgba(0,0,0,0.10);
}

@media (max-width: 1100px) {
  .hero-logo-box img {
    max-height: 220px !important;
    max-width: min(44vw, 390px) !important;
  }
  .hero-title-box h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.35rem) !important;
  }
}

@media (max-width: 900px) {
  .hero-logo-box img {
    max-height: 150px !important;
    max-width: 88vw !important;
  }
  .hero-title-box h1 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.1 !important;
  }
}


/* ==========================================================================
   23. AJUSTE FINAL TAMAÑO LOGO HERO - v1.0.23
   ========================================================================== */
@media (min-width: 1101px) {
  .hero-logo-box img {
    max-height: 215px !important;
    max-width: min(38vw, 455px) !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero-logo-box img {
    max-height: 195px !important;
    max-width: min(42vw, 360px) !important;
  }
}


/* ==========================================================================
   24. BIENVENIDA + BLOQUE DESCUBRE JAÉN - v1.0.24
   ========================================================================== */
.home-welcome-copy p {
  text-align: justify;
  text-justify: inter-word;
}

.home-jaen-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-jaen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-jaen-card {
  min-height: 150px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-jaen-card .icono {
  margin-bottom: 10px;
}

.home-jaen-card .tag {
  margin: 0;
}

.home-jaen-panel .btn {
  align-self: flex-start;
}

@media (max-width: 900px) {
  .home-jaen-panel .btn {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .home-jaen-grid {
    grid-template-columns: 1fr;
  }
  .home-jaen-card {
    min-height: 120px;
  }
}


/* ==========================================================================
   25. AJUSTE FINO LOGO HERO - v1.0.25
   ========================================================================== */
@media (min-width: 1101px) {
  .hero-logo-box img {
    max-height: 198px !important;
    max-width: min(36vw, 430px) !important;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero-logo-box img {
    max-height: 182px !important;
    max-width: min(40vw, 340px) !important;
  }
}


/* ==========================================================================
   26. ALINEACIÓN BIENVENIDA / DESCUBRE JAÉN - v1.0.26
   ========================================================================== */
@media (min-width: 901px) {
  .home-welcome-section {
    padding-bottom: 118px;
  }

  .home-welcome-layout {
    align-items: stretch !important;
  }

  .home-welcome-copy {
    height: 100%;
  }

  .home-jaen-panel {
    position: relative;
    height: 100%;
    gap: 0;
  }

  .home-jaen-grid {
    height: 100%;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .home-jaen-card {
    min-height: 0;
    height: 100%;
    padding: 18px 16px;
  }

  .home-jaen-panel .btn {
    position: absolute;
    left: 0;
    top: calc(100% + 24px);
    margin: 0;
  }
}

@media (max-width: 900px) {
  .home-welcome-section {
    padding-bottom: var(--espacio-seccion);
  }

  .home-jaen-panel {
    gap: 18px;
  }

  .home-jaen-panel .btn {
    position: static;
    margin-top: 6px;
  }
}


/* ==========================================================================
   27. PORTADA SIN NOTICIAS + LOGOS FOOTER NORMALIZADOS - v1.0.27
   ========================================================================== */
.site-footer .footer-logos-grid.footer-logos-grid--plain {
  align-items: center !important;
}

.site-footer .logo-organiza {
  height: 66px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 6px !important;
}

.site-footer .logo-organiza img {
  height: 58px !important;
  max-height: 58px !important;
  width: auto !important;
  max-width: 190px !important;
  object-fit: contain !important;
}

/* El logotipo del Departamento era el que más margen interno tenía. */
.site-footer .logo-dpto img {
  height: 62px !important;
  max-height: 62px !important;
  max-width: 205px !important;
}

.site-footer .footer-logos-grid--collab {
  align-items: center !important;
}

.site-footer .logo-uja img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  max-width: 165px !important;
}

/* La Facultad queda intencionadamente un poco más baja que la UJA. */
.site-footer .logo-facsoc {
  transform: translateY(7px);
}

.site-footer .logo-facsoc img {
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  max-width: 170px !important;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .site-footer .logo-organiza {
    height: 60px !important;
  }
  .site-footer .logo-organiza img {
    height: 52px !important;
    max-height: 52px !important;
    max-width: 170px !important;
  }
  .site-footer .logo-dpto img {
    height: 56px !important;
    max-height: 56px !important;
  }
  .site-footer .logo-uja img {
    height: 50px !important;
    max-height: 50px !important;
  }
  .site-footer .logo-facsoc img {
    height: 45px !important;
    max-height: 45px !important;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-logos-grid.footer-logos-grid--plain {
    gap: 12px !important;
  }
  .site-footer .logo-organiza {
    height: 54px !important;
    padding: 0 4px !important;
  }
  .site-footer .logo-organiza img {
    height: 46px !important;
    max-height: 46px !important;
    max-width: 145px !important;
  }
  .site-footer .logo-dpto img {
    height: 49px !important;
    max-height: 49px !important;
  }
  .site-footer .logo-uja img {
    height: 44px !important;
    max-height: 44px !important;
    max-width: 140px !important;
  }
  .site-footer .logo-facsoc {
    transform: translateY(5px);
  }
  .site-footer .logo-facsoc img {
    height: 39px !important;
    max-height: 39px !important;
    max-width: 145px !important;
  }
}


/* ==========================================================================
   28. AJUSTE LOGO DEPARTAMENTO FOOTER - v1.0.28
   ========================================================================== */
.site-footer .footer-logos-grid.footer-logos-grid--plain .logo-dpto img {
  max-height: 72px;
  max-width: 205px;
}

@media (max-width: 768px) {
  .site-footer .footer-logos-grid.footer-logos-grid--plain .logo-dpto img {
    max-height: 56px;
    max-width: 170px;
  }
}


/* ==========================================================================
   30. INAUGURACIÓN Y MESA REDONDA - v1.0.30
   ========================================================================== */
.meet-link.is-pending {
  color: #5f6368;
  background: #eef0f2;
  cursor: default;
  pointer-events: none;
}

.roundtable-participants {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}

.roundtable-participants li {
  margin-bottom: 4px;
}

.roundtable-participants .pending {
  color: var(--texto-suave);
  font-style: italic;
}

@media (max-width: 768px) {
  .schedule-meta {
    gap: 8px;
  }
  .schedule-meta .map-link,
  .schedule-meta .meet-link,
  .schedule-meta .drive-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }
  .roundtable-participants {
    padding-left: 18px;
  }
}


/* ==========================================================================
   32. RETRANSMISIÓN Y TEXTOS INTRODUCTORIOS - v1.0.32
   ========================================================================== */
.meet-link.meet-link-placeholder {
  color: #1a73e8 !important;
  background: #e8f0fe !important;
  opacity: 1 !important;
  cursor: default;
  pointer-events: none;
  text-decoration: none !important;
}

.page-hero p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

@media (max-width: 768px) {
  .page-hero p {
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-spacing: normal;
  }
}


/* ==========================================================================
   33. INSCRIPCIÓN: CUOTAS VIRTUALES Y TEXTO JUSTIFICADO - v1.0.33
   ========================================================================== */
.registration-details li,
.registration-form-section .form-header p,
.registration-form-section .symposium-registration-box p {
  text-align: justify;
  text-justify: inter-word;
}

@media (max-width: 900px) {
  .registration-details li,
  .registration-form-section .form-header p,
  .registration-form-section .symposium-registration-box p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
}


/* ==========================================================================
   34. FECHAS Y ENTREGA DE MATERIALES - v1.0.34
   ========================================================================== */
.final-materials-box {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--borde);
  border-left: 5px solid var(--verde);
  border-radius: 10px;
  background: #fff;
}
.final-materials-box p,
.final-materials-box li,
.registration-details li,
.registration-form-section p,
.dates-grid .date-desc {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.final-materials-box .btn-disabled {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #e9eef1;
  color: #667085;
  font-weight: 700;
  cursor: default;
}
@media (max-width: 768px) {
  .final-materials-box {
    padding: 18px 16px;
  }
  .final-materials-box .btn-disabled {
    display: block;
    width: 100%;
    text-align: center;
  }
}


/* ========================================================================== 
   35. PUBLICACIÓN DE LIBROS - v1.0.35
   ========================================================================== */
.participacion-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publication-intro {
  max-width: 900px;
  margin: 0 auto 34px;
  color: var(--texto-oscuro);
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.publication-card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 30px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.publication-card .publication-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.publication-card h2 {
  color: var(--verde-oscuro);
  margin-bottom: 8px;
}

.publication-card .publication-isbn {
  display: inline-block;
  align-self: flex-start;
  background: #eef5f1;
  color: var(--verde-oscuro);
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

.publication-card p,
.publication-card li {
  text-align: justify;
  hyphens: auto;
  line-height: 1.7;
}

.publication-card ul {
  padding-left: 20px;
  margin: 0;
}

.publication-deadline {
  margin-top: auto;
  padding-top: 22px;
}

.publication-deadline-box {
  background: var(--piedra);
  border-left: 4px solid #a37e2c;
  padding: 14px 16px;
  border-radius: 8px;
}

@media (max-width: 992px) {
  .participacion-grid,
  .publication-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .participacion-grid,
  .publication-grid {
    grid-template-columns: 1fr;
  }
  .publication-card {
    padding: 24px 18px;
  }
}


/* ==========================================================================
   36. JUSTIFICACIÓN GLOBAL DE TEXTOS EXPLICATIVOS - v1.0.36
   ========================================================================== */
/*
 * Se aplica solo a contenido narrativo/descriptivo. Se excluyen deliberadamente
 * títulos, botones, precios, etiquetas, datos de contacto, filiaciones y otros
 * elementos breves de interfaz para mantener una lectura natural.
 */
.page-hero p,
.section > .container > p,
.section .info-card-box > p,
.section .form-header p,
.section .part-card > p,
.section .dj-card-body > p,
.section .special-rates-intro,
.section .special-booking-box > p,
.section .special-booking-note,
.section .final-materials-box p,
.section .publication-intro,
.section .publication-card p,
.section .registration-form-section p,
.section .registration-details li,
.section .gastro-desc,
.section .monument-desc,
.section .monument-info-box p,
.section .recom-comment p,
.section .recom-highlight-box p,
.section .hotel-card-custom > p,
.section .card:not(.icon-card):not(.persona-card) > p,
.section .home-welcome-copy p,
.section .date-desc {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Descripciones de servicios/sede y explicaciones de transporte. */
.page-template-page-sede .section .card p,
.page-template-page-como-llegar .section .card p,
.page-template-page-como-llegar .section .info-card-box p,
.page-template-page-alojamientos .section .info-card-box p,
.page-template-page-descubre-jaen .section .dj-card-body p,
.page-template-page-recomendaciones-jaen .section .recom-comment p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* En pantallas estrechas mantenemos la justificación, pero evitamos espacios forzados. */
@media (max-width: 900px) {
  .page-hero p,
  .section > .container > p,
  .section .info-card-box > p,
  .section .form-header p,
  .section .part-card > p,
  .section .dj-card-body > p,
  .section .special-rates-intro,
  .section .special-booking-box > p,
  .section .special-booking-note,
  .section .final-materials-box p,
  .section .publication-intro,
  .section .publication-card p,
  .section .registration-form-section p,
  .section .registration-details li,
  .section .gastro-desc,
  .section .monument-desc,
  .section .monument-info-box p,
  .section .recom-comment p,
  .section .recom-highlight-box p,
  .section .hotel-card-custom > p,
  .section .card:not(.icon-card):not(.persona-card) > p,
  .section .home-welcome-copy p,
  .section .date-desc {
    word-spacing: normal;
    line-height: 1.65;
  }
}

/* Los textos muy breves de tarjetas visuales se mantienen centrados. */
.icon-card .tag,
.home-jaen-card .tag,
.persona-card p,
.persona-card .universidad,
.persona-card .cargo,
.pricing-category,
.badge,
.badge-price,
.hotel-location,
.gastro-address,
.monument-address,
.footer-bottom p,
.contact-simple p,
.speaker-info,
.speakers-list {
  text-align: inherit;
  text-align-last: auto;
  hyphens: manual;
}


/* ========================================================================== 
   37. REVISIÓN RESPONSIVE, NAVEGACIÓN Y ESTADOS PROVISIONALES - v1.0.37
   ========================================================================== */
/* Evita desbordamientos accidentales en cualquier ancho de pantalla. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Elementos de interfaz que todavía no tienen URL oficial. */
.resource-link-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #667085 !important;
  background: #eef1f3 !important;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: default !important;
  pointer-events: none;
  text-decoration: none !important;
}

.top-language {
  color: #ffffff;
  opacity: 0.95;
  white-space: nowrap;
}

/* Mejor foco de teclado para botones/enlaces interactivos. */
.btn:focus-visible,
.map-link:focus-visible,
.primary-nav a:focus-visible,
.logo-item:focus-visible,
.hotel-location-link:focus-visible,
.btn-hotel-web:focus-visible {
  outline: 3px solid #c9a227;
  outline-offset: 3px;
}

/* Modal del mapa robusto en móvil/tablet. */
.map-modal {
  overflow-y: auto;
}
.map-modal-content {
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.map-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

/* Tablet: cabecera más compacta y botones con saltos de línea naturales. */
@media (min-width: 769px) and (max-width: 1000px) {
  .site-header .header-main {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .primary-nav > ul > li > a {
    white-space: normal;
    line-height: 1.2;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }
  .schedule-content {
    padding: 18px 16px;
    min-width: 0;
  }
  .schedule-meta .resource-link-placeholder {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }
  .map-modal {
    padding: 10px;
  }
  .map-modal-content {
    padding: 16px 10px 12px;
    max-height: calc(100vh - 20px);
  }
  .map-modal-content h4 {
    padding: 0 44px;
    font-size: 1rem;
  }
  .map-modal-content img {
    max-height: 78vh;
    width: auto;
  }
}


/* ==========================================================================
   38. REJILLAS INFORMACIÓN PRÁCTICA Y DESCUBRE JAÉN - v1.0.38
   ========================================================================== */
/* Información práctica: tres accesos alineados en una sola fila en escritorio. */
.page-template-page-informacion-practica .practical-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.page-template-page-informacion-practica .practical-info-grid .part-card {
  height: 100%;
}

/* Descubre Jaén: composición estable 2 x 2 en escritorio y tablet. */
.page-template-page-descubre-jaen .dj-main-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.page-template-page-descubre-jaen .dj-card {
  height: 100%;
}

@media (max-width: 760px) {
  .page-template-page-informacion-practica .practical-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .page-template-page-descubre-jaen .dj-main-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}


/* ==========================================================================
   43. ENLACES TARJETAS DESCUBRE JAÉN PORTADA - v1.0.43
   ========================================================================== */
.home-jaen-card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-jaen-card-link:hover,
.home-jaen-card-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 64, 47, .10);
  border-color: rgba(163, 126, 44, .45);
  color: inherit;
}

.home-jaen-card-link:focus-visible {
  outline: 3px solid rgba(163, 126, 44, .32);
  outline-offset: 3px;
}

.home-jaen-explore {
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #a37e2c;
  letter-spacing: .01em;
}

@media (max-width: 520px) {
  .home-jaen-explore {
    font-size: .8rem;
  }
}


/* ==========================================================================
   45. SELECTOR DE IDIOMA GTRANSLATE EN CABECERA - v1.0.45
   ========================================================================== */
.site-header .top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.site-header .top-separator {
  opacity: .4;
}

.site-header .top-language {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: #fff;
  opacity: 1;
  white-space: nowrap;
}

/* GTranslate puede renderizar un select simple o un switcher propio según la configuración. */
.site-header .top-language .gtranslate_wrapper,
.site-header .top-language .gt_switcher_wrapper,
.site-header .top-language .gt_switcher {
  display: inline-flex !important;
  align-items: center;
  position: static !important;
  inset: auto !important;
  z-index: 20;
}

.site-header .top-language select,
.site-header .top-language .gt_selector {
  appearance: auto;
  -webkit-appearance: menulist;
  min-width: 112px;
  height: 28px;
  padding: 2px 28px 2px 8px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font: inherit;
  font-size: .8rem;
  line-height: 1.2;
  cursor: pointer;
}

.site-header .top-language select option,
.site-header .top-language .gt_selector option {
  color: #173d2e;
  background: #fff;
}

.site-header .top-language a,
.site-header .top-language .gt_switcher a,
.site-header .top-language .gt_selected a {
  color: #fff !important;
  font-size: .8rem !important;
  text-decoration: none !important;
}

.site-header .top-language .gt_switcher,
.site-header .top-language .gt_selected {
  font-family: inherit !important;
}

.site-header .top-language .gt_switcher .selected a,
.site-header .top-language .gt_selected a {
  background-color: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.35) !important;
  border-radius: 5px !important;
}

.site-header .top-language .language-fallback {
  font-size: .8rem;
}

@media (max-width: 650px) {
  /* La barra superior debe seguir visible para mantener correo e idiomas accesibles. */
  .site-header .top-bar {
    display: block !important;
  }

  .site-header .top-bar-container {
    min-height: 34px;
    justify-content: center;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .site-header .top-contact {
    display: none;
  }

  .site-header .top-links {
    width: 100%;
    justify-content: center;
    gap: 7px;
    flex-wrap: nowrap;
    font-size: .72rem;
  }

  .site-header .top-email {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 58vw;
  }

  .site-header .top-language select,
  .site-header .top-language .gt_selector {
    min-width: 94px;
    max-width: 34vw;
    height: 27px;
    font-size: .72rem;
    padding-left: 5px;
  }
}

@media (max-width: 390px) {
  .site-header .top-email {
    max-width: 54vw;
  }

  .site-header .top-language select,
  .site-header .top-language .gt_selector {
    min-width: 88px;
    max-width: 36vw;
  }
}


/* ==========================================================================
   46. SELECTOR DE IDIOMAS COMPACTO - v1.0.46
   ========================================================================== */
.site-header .top-language {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  position: relative;
}

.site-header .top-language .language-globe {
  font-size: .82rem;
  line-height: 1;
  opacity: .9;
  flex: 0 0 auto;
}

.site-header .top-language .genaeio-language-select {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  height: 30px !important;
  padding: 2px 5px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.38) !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: .76rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.site-header .top-language .genaeio-language-select:hover,
.site-header .top-language .genaeio-language-select:focus {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.7) !important;
  outline: none;
}

.site-header .top-language .genaeio-language-select option {
  color: #173d2e !important;
  background: #fff !important;
  font-weight: 500 !important;
}

/* Conserva GTranslate como motor, pero nunca muestra su selector visual. */
.site-header .top-language .gtranslate-engine {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.site-header .top-language .gtranslate-engine * {
  display: none !important;
}

@media (max-width: 650px) {
  .site-header .top-language {
    gap: 3px;
    min-height: 28px;
  }

  .site-header .top-language .language-globe {
    font-size: .72rem;
  }

  .site-header .top-language .genaeio-language-select {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 27px !important;
    font-size: .68rem !important;
    padding: 1px 3px !important;
  }
}

@media (max-width: 390px) {
  .site-header .top-email {
    max-width: 50vw;
  }

  .site-header .top-language .genaeio-language-select {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
  }
}


/* ==========================================================================
   47. OCULTAR SELECTOR VISUAL NATIVO DE GTRANSLATE - v1.0.47
   ========================================================================== */
/* El plugin puede inyectar un selector flotante independiente del shortcode.
   Se ocultan todas sus interfaces visuales; el motor sigue activo para nuestro select. */
.gt_float_switcher,
#gt_float_wrapper,
.gt_switcher_wrapper,
body > .gtranslate_wrapper,
body > [id^="gt-wrapper-"],
body > [class*="gt_float"],
body > [class*="gtranslate"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  inset: auto !important;
}

/* Nuestro selector personalizado sí debe permanecer visible. */
.site-header .top-language,
.site-header .top-language .genaeio-language-select {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto;
  height: auto;
  pointer-events: auto !important;
}

.site-header .top-language .genaeio-language-select {
  display: block !important;
  width: 118px !important;
  height: 30px !important;
}

@media (max-width: 650px) {
  .site-header .top-language .genaeio-language-select {
    width: 96px !important;
    height: 27px !important;
  }
}

@media (max-width: 390px) {
  .site-header .top-language .genaeio-language-select {
    width: 88px !important;
  }
}


/* ==========================================================================
   49. PORTADA SIMPLIFICADA - v1.0.49
   ========================================================================== */
.hero .actions {
  margin-top: 4px;
}

/* ==========================================================================
   50. AJUSTE FINO DEL CONTORNO DEL TÍTULO HERO - v1.0.50
   ========================================================================== */
.hero-title-box h1 {
  -webkit-text-stroke: 0.75px rgba(0,0,0,0.82) !important;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.34),
     1px -1px 0 rgba(0,0,0,0.34),
    -1px  1px 0 rgba(0,0,0,0.34),
     1px  1px 0 rgba(0,0,0,0.34),
     0 1px 2px rgba(0,0,0,0.14) !important;
}


/* ==========================================================================
   52. PROGRAMA UNIFICADO - v1.0.52
   ========================================================================== */
.badge-talk,
.badge-session,
.badge-blue,
.badge-green,
.badge-yellow,
.badge-purple {
  background: #eef4ef !important;
  color: var(--verde-oscuro) !important;
  border: 1px solid #d8e4da !important;
}

.schedule-content .badge {
  margin-bottom: 10px;
}

.schedule-meta a,
.schedule-meta .map-link,
.schedule-meta .meet-link,
.schedule-meta .drive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
  color: var(--verde-oscuro) !important;
  background: #f3f7f4 !important;
  border: 1px solid #d8e4da !important;
  transition: all 0.2s ease;
}

.schedule-meta a:hover,
.schedule-meta .map-link:hover,
.schedule-meta .meet-link:hover,
.schedule-meta .drive-link:hover {
  background: #e8f0ea !important;
  color: var(--verde-oscuro) !important;
  text-decoration: none !important;
}

.schedule-meta .meet-link.meet-link-placeholder,
.schedule-meta .resource-link-placeholder,
.schedule-meta .map-link.resource-link-placeholder {
  color: #5f695d !important;
  background: #f5f6f3 !important;
  border-color: #d9ddd4 !important;
  opacity: 1 !important;
  cursor: default !important;
  pointer-events: none !important;
}

.speaker-info,
.speakers-list,
.papers-list,
.roundtable-participants,
.schedule-content p,
.schedule-content li,
.schedule-content small,
.schedule-content em,
.schedule-content strong {
  color: var(--texto) !important;
}

.schedule-content .speaker-info a {
  color: var(--verde-oscuro) !important;
}

.schedule-content .speaker-info a:hover {
  color: var(--verde) !important;
}


/* ==========================================================================
   54. JERARQUÍA TIPOGRÁFICA UNIFORME DEL PROGRAMA - v1.0.54
   ========================================================================== */
.schedule-content .schedule-activity-title {
  font-family: var(--fuente-titulo);
  color: var(--verde-oscuro) !important;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.schedule-content .schedule-detail-title {
  font-family: var(--fuente-titulo);
  color: var(--verde-oscuro) !important;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: -2px 0 12px;
  text-transform: none;
}

.schedule-content .schedule-activity-title + .speaker-info,
.schedule-content .schedule-activity-title + .papers-list,
.schedule-content .schedule-activity-title + .schedule-meta {
  margin-top: 0;
}

/* El programa deja de usar badges de color para los tipos de actividad. */
.schedule-content > .badge {
  display: none !important;
}

@media (max-width: 768px) {
  .schedule-content .schedule-activity-title,
  .schedule-content .schedule-detail-title {
    font-size: 1.08rem;
  }
}


/* ==========================================================================
   55. SALTO CONTROLADO DEL TÍTULO HERO - v1.0.55
   ========================================================================== */
.hero-title-box h1 .hero-title-break {
  display: block;
}

@media (max-width: 900px) {
  .hero-title-box h1 .hero-title-break {
    display: none;
  }
}


/* ==========================================================================
   65. INSCRIPCIÓN AÚN NO ABIERTA - v1.0.65
   ========================================================================== */
.registration-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 22px;
  border-radius: 7px;
  background: #e7f0e9;
  border: 1px solid #b8d0be;
  color: var(--verde-oscuro);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 768px) {
  .registration-coming-soon {
    display: flex;
    width: 100%;
  }
}


/* ==========================================================================
   78. PRESENCIA INSTITUCIONAL EN BIENVENIDA - TRES ENTIDADES
   ========================================================================== */
.home-institutional-logos {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 640px);
  align-items: center;
}

.home-institutional-logo {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-institutional-logo:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.home-institutional-logo:focus-visible {
  outline: 3px solid var(--dorado);
  outline-offset: 3px;
}

.home-institutional-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.home-institutional-logo--seio img {
  max-height: 82px;
  max-width: 210px;
}

.home-institutional-logo--genaeio img {
  max-height: 92px;
  max-width: 165px;
}

.home-institutional-logo--dpto img {
  max-height: 102px;
  max-width: 190px;
}

@media (max-width: 768px) {
  .home-institutional-logos {
    margin: 28px auto 0;
    width: min(100%, 590px);
    gap: 18px;
  }

  .home-institutional-logo {
    min-height: 92px;
    padding: 5px 5px;
  }

  .home-institutional-logo--seio img {
    max-height: 70px;
    max-width: 180px;
  }

  .home-institutional-logo--genaeio img {
    max-height: 80px;
    max-width: 145px;
  }

  .home-institutional-logo--dpto img {
    max-height: 88px;
    max-width: 165px;
  }
}

/* v1.0.83: composición institucional equilibrada en pantallas estrechas. */
@media (max-width: 900px) {
  .hero-title-box {
    width: 100%;
    min-width: 0;
  }

  .hero-title-box h1 {
    font-size: clamp(1.7rem, 6.4vw, 2.35rem) !important;
    line-height: 1.22 !important;
    word-spacing: 0.045em;
    text-wrap: balance;
    letter-spacing: normal;
    -webkit-text-stroke: 0.35px rgba(0,0,0,0.82) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45) !important;
  }

  .hero .eyebrow-hero {
    font-size: clamp(1rem, 3.7vw, 1.25rem);
    line-height: 1.35;
    letter-spacing: 1px;
  }

  .home-institutional-logo {
    min-width: 0;
  }

  .home-institutional-logo img {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .home-institutional-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 360px);
    margin: 22px auto 0;
    gap: 10px 16px;
    justify-items: center;
  }

  .home-institutional-logo {
    width: 100%;
    min-height: 84px;
    padding: 4px;
  }

  .home-institutional-logo--dpto {
    grid-column: 1 / -1;
    width: min(100%, 200px);
    min-height: 0;
  }

  .home-institutional-logo--seio img {
    width: min(100%, 145px);
    max-width: 100%;
    max-height: none;
    height: auto;
  }

  .home-institutional-logo--genaeio img {
    width: min(100%, 130px);
    max-width: 100%;
    max-height: none;
    height: auto;
  }

  .home-institutional-logo--dpto img {
    width: min(100%, 150px);
    max-width: 100%;
    max-height: none;
    height: auto;
  }
}

/* Evitar que las marcas desborden sus columnas en tablet horizontal. */
@media (min-width: 901px) and (max-width: 1100px) {
  .home-institutional-logo { min-width: 0; }
  .home-institutional-logo img { max-width: 100%; }
}
