/* ── COLORES Y FUENTE GENERAL ── */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f9;
  color: #333;
  margin: 0;
  padding: 0;
}

/* ── BARRA DE NAVEGACIÓN ── */
nav {
  background-color: #1a237e;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
}

nav a:hover {
  color: white;
}

/* ── CABECERA (HERO) ── */
.hero {
  background-color: #1a237e;
  color: white;
  text-align: center;
  padding: 80px 24px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero h1 span {
  color: #ffd54f;
}

.hero p {
  font-size: 17px;
  color: #ccc;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero a {
  background-color: #ffd54f;
  color: #1a237e;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
}

.hero a:hover {
  background-color: #ffca28;
}

/* ── ESTADÍSTICAS ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px;
  background-color: #e8eaf6;
  text-align: center;
}

.stats div .numero {
  font-size: 36px;
  font-weight: bold;
  color: #1a237e;
  display: block;
}

.stats div .texto {
  font-size: 13px;
  color: #666;
}

/* ── SECCIONES ── */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

section h2 {
  font-size: 28px;
  color: #1a237e;
  margin-bottom: 8px;
}

section .subtitulo {
  color: #777;
  margin-bottom: 32px;
  font-size: 15px;
}

/* ── TABLA DE DIAGNÓSTICO ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th {
  background-color: #1a237e;
  color: white;
  padding: 14px 16px;
  text-align: left;
}

table td {
  padding: 16px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  line-height: 1.6;
}

table tr:hover {
  background-color: #f0f2ff;
}

table td:first-child {
  font-weight: bold;
  color: #1a237e;
  width: 160px;
}

/* ── TARJETAS DE PROPUESTAS ── */
.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tarjeta {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 28px;
  border-top: 4px solid #1a237e;
}

.tarjeta .numero {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.tarjeta .responsable {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
  font-style: italic;
}

.tarjeta h3 {
  font-size: 17px;
  color: #1a237e;
  margin-bottom: 10px;
}

.tarjeta p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.tarjeta .herramientas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tarjeta .herramientas span {
  background-color: #e8eaf6;
  color: #1a237e;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* Colores distintos para cada tarjeta */
.tarjeta.t1 { border-top-color: #1565c0; }
.tarjeta.t2 { border-top-color: #6a1b9a; }
.tarjeta.t3 { border-top-color: #e65100; }
.tarjeta.t4 { border-top-color: #00695c; }
.tarjeta.t5 { border-top-color: #c62828; }

/* ── TIMELINE (TEMPORALIZACIÓN) ── */
.timeline {
  border-left: 3px solid #1a237e;
  padding-left: 28px;
  margin-left: 8px;
}

.timeline .paso {
  margin-bottom: 32px;
  position: relative;
}

.timeline .paso::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 14px;
  height: 14px;
  background-color: #1a237e;
  border-radius: 50%;
  border: 3px solid #f4f6f9;
}

.timeline .paso .trimestre {
  font-size: 12px;
  color: #1a237e;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline .paso h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.timeline .paso p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ── MÉTRICAS ── */
.metricas {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metrica {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.metrica .numero {
  font-size: 36px;
  font-weight: bold;
  color: #1a237e;
  min-width: 80px;
}

.metrica p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* ── DOS COLUMNAS ── */
.dos-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ── RESPONSABLES ── */
.responsables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.responsable-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.responsable-item .icono {
  font-size: 22px;
}

.responsable-item h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.responsable-item p {
  font-size: 13px;
  color: #777;
  margin: 0;
}

/* ── TABLA GUION ── */
.guion {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.guion th {
  background-color: #1a237e;
  color: white;
  padding: 14px 16px;
  text-align: left;
}

.guion td {
  padding: 18px 16px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  line-height: 1.6;
}

.guion td:first-child {
  font-weight: bold;
  color: #1a237e;
  width: 200px;
}

.guion tr:hover {
  background-color: #f0f2ff;
}

.tiempo {
  display: block;
  font-size: 12px;
  color: #999;
  font-weight: normal;
  margin-top: 2px;
}

/* ── NOTA FINAL ── */
.nota {
  background-color: #fffde7;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.nota strong {
  color: #f57f17;
}

/* ── SEPARADORES ── */
.separador {
  height: 1px;
  background-color: #ddd;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── FONDO GRIS PARA SECCIONES ALTERNAS ── */
.fondo-gris {
  background-color: #eef0f8;
}

/* ── PIE DE PÁGINA ── */
footer {
  background-color: #1a237e;
  color: #aaa;
  text-align: center;
  padding: 32px;
  font-size: 13px;
}

footer strong {
  color: white;
}

/* ── RESPONSIVE (MÓVIL) ── */
@media (max-width: 700px) {
  .dos-columnas { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .stats { flex-direction: column; gap: 20px; }
  nav .links { display: none; }
}
