/* Estilos globales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: #f8fafc;
}

/* Cabecera / Hero */
header {
  background: linear-gradient(rgba(2, 132, 199, 0.85), rgba(3, 105, 161, 0.85)), url('../img/hero-montgo.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 1.5rem;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

header p {
  font-size: 1.3rem;
  opacity: 0.95;
}

/* Contenedor principal */
main {
  max-width: 1000px;
  margin: -2rem auto 3rem auto;
  padding: 0 1.5rem;
}

/* Grid de secciones de información */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.card h2 {
  color: #0f172a;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.card ul {
  list-style-type: none;
}

.card ul li {
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.card ul li::before {
  content: "✓";
  color: #0284c7;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.ubicacion-card {
  background: #f0f9ff;
  border-left: 4px solid #0284c7;
}

/* Botones de filtro por categoría */
.filtros-galeria {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem 0;
}

.btn-filtro {
  background-color: #e2e8f0;
  color: #334155;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filtro:hover, .btn-filtro.activo {
  background-color: #0284c7;
  color: white;
}

/* Cuadrícula de fotos filtrable */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.foto-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  cursor: pointer;
}

.foto-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.foto-item:hover img {
  transform: scale(1.05);
}

.foto-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
  padding: 0.8rem 0.5rem 0.5rem 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Visor a pantalla completa (Lightbox) */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.activo {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-caption {
  color: white;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
}

.lightbox-btn:hover { background: rgba(255,255,255,0.4); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-close { top: 20px; right: 25px; font-size: 2.5rem; background: none; }

/* Pie de página */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
}