body {
  margin: 0;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background: rgb(71, 73, 78)
}

/* capa oscura para mejorar lectura */
.overlay {
  width: 100%;
  height: 700px;
  background: rgba(0, 0, 0, 0.6);
}

/* contenido centrado */
.contenido {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 20px;
  transform: translateY(-120px); /* 🔥 lo sube */
}
/* estilo más templario */
h1 {
  font-size: 3em;
  color: white;
}

p {
  font-size: 1.5em;
  max-width: 600px;
}


.banner img {
  width: 100%;
  height: auto;
  align-items: center;
  object-fit: cover; /* clave: recorta sin deformar */
}

/* =========================================
BOTON
========================================= */

.btn-templario {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(145deg, #800020, #a00028);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.btn-templario:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}


.volver{
text-align:center;
padding:40px;
}

.btn{
background:rgb(128, 0, 32);
color:#ffffff;
padding:12px 28px;
text-decoration:none;
border-radius:6px;
text-align: center;
}


/* =========================================
DESCARGAS
========================================= */


/* TITULO */
.titulo {
  text-align: center;
  margin: 40px 0 30px;
}

/* CONTENEDOR */
.container_effect {
.container_effect {
  padding: 0 20px; /* 🔥 más limpio */
  display: flex;
  justify-content: center;
}
}

/* GRID DE REVISTAS */
.revistas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  max-width: 1100px;  /* 🔥 clave */
  margin: 0 auto;     /* 🔥 centra el bloque */
}

/* IMÁGENES */
.revistas img {
  width: 160px;
  height: 230px; /* 🔥 altura fija tipo revista */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.revistas img:hover {
  transform: scale(1.05);
}

/* GRID DE REVISTAS */
.documentos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ===== OTROS DOCUMENTOS ===== */

.documentos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin: 80px 0; /* 👈 margen arriba y abajo */
}

.pdf-item {
  text-align: center; /* centra todo */
}

.pdf-item a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none; /* quita subrayado */
}

.img-pdf {
  width: 120px !important;
  height: auto;
}

.pie-descripcion {
  margin-top: 6px;   /* acerca el texto a la imagen */
  font-size: 14px;
  color: #ffffff;
  font-weight: bold;
}

.acciones-pdf a {
  margin: 0px 10px 0px 5px;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  background: #313030;
  border-radius: 5px;
  transition: 0.3s;
}

.acciones-pdf a:hover {
  background: #777;
}

/* =========================================
FOOTER
========================================= */

.footer {
  background: #000000;
  color: #ffffff;
  padding: 20px 20px 30px;
  border-top: 5px solid rgb(212, 175, 55);
  box-shadow: 0 -5px 20px rgba(0,0,0,0.6);
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* COLUMNAS */

.footer-col {
  flex: 1;
  min-width: 200px;
  margin: 10px;
  text-align: center;
}

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 22px;
}

.footer-col a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 10px;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #ffffff;
}

/* REDES SOCIALES */

.redes {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

.redes a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1c;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  transition: transform 0.3s, background 0.3s;
}

.redes a:hover {
  transform: translateY(-3px);
}

/* colores redes */

.redes a.facebook:hover { background: #4267B2; }
.redes a.instagram:hover { background: #E1306C; }
.redes a.tiktok:hover { background: #0c0c0c; }
.redes a.youtube:hover { background: #FF0000; }

/* LINEA */

.footer hr {
  margin: 20px auto;
  max-width: 1100px;
  border: 0;
  height: 1px;
  background: #333;
}

/* PARTE FINAL */

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 🔥 centrado perfecto */
  justify-content: center;
  text-align: center;
  margin-top: 20px;
}

.footer-bottom img {
  width: 60px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.footer-bottom p {
  margin: 5px 0;
  color: #aaa;
  font-size: 14px;
  letter-spacing: 1px;
}

/* links */

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ccc;
}

/* RESPONSIVE */

@media(max-width:700px){

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-col {
    margin: 15px 0;
  }

}