/* --- ESTILOS PARA LA INTRODUCCIÓN --- */
.intro-text {
  background-color: #ffffff;
  padding: 35px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Sombra suave tipo tarjeta */
  margin-bottom: 30px;
  border-top: 5px solid #284d98; /* Detalle institucional arriba */
}

.intro-text h1 {
  font-size: 2.2rem;
  color: #284d98;
  margin-bottom: 15px;
  line-height: 1.2;
}

.year-subtitle {
  display: flex;
  align-items: center; /* Centra el icono con el texto verticalmente */
  gap: 15px; /* Espacio entre el icono y el año */
  font-size: 2rem;
  color: #284d98;
  margin-bottom: 25px;
}

.book-icon {
  height: 40px; /* Ajusta este valor si tu imagen es muy grande o pequeña */
  width: auto;
  display: block;
}

.description-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #5c3e35;
  text-align: justify;
  margin-bottom: 1.5rem;
}

.description-text strong {
  color: #222; /* Hace que las negritas resalten un poco más */
}

/* Responsive para la intro en celulares */
@media (max-width: 768px) {
  .intro-text {
    padding: 25px 20px;
  }

  .intro-text h1 {
    font-size: 1.6rem;
  }

  .year-subtitle {
    font-size: 1.6rem;
  }

  .book-icon {
    height: 30px;
  }
}

/* CSS Mapa */
/* Contenedor principal de la ubicación */
/* =============================================
   SECCIÓN: UBICACIÓN CON ANIMACIÓN FLUIDA
   ============================================= */

.location-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin: 30px 0;
  border: 1px solid #f0f0f0;
}

/* --- Encabezado --- */
.location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  list-style: none;
  background-color: #ffffff;
  z-index: 2;
  position: relative;
}

.location-header::-webkit-details-marker {
  display: none;
}

.location-header h3 {
  color: #5c3e35;
  margin: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-arrow {
  color: #5c3e35;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-accordion[open] .toggle-arrow {
  transform: rotate(180deg);
}

/* --- LA MAGIA DE LA ANIMACIÓN --- */

/* 1. El contenedor inicia con filas en 0 */
.location-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  opacity: 0;
  transition:
    grid-template-rows 0.5s ease,
    opacity 0.4s ease,
    visibility 0.4s;
}

/* 2. Cuando se abre, la fila pasa a 1fr (ocupa su tamaño natural) */
.location-accordion[open] .location-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  border-top: 1px solid #f0f0f0;
}

/* 3. El div interno debe tener min-height 0 para que el grid funcione */
.content-inner {
  overflow: hidden;
  min-height: 0;
}

/* --- Layout del contenido interno --- */
.location-flex-container {
  display: flex;
  flex-wrap: wrap;
}

.location-info {
  flex: 1;
  min-width: 300px;
  padding: 30px;
}

.address-box {
  display: flex;
  gap: 15px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid #eee;
}

.address-box i {
  color: #5c3e35;
}

.btn-map-external {
  color: #5c3e35;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.location-map {
  flex: 1;
  min-width: 300px;
  min-height: 350px;
  background: #f0f0f0;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 992px) {
  .location-flex-container {
    flex-direction: column;
  }

  .location-map {
    width: 100%; /* Asegura que use todo el ancho del cel */
    height: auto; /* Libera la altura fija */
    aspect-ratio: 4 / 3; /* Proporción ideal para mapas en móvil (4 de ancho por 3 de alto) */
    min-height: 350px; /* Evita que se vea demasiado pequeño en pantallas minúsculas */
  }
}

.hero-banner {
  display: block;
  width: 100%;
  margin: 0 0 30px 0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  line-height: 0; /* elimina espacio fantasma debajo de la img */
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Animación de entrada */
.hero-banner {
  animation: bannerFadeIn 0.8s ease-out;
}
@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet: bordes un poco menos redondeados */
@media (max-width: 768px) {
  .hero-banner {
    margin-bottom: 20px;
  }
}

/* Celular: pegado a los bordes para impacto máximo */
@media (max-width: 480px) {
  .hero-banner {
    margin-bottom: 18px;
  }
}
