/* === ESTILO BASE GENERAL === */
.column {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-size: 16px;
  border: 0px solid white !important;
}

/* === ESTRUCTURA DE LAS UNIDADES === */

/* Caja principal */
.unidad-box {
  background: rgb(255, 255, 247); /* amarillo clarito */
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  color: #000000; /* texto neutro */
}

/* Variantes de tamaño */
.unidad-box-grande {
  min-height: 450px !important;
  max-height: none !important;
}

.unidad-box-muygrande {
  min-height: 680px !important;
  max-height: none !important;
}

/* === TITULO AZUL (fondo-gris) === */
.fondo-gris {
  background-color: rgb(51, 63, 72); /* azul UPV */
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: left;
  margin-bottom: 15px;
}

.fondo-gris strong,
.fondo-gris span {
  color: #ffffff !important;
}

/* === CONTENEDOR DE ENLACES + IMAGEN === */
.unidad-row {
  display: grid;
  grid-template-columns: 1fr auto; /* enlaces a la izquierda, imagen a la derecha */
  align-items: start;
  gap: 15px;
  margin-top: 10px;
  margin-bottom: auto;
}

/* === ENLACES INTERNOS === */
.unidad-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.unidad-links a {
  color: #c0392b !important; /* rojo UPV */
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

.unidad-links a:hover {
  text-decoration: underline;
  color: #0770cd !important; /* azul al pasar el ratón */
}

/* === IMAGEN DE LA UNIDAD === */
.unidad-image img {
  max-width: 140px;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* === BORDES Y SOMBREADO === */
.unidad-box {
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* === ENLACE PRINCIPAL DE LA UNIDAD (Ej: “Unidad 1”) === */
.unidad-box > p a {
  color: #c0392b !important; /* rojo original */
  font-weight: 700;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease-in-out;
}

.unidad-box > p a:hover {
  color: #0770cd !important; /* azul al pasar el ratón */
  text-decoration: underline;
}

/* === AJUSTES TIPOGRÁFICOS === */
.unidad-box p {
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  margin: 0 0 10px 0;
}

/* === PANEL PRINCIPAL === */
.panel-primary {
  background-color: rgb(51,63,72);
  border: none;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden; /* evita el mordido y que sobresalga la imagen */
}

/* === PANEL INTERIOR (cuadro amarillo) === */
.borde {
  border: none;
  border-radius: 10px;
  padding: 0;
  overflow: hidden; /* mantiene la foto dentro del marco */
}

/* === CUERPO DEL PANEL === */
.panel-body {
  background: none;
  border-radius: 0 0 10px 10px;
  color: #ffffff;
  padding: 10px;
  overflow: hidden; /* evita que la imagen sobresalga */
}

/* === IMAGEN DEL INSTRUCTOR === */
.panel-insight-speaker {
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  float: left;
  max-width: 130px;
  max-height: 130px;
}

/* === TÍTULO DEL PANEL === */
.panel-insight-title {
  color: #000000 !important;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-weight: bold;
  margin: 0;
  font-size: 1.1em;
}

/* === CABECERAS DE PANEL FUSIONADAS === */

/* 1️⃣ Cabecera azul (por defecto) */
.panel-heading {
  background-color: rgb(51,63,72) !important;
  color: #ffffff !important;
  padding: 10px 15px;
  border-radius: 6px;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

/* 2️⃣ Cabecera clara (para los cuadros de profesor) */
.borde .panel-heading,
.panel-heading[style*="ffffe0"],
.panel-heading[style*="248,248,248"],
.panel-heading[style*="255,255,224"] {
  background-color: #ffffe0 !important; /* amarillo claro */
  color: #000000 !important;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
  padding: 8px 12px;
  margin: 0;
}

/* 3️⃣ Variante gris claro (CONTINÚA CON...) */
.panel-heading2 {
  background-color: rgb(248,248,248) !important;
  color: #000000 !important;
  padding: 10px 15px;
  border-radius: 6px;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  font-size: 20px;
  font-weight: bold;
  margin-top: 5px;
  text-align: center;
}

/* Enlaces dentro del segundo panel */
.panel-heading2 a {
  color: #c0392b !important; /* rojo UPV */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.panel-heading2 a:hover {
  color: #0770cd !important; /* azul al pasar el ratón */
}
