/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
}

/* HEADER */
.site-header {
    text-align: center;
    padding: 3.5rem 1rem 0;
}

.logo-container img {
  width: 960px;
  max-width: 98%;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

.lema-destacada {
  font-size: 2rem;
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.85;
  line-height: 1.2;
}

/* MENÚ PRINCIPAL */
.main-nav {
  width: 100%;
  background: #000;
}

.main-nav .menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 0;
  margin: 0;
}

.main-nav .menu li {
  position: relative;
}

.main-nav .menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  display: block;
}

/* SUBMENÚ */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #111;
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  border-radius: 0 0 6px 6px;
  z-index: 100;
}

.submenu li a {
  padding: 0.5rem 1rem;
  color: #fff;
  display: block;
}

.submenu-parent:hover .submenu {
  display: block;
}

.menu li a:hover,
.submenu li a:hover {
  background: #333;
  border-radius: 4px;
}

/* BANNER */
.banner-andino{
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.banner-andino img{
    width:100%;
    height:auto;
    display:block;
}

/* SECCIONES */
section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-left: 6px solid #000;
  padding-left: 0.75rem;
}

/* DESTACADOS */
.destacados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.destacado-item {
  background: #000;
  color: #fff;
  padding: 1rem;
  border-radius: 50%;
  text-align: center;
  margin-bottom: 1.5rem;
}

.destacado-item img {
  max-width: 100%;
  border-radius: 12px;
}

.destacado-item h3 {
  color: #f5e4c3;
  margin: 0.5rem 0;
}

.destacado-item p {
  font-size: 0.9rem;
}

.destacado-link {
  color: #2196F3;
  text-decoration: underline;
  font-size: 0.85rem;
}

/* NOTICIAS LISTADO (index.html y noticias.html) */
.noticias-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.noticias-seccion {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.noticias-seccion h2 {
  font-size: 2rem;
  color: #000;
  border-left: 8px solid #000;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.noticia-circulo {
  display: flex;
  align-items: flex-start;
  background: #000;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.noticia-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.noticia-texto h3 {
  font-size: 1.1rem;
  color: #f5e4c3;
  margin-bottom: 0.3rem;
}

.noticia-texto p {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.noticia-link {
  font-size: 0.85rem;
  color: #2196F3;
  text-decoration: underline;
}

/* NOTICIAS COMPLETAS (páginas individuales) */
.noticia-completa {
  max-width: 800px;
  margin: auto;
  padding: 2rem 1rem;
}

.noticia-completa h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.noticia-completa p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.noticia-completa img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* PAGINACIÓN */
.paginacion {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.paginacion button {
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  background: #000;
  color: #fff;
  margin-top: 3rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .noticia-img {
    width: 100px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .main-nav .menu {
    flex-direction: column;
    gap: 0;
  }

  .submenu {
    position: static;
    border-radius: 0;
  }

  .submenu-parent:hover .submenu {
    display: block;
  }

  .noticia-circulo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .noticia-img {
    width: 100%;
    height: auto;
  }

  .noticia-texto h3 {
    font-size: 1rem;
  }

  .noticia-texto p {
    font-size: 0.9rem;
  }

  .noticia-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .logo-container img {
    width: 400px;
  }

  .lema-destacada {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .noticia-completa h1 {
    font-size: 1.6rem;
  }

  .noticia-completa p {
    font-size: 1rem;
  }
}

/* ===== ESTILO EDITORIAL – NOTICIA COMPLETA ===== */

/* Título principal */
.noticia-completa h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

/* Meta: fecha + sección */
.noticia-completa > p:first-of-type {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* Imagen principal */
.noticia-completa img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Cuerpo del texto */
.noticia-completa p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
  text-align: justify;
}

/* Enlace volver */
.noticia-completa a {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.noticia-completa a:hover {
  text-decoration: underline;
}

/* NOTICIAS EN INDEX */
.noticia-index {
  background: #000;
  color: #fff;
  padding: 1.2rem;
  border-radius: 12px;
}

.noticia-index h3 {
  color: #f5e4c3;
  margin-bottom: 0.4rem;
}

.noticia-index p {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* DOCUMENTOS - LISTADO */

.documentos-listado {
  max-width: 900px;
  margin: auto;
  padding: 2rem 1rem;
}

.documentos-listado h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  border-left: 8px solid #000;
  padding-left: 1rem;
}

.documento-item {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
}

.documento-item h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.documento-item h2 a {
  text-decoration: none;
  color: #000;
}

.documento-item h2 a:hover {
  text-decoration: underline;
}

.documento-subtitulo {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.documento-autor {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* DOCUMENTO COMPLETO */

.documento-completo {
  max-width: 900px;
  margin: auto;
  padding: 2rem 1rem;
}

.documento-completo h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.documento-completo .documento-subtitulo {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.documento-completo .documento-autor {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.documento-pdf {
  margin: 2rem 0;
}

.documento-descarga a {
  font-weight: bold;
  text-decoration: underline;
}

/* DOCUMENTOS - LISTADO CON IMAGEN */

.documento-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  padding-right: 180px; /* espacio reservado para la imagen */
  border-bottom: 1px solid #ccc;
}

/* TEXTO: NO SE TOCA */
.documento-texto {
  display: block;
}

/* IMAGEN */
.documento-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;   /* aquí controlas el tamaño */
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .documento-item {
    padding-right: 0;
  }

  .documento-img {
    position: static;
    display: block;
    margin: 1rem auto 0;
    width: 180px;
  }
}

/* ==========================================
   DOCUMENTOS - PRESENTACIÓN TEMPORAL
========================================== */

.documentos-presentacion{
    max-width: 760px;
    margin: 2rem auto;
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
}

.documentos-presentacion p{
    margin-bottom: 1.3rem;
}

.documentos-separador{
    width: 60%;
    margin: 2.5rem auto;
    border: none;
    border-top: 1px solid #cfcfcf;
}

.documentos-aviso{
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: .5px;
}


/* ICONO PDF */

.icono-pdf {
  width: 50px;
  height: auto;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.documento-descarga {
  margin-bottom: 1.5rem;
}

/* ===========================
   TICKER DE ÚLTIMAS NOTICIAS
=========================== */

.ticker{
    display:flex;
    align-items:center;
    width:100%;
    max-width:100%;
    background:#111;
    padding:0;
    margin:0;
    border-top:1px solid #6f1d1b;
    border-bottom:1px solid #6f1d1b;
    overflow:hidden;
}

.ticker-label{
    background:#6f1d1b;
    color:white;
    font-weight:bold;
    padding:8px 18px;
    font-size:0.9rem;
    white-space:nowrap;
    flex-shrink:0;
}

.ticker-wrapper{
    overflow:hidden;
    width:100%;
}

.ticker-content{
    display:inline-block;
    white-space:nowrap;
    padding-left:100%;
    animation:ticker 45s linear infinite;
}

.ticker:hover .ticker-content{
    animation-play-state: paused;
}

.ticker-content a{
    color:white;
    text-decoration:none;
    margin-right:60px;
    font-style:italic;
}

.ticker-content a:hover{
    text-decoration:underline;
}

@keyframes ticker{

    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-100%);
    }

}