/* css/index.css
   Estilos para index.php (tres columnas, vídeos y lista de sitios)
   Comentarios en español y nombres sin tildes.
*/

/* Reset ligero */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.45;
}

/* Contenedor principal centrado */
.page { padding: 18px 12px; }
.page-container {
  max-width: 980px;
  margin: 0 auto;
}

/* --- Cards row (3 columnas) --- */
.cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
  align-items: start;
}

/* Cada tarjeta */
.card {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 8px 12px 16px 12px;
}

/* Imagen superior */
.card-img { width: 100%; height: 160px; overflow: hidden; border-radius: 3px; background: #f6f6f6; margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Titulos */
.card-title { font-size: 18px; margin: 4px 0 8px 0; color: #8a3b1d; font-weight: 800; }
.card-title .muted { color: #000; font-weight: 700; display:block; font-size: 16px; }

/* Cuerpo del texto */
.card-body p { font-size: 14px; color: #333; margin-bottom: 14px; text-align: justify; }
.card-body a { color: #0b5aa7; text-decoration: underline; }

/* Boton leer mas */
.leer-mas-wrap { text-align: left; }
.btn-leer {
  background: linear-gradient(#f3cda3, #cd8a5a);
  border: 1px solid #8a3b1d;
  color: #2f1607;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.12);
}
.btn-leer:hover { transform: translateY(-1px); }

/* --- Bottom row --- */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 0.2fr 0.9fr;
  gap: 18px;
  align-items: start;
  margin-top: 6px;
}

/* Videos column */
.videos-col { background: transparent; padding-top: 4px; }
.videos-title { color: #c45a1b; font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.small-muted { color: #6b6b6b; display:block; font-weight:700; font-size:13px; margin-top:4px; }

.videos-list { list-style: none; margin-top: 8px; }
.videos-list li { margin-bottom: 10px; }
.video-link {
  background: transparent;
  color: #c45a1b;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  text-align: left;
}
.video-link:hover { text-decoration: underline; }

/* Spacer column (vacío) */
.spacer-col { }

/* Sitios de interes (aside) */
.sites-col { padding-left: 6px; }
.sites-box {
  border-left: 1px solid #eee;
  padding-left: 12px;
}
.sites-header { width: 100%; max-width: 150px; display:block; margin-bottom: 8px; }

/* Lista de sitios */
.sites-list { list-style: none; padding-left: 0; }
.sites-list li { margin-bottom: 8px; font-weight: 700; color: #003366; }
.sites-list li a { color: #003366; text-decoration: none; }
.sites-list li a:hover { text-decoration: underline; }

/* Responsivo: apilar columnas en pantallas pequeñas */
@media (max-width: 860px) {
  .cards-row { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .spacer-col { display: none; }
  .sites-header { max-width: 220px; margin: 10px 0; }
  .card-img { height: 220px; }
}
