/* ============================================
   COORDINACIONES.CSS - ESTILOS CENTRALIZADOS
   Para todas las coordinaciones de ANFECA
   SOLO ESTILOS ESPECÍFICOS (layout y componentes)
   LAS VARIABLES ESTÁN EN style.css
   ============================================ */

/* ================= PESTAÑAS ================= */
.modern-tabs-section {
  margin-top: var(--spacing-xl);
}

.tabs-navigation {
  display: flex;
  background: #f8f9fa;
  border-radius: 12px;
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.tab-button {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: calc(12px - 4px);
  font-weight: 500;
  color: var(--color-gray-dark);
  font-family: var(--font-body);
}

.tab-button:hover {
  background: rgba(205, 0, 0, 0.05);
  color: var(--color-primary);
}

.tab-button.active {
  background: white;
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  font-weight: 600;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= INFO BOXES ================= */
/* ELIMINADA la línea roja del costado (border-left) */
.info-box {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  box-shadow: var(--shadow-sm);
}

.info-box h3 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
}

.info-box p, .info-box ul, .info-box ol {
  line-height: 1.7;
  color: var(--color-gray-dark);
}

.info-box ul li, .info-box ol li {
  margin-bottom: 0.5rem;
}

/* ================= CARDS DE ÁREAS ================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.area-card {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease;
}

.area-card:hover {
  transform: translateY(-5px);
}

.area-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.area-card h4 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.area-card p {
  color: var(--color-gray-dark);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ================= DOCUMENTOS PDF ================= */
.document-info {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
}

.document-info h3 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.dates-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.dates-box p {
  margin: 0.5rem 0;
}

/* ================= PDF SIMPLE CONTAINER ================= */
.pdf-simple-container {
  margin: var(--spacing-lg) 0;
}

.pdf-badge {
  display: inline-block;
  background: rgba(205, 0, 0, 0.1);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.pdf-simple-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  background: #f8f9fa;
  border-radius: 12px;
  padding: var(--spacing-md);
  transition: all 0.3s ease;
}

.pdf-simple-card:hover {
  background: #f0f2f5;
  transform: translateX(5px);
}

.pdf-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.pdf-info {
  flex: 1;
}

.pdf-info h4 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1rem;
  font-family: var(--font-heading);
}

.pdf-info p {
  margin: 0;
  color: var(--color-gray-dark);
  font-size: 0.85rem;
}

.pdf-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.pdf-view-btn:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.pdf-view-btn i {
  font-size: 0.9rem;
}

/* ================= BOTONES DE ACCIÓN ================= */
.evento-acciones {
  text-align: center;
  margin: var(--spacing-xl) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: var(--color-primary);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(205, 0, 0, 0.08);
  border: 1.5px solid var(--color-primary);
  cursor: pointer;
  font-family: var(--font-body);
}

.action-button:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(205, 0, 0, 0.35);
}

.action-button i {
  font-size: 1.1rem;
  color: var(--color-primary);
}

.action-button:hover i {
  color: white;
}

/* Variante zona/columna: fondo blanco, borde y texto en rojo */
.action-button.action-button--column {
  background: white;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(205, 0, 0, 0.08);
  padding: 0.5rem 1.2rem;
  flex-direction: row;
  align-items: center;
}

.action-button.action-button--column i {
  color: var(--color-primary) !important;
  font-size: 1.1rem !important;
}

.action-button.action-button--column:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(205, 0, 0, 0.2);
  transform: translateY(-3px);
}

.action-button.action-button--column:hover i {
  color: white !important;
}

/* Botón alternativo (poster) */
.btn-poster {
  background: white !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary) !important;
  box-shadow: none !important;
}

.btn-poster i {
  color: var(--color-primary) !important;
}

.btn-poster:hover {
  background: var(--color-primary) !important;
  color: white !important;
}

.btn-poster:hover i {
  color: #FFD700 !important;
}

/* ============================================
   RESPONSABLE ESTÁTICO - CON ESTILOS ANFECA
   (Sin fondos oscuros, usando la paleta existente)
   ============================================ */

.responsable-container {
    margin-bottom: var(--spacing-xl);
}

.responsable-card-modern {
    background: var(--color-light);
    border-radius: 16px;
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-gray-ultralight);
}

.responsable-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.responsable-avatar {
    width: 70px;
    height: 70px;
    background: rgba(205, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--color-primary);
}

.responsable-avatar i {
    font-size: 2rem;
    color: var(--color-primary);
}

.responsable-info {
    flex: 1;
}

