/* ================================
   LAYOUT GENERAL
================================ */

/* SLIDER */
.slider {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
}

.slider .item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slider .item.active {
  opacity: 1;
}

.slider .content {
  position: absolute;
  bottom: 15%;
  left: 10%;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.55);
  padding: 25px;
  border-radius: var(--radius-md);
  color: var(--blanco);
}

.slider h2 {
  color: var(--blanco);
  margin-bottom: 10px;
}

/* LIRA */
.lira {
  max-width: 180px;
  margin: 60px auto;
}

/* SECCIONES */
section.container {
  max-width: 1100px;
}

section h1 {
  color: var(--bordo);
  text-align: center;
}

section h3 {
  color: var(--bordo);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .slider {
    height: 70vh;
  }

  .slider .content {
    left: 5%;
    right: 5%;
    bottom: 10%;
  }
}

/* ===== NAVBAR MÁS COMPACTA ===== */
.navbar {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar-brand {
  font-size: 0.95rem;
}

.navbar-brand img {
  height: 32px;      /* antes 40px */
  width: auto;
}

/* ===== LOGO LIRA ===== */
.lira {
  max-width: 80px;   /* tamaño institucional */
  width: 100%;
  height: auto;
  margin: 30px auto;
  display: block;
}

/* ===== EVITA QUE TODO SE VEA GIGANTE ===== */
main h1 {
  font-size: 2rem;
}

main h2 {
  font-size: 1.4rem;
}

main p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ==============================
   BLOQUE INSTITUCIONAL
============================== */

.section-divider {
  width: 90px;
  height: 4px;
  background-color: #870e0e;
  border-radius: 10px;
  margin: 0 auto 30px auto;
}

.institucional-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Tabs */
.institucional-tabs .nav-link {
  color: #333;
  background-color: #e9ecef;
  margin-right: 10px;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 500;
}

.institucional-tabs .nav-link.active {
  background-color: #870e0e;
  color: #ffffff;
}

/* Contenido */
.institucional-card h4 {
  color: #870e0e;
  margin-bottom: 15px;
}

.institucional-card p,
.institucional-card li {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== SLIDER TIPO PORTADA ===== */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slider-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-slide.active {
  opacity: 1;
}

.slider-slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.slider-text {
  position: absolute;
  bottom: 15%;
  left: 8%;
  background: rgba(0,0,0,0.45);
  padding: 18px 24px;
  border-left: 4px solid #870e0e;
  color: #fff;
  max-width: 480px;
}

/* ===== HOME HERO ===== */
.home-hero {
  width: 100%;
}

/* PARTE SUPERIOR */
.home-top {
  display: flex;
  min-height: 75vh;
}

/* FACHADA */
.home-fachada {
  width: 60%;
  overflow: hidden;
}

.home-fachada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* NOTAS */
.home-notas {
  width: 40%;
  background: #f4f4f4;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  border-left: 4px solid #7a0c1d;
}

.home-notas h3 {
  color: #5a0e1a;
  margin-bottom: 20px;
  font-weight: 600;
}

.notas-lista {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.notas-lista li {
  margin-bottom: 12px;
  color: #333;
  font-size: 16px;
}

/* BOTÓN */
.btn-ver-mas {
  align-self: flex-start;
  padding: 10px 22px;
  background: #7a0c1d;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-ver-mas:hover {
  background: #5a0e1a;
}

/* SALUTACIÓN */
.home-salutacion {
  width: 100%;
  margin-top: 20px;
}

.home-salutacion img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
}

/* ===== FOOTER INFO ===== */
.footer-info {
  background: linear-gradient(
    to right,
    #1c1c1c,
    #2a2a2a,
    #1c1c1c
  );
  color: #e6e6e6;
  padding: 40px 20px;
  margin-top: 80px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.footer-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.5;
}

.footer-item strong {
  color: #cfa3ab; /* borgoña elegante */
  font-weight: 600;
}

.footer-icon {
  font-size: 20px;
  margin-top: 3px;
}

.footer-wide {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}
/* ===== FOOTER INSTITUCIONAL ===== */
.footer-info {
  background: linear-gradient(
    to right,
    #1b1b1b,
    #2a2a2a,
    #1b1b1b
  );
  color: #e4e4e4;
  padding: 50px 20px;
  margin-top: 80px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.footer-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.55;
}

.footer-item strong {
  color: #caa0a8; /* borgoña sobrio */
  font-weight: 600;
}

.footer-icon {
  font-size: 20px;
  color: #caa0a8;
  margin-top: 4px;
}

.footer-wide {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
}

/* MAPA */
.footer-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* ===== ANIMACIÓN SUAVE AL SCROLL ===== */
.footer-info {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.footer-info.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BLOQUE ACTIVIDADES (HOME) ===== */

.home-notas {
  background: linear-gradient(180deg, #fafafa, #f0f0f0);
  padding: 26px 24px;
  border-radius: 8px;
  border-left: 4px solid #7a0c1d;
  box-shadow: 0 14px 34px rgba(0,0,0,0.12);

  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px; /* más chica que la fachada */
}

/* Título */
.home-notas h3 {
  font-size: 1.1rem;
  color: #5a0e1a;
  font-weight: 600;
  margin: 0;
}

/* ===== NOTA DESTACADA ===== */
.nota-destacada {
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.nota-destacada h4 {
  font-size: 1rem;
  color: #222;
  margin-bottom: 6px;
}

.nota-destacada p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* ===== CARRUSEL DE NOTAS ===== */
.notas-carrusel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.notas-carrusel::-webkit-scrollbar {
  height: 6px;
}

.notas-carrusel::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

/* Item del carrusel */
.nota-item {
  min-width: 160px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  white-space: normal;
}

/* Botón */
.btn-ver-mas {
  align-self: flex-start;
  margin-top: 6px;
  padding: 8px 18px;
  background: #7a0c1d;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: background 0.3s ease;
}

.btn-ver-mas:hover {
  background: #5a0e1a;
}

.home-notas-dinamicas {
  margin-top: 40px;
  padding: 30px;
}

/* NOTA DESTACADA */
.nota-destacada {
  display: flex;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  margin-bottom: 25px;
}

.nota-destacada img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.nota-destacada h4 {
  margin: 0 0 10px;
}

/* CARRUSEL */
.notas-carrusel {
  display: flex;
  gap: 14px;
}

.nota-item {
  min-width: 220px;
  background: rgba(255,255,255,0.9);
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.seccion-institucional{
padding:80px 20px;
max-width:1100px;
margin:auto;
}

.seccion-institucional h2{
text-align:center;
margin-bottom:50px;
}

.bloque-institucional{
background:#fff;
padding:25px;
margin-bottom:25px;
border-radius:8px;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.bloque-institucional h3{
margin-bottom:10px;
color:#7c1c2c;
}