body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #212529;
}

/* Cuando el modal está abierto, bloquear scroll del fondo */
body.modal-abierto {
  overflow: hidden;
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../img/carlosinfante_hero.jpg') no-repeat center center/cover;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-section .lead {
  font-size: 1.25rem;
  margin-top: 1rem;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
}

/* Modal Content */
.modal-content {
  width: 100%;
  max-width: 1000px;
  text-align: center;
  background: transparent;
}

/* Image Container */
.zoom-container {
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: black;
  touch-action: none;
}

.zoom-container img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  cursor: grab;
  user-select: none;
  transition: transform 0.3s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 1;
}

/* Cuando está saliendo */
.fade-out {
  opacity: 0;
}

/* Botones */
.modal-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-controls button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  background-color: #0d6efd;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-controls button:hover {
  background-color: #0056b3;
}

section {
  padding: 60px 0;
}

footer {
  background-color: #343a40;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-section {
    height: 80vh;
    padding: 1rem;
    background-position: top;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .modal-content {
    max-width: 100%;
  }

  .zoom-container {
    max-height: 60vh;
  }

  .zoom-container img {
    max-height: 60vh;
  }
}