.responsable-titulo {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.responsable-nombre-completo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.responsable-institucion,
.responsable-facultad,
.responsable-campus {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.responsable-institucion i,
.responsable-facultad i,
.responsable-campus i {
    width: 18px;
    color: var(--color-primary);
    font-size: 0.8rem;
}

/* Versión simplificada (más compacta, estilo "chip") */
.responsable-card-simple {
    background: var(--color-light);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    border: 1px solid var(--color-gray-ultralight);
    margin-bottom: var(--spacing-lg);
}

.responsable-card-simple .responsable-etiqueta {
    font-weight: 700;
    color: var(--color-secondary);
    background: rgba(205, 0, 0, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    font-size: 0.75rem;
}

.responsable-card-simple .responsable-nombre {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.responsable-card-simple .responsable-institucion-simple {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* ================= EVENTOS HISTÓRICOS ================= */
.evento-card-historico {
  display: flex;
  gap: var(--spacing-lg);
  background: white;
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card-historico:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.evento-card-imagen {
  flex: 0 0 200px;
  height: 130px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.evento-card-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.evento-card-historico:hover .evento-card-imagen img {
  transform: scale(1.05);
}

.evento-card-contenido {
  flex: 1;
}

.evento-card-contenido h4 {
  color: var(--color-secondary);
  margin-bottom: var(--spacing-xs);
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.evento-fecha {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: var(--spacing-xs);
}

.evento-divisor {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
  border: none;
  margin: var(--spacing-sm) 0;
}

.evento-descripcion {
  color: var(--color-gray-dark);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.evento-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition: gap 0.3s ease;
}

.evento-link:hover {
  gap: 0.75rem;
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* ================= CONVOCATORIA CARD ================= */
.convocatoria-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
  border: 1px solid rgba(205, 0, 0, 0.1);
}

.poster-miniatura {
  width: 100%;
  max-width: 300px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  box-shadow: var(--shadow-md);
  border: 3px solid white;
  transition: transform 0.3s ease;
}

.poster-miniatura:hover {
  transform: scale(1.02);
}

.poster-miniatura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.convocatoria-botones {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================= FILTRO HISTÓRICO ================= */
.filtro-historico {
  background: #f8f9fa;
  border-radius: 12px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.filtro-historico label {
  font-size: 0.95rem;
  color: var(--color-secondary);
  font-weight: 500;
  margin-bottom: 0;
}

.filtro-select {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-gray-dark);
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  font-family: var(--font-body);
}

.filtro-select:hover {
  border-color: var(--color-primary);
}

.filtro-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(205, 0, 0, 0.1);
}

/* ================= HERO (para coordinaciones que lo usen) ================= */
.coordinacion-hero-modern {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 4rem 0;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content-modern {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-text-container {
  flex: 1;
  max-width: 600px;
}

.badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-heading);
}

.hero-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero-content-modern {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text-container {
    max-width: 100%;
  }
  
  .evento-card-historico {
    flex-direction: column;
  }
  
  .evento-card-imagen {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .tabs-navigation {
    flex-direction: column;
  }
  
  .tab-button {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }
  
  .areas-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .info-box, .document-info {
    padding: var(--spacing-md);
  }
  
  .evento-card-historico {
    padding: var(--spacing-md);
  }
  
  .convocatoria-card {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
  
  .poster-miniatura {
    max-width: 250px;
    height: 130px;
  }
  
  .filtro-historico {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .filtro-select {
    width: 100%;
  }
  
  .hero-title {
    font-size: 2rem;
  }

  /* Responsive para responsable estático */
  .responsable-card-modern {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md);
  }
  
  .responsable-institucion,
  .responsable-facultad,
  .responsable-campus {
    justify-content: center;
  }
  
  .responsable-nombre-completo {
    font-size: 1.1rem;
  }
  
  .responsable-card-simple {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .tab-button {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
  
  .action-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  
  .poster-miniatura {
    max-width: 200px;
    height: 110px;
  }
  
  .convocatoria-botones {
    flex-direction: column;
    align-items: center;
  }
  
  .convocatoria-botones .action-button {
    width: 100%;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .area-card {
    padding: var(--spacing-md);
  }
  
  .area-icon {
    font-size: 2rem;
  }
  
  .evento-card-contenido h4 {
    font-size: 1rem;
  }
  
  .evento-descripcion {
    font-size: 0.85rem;
  }

  /* Responsive para responsable estático */
  .responsable-avatar {
    width: 55px;
    height: 55px;
  }
  
  .responsable-avatar i {
    font-size: 1.6rem;
  }
  
  .responsable-nombre-completo {
    font-size: 0.95rem;
  }
  
  .responsable-institucion,
  .responsable-facultad,
  .responsable-campus {
    font-size: 0.75rem;
  }
}

/* ================= UTILIDADES ================= */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* ============================================
   ESTILOS NODOS ANFECA
   ============================================ */

.nodos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Encabezado */
.nodos-header {
    text-align: center;
    margin-bottom: 2rem;
}

.nodos-header h2 {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.nodos-header p {
    color: var(--color-gray);
    font-size: 1rem;
}

/* Nodo principal */
.nodo-principal {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px; /* Igual que la imagen */
    margin: 0 auto 30px auto;
}

.nodo-principal-imagen {
    flex: 0 0 240px;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto; 
}

.nodo-principal-imagen img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    max-height: 300px;
}

.nodo-principal-imagen:hover img {
    transform: scale(1.02);
}

.nodo-principal-info {
    flex: 1;
    padding: 15px;
    text-align: center;
}

.badge-destacado {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nodo-principal-info h3 {
    font-size: 1.3rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.fecha {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.85rem;
}

.fecha i {
    margin-right: 0.4rem;
}

/* Grid de nodos secundarios - imagen completa y pequeña */
.talleres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px; /* Ajusta este valor según necesites */
    margin: 0 auto; /* Centra el grid */
}

.taller-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 250px; /* Limita el ancho de cada tarjeta */
    margin: 0 auto; /* Centra cada tarjeta en su columna */
}

.taller-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(205,0,0,0.1);
}

.taller-item a {
    display: block;
}

.taller-item img {
    width: 100%;
    height: auto;
    max-height: 300px; /* Ajusta la altura máxima según necesites */
    object-fit: cover;
    border-radius: 8px;
}

.taller-item:hover img {
    transform: scale(1.02);
}

/* ============================================
   ESTILOS DIPLOMADO - Versión definitiva
   ============================================ */

.diplomado-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.diplomado-contenido {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid #eef2f6;
}

.diplomado-texto {
    flex: 2;
}

.diplomado-texto h2 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.diplomado-texto p {
    color: var(--color-gray-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.diplomado-detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.detalle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-gray-dark);
}

.detalle i {
    color: var(--color-primary);
    width: 1rem;
    font-size: 0.9rem;
}

.diplomado-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-di-plomado {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(205, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 0, 0, 0.3);
    color: white;
}

/* Imagen lateral */
.diplomado-imagen-mini {
    flex: 1;
    max-width: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.diplomado-imagen-mini img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.diplomado-imagen-mini:hover img {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
    .diplomado-contenido {
        flex-direction: column-reverse;
        text-align: center;
        padding: 1.2rem;
    }
    
    .diplomado-texto h2 {
        font-size: 1.2rem;
    }
    
    .diplomado-detalles {
        justify-content: center;
    }
    
    .diplomado-botones {
        justify-content: center;
    }
    
    .diplomado-imagen-mini {
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .diplomado-wrapper {
        padding: 0.5rem;
    }
    
    .diplomado-contenido {
        padding: 1rem;
    }
    
    .diplomado-texto h2 {
        font-size: 1rem;
    }
    
    .detalle {
        font-size: 0.75rem;
    }
    
    .btn-di-plomado {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .diplomado-imagen-mini {
        max-width: 120px;
    }
}

/* ============================================
   ESTILOS DE MODALES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #CD0000;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #8B0000;
}

.modal-body {
    padding: 30px;
}

/* Aviso amarillo - con espacio para la X */
.modal .nota-importante {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 15px 40px 15px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    color: #856404;
    position: relative;
}

.modal .nota-importante p {
    margin: 0;
    font-size: 0.95rem;
}

/* Grid de documentos */
.modal .docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.modal .docs-categoria {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.modal .docs-categoria h5 {
    color: #CD0000;
    font-size: 1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #CD0000;
    padding-bottom: 8px;
}

.modal .docs-categoria h5 i {
    margin-right: 8px;
}

.modal .docs-categoria ul {
    list-style: none;
    padding-left: 0;
}

.modal .docs-categoria ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.modal .docs-categoria ul li::before {
    content: "•";
    color: #CD0000;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Acciones (botones) */
.modal .acciones-modal {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Botones del modal - ROJOS */
.btn-modal {
    display: inline-block;
    padding: 12px 25px;
    background-color: #CD0000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #CD0000;
    cursor: pointer;
}

.btn-modal:hover {
    background-color: #8B0000;
    border-color: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 0, 0, 0.4);
}

.btn-modal i {
    margin-right: 8px;
}

.btn-modal.secundario {
    background-color: transparent;
    color: #CD0000;
}

.btn-modal.secundario:hover {
    background-color: #CD0000;
    color: #ffffff;
}

/* ========== COMPARATIVA (Modal Refrendo) ========== */
.modal .comparativa-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 25px 0;
}

.modal .comparativa-col {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.modal .col-header {
    padding: 12px 20px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    background-color: #CD0000;
}

.modal .col-header.refrendo {
    background-color: #CD0000;
}

.modal .col-header.art14 {
    background-color: #8B0000;
}

.modal .col-body {
    padding: 20px;
}

.modal .col-body h5 {
    color: #CD0000;
    font-size: 1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #CD0000;
    padding-bottom: 8px;
}

.modal .col-body h5 i {
    margin-right: 8px;
}

.modal .col-body ul {
    list-style: none;
    padding-left: 0;
}

.modal .col-body ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
}

.modal .col-body ul li::before {
    content: "•";
    color: #CD0000;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.modal .documento-lista li::before {
    content: "▸";
    color: #CD0000;
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .modal .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal .comparativa-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .btn-modal {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* ============================================
   ESTILOS PARA GALARDONADOS (Maestro Emérito)
   ============================================ */

.galardonados-listado {
    margin-top: var(--spacing-md);
}

.galardonado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.galardonado-item:last-child {
    border-bottom: none;
}

.galardonado-nombre {
    font-size: 1rem;
    color: var(--color-gray-dark);
    font-weight: 500;
}

.galardonado-ano {
    background: rgba(205, 0, 0, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 576px) {
    .galardonado-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .galardonado-nombre {
        font-size: 0.9rem;
    }
}