/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 
  Hacemos que body sea un contenedor flex vertical 
  y forzamos a que ocupe al menos toda la pantalla (100vh).
*/
html, body {
  width: 100%;
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  color: white;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER y FOOTER con estilos sencillos */
header, footer {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.1rem; /* Aumenta la separación entre letras */
  background: transparent;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}

header h1 {
  font-family: "Zen Maru Gothic", serif;
  letter-spacing: 3px; /* Aumenta la separación entre letras */    
  font-style: normal;
  display: block;
  font-size: 6em;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
  margin-bottom: 0.5rem; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}



.header-subtitle {
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.1rem; /* Aumenta la separación entre letras */
  font-weight: 250; /* Regular */
}


/* 
  MAIN se expande (flex: 1) para ocupar el espacio 
  y “empujar” el footer al final de la página 
*/
main {
  flex: 1;
}

.hero {
  position: relative;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), 
    rgba(0, 0, 0, 0.4)),
    url('../img/camera.jpg') center/cover no-repeat;
  min-height: 100vh;
  width: 100vw;
  padding: 2rem 1rem;
  text-align: center;
  margin: 0;
}

/* Ajustes específicos para móviles */
@media (max-width: 767px) {
  .hero {
    background-position: center center;
    background-size: cover;
    padding: 1rem; /* Reducir padding para maximizar espacio */
    /* Opcional: ajustar posición vertical del contenido */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Si el texto se ve muy grande en móviles */
  .hero h1 {
     font-size: 2.3rem;
  }
}

/* GRID DE ÍCONOS */
.icon-grid {
  display: grid;
  align-content: space-evenly;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 500px;
  padding: 1rem;
  justify-content: center;
}
.icon-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.3rem 1rem;
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-item:hover {
  transform: translateY(-5px);
}

.icon-item img {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

/* MODAL */
.modal {
  display: none; /* Oculta completamente el modal */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Fondo oscuro semi-transparente */
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.modal-container {
  width: 100%;
}

.modal-header {
  text-align: right;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.modal-title {
  margin: 0;
  font-size: 1rem;
  color: #333;
  display: inline-block;
  border-bottom: 2px solid #eee;
  padding-right: 14rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-size: 2.0rem; /* Tamaño escalable */
  text-align: left;
}

.modal-body {
  display: grid;
  gap: 2rem;
}

.modal-img-container {
  display: flex;
  justify-content: center;
}

.modal-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 35px rgba(0,0,0,0.15);
  
}

.modal-text {
  text-align: center;
  line-height: 1.6;
  color: #444;
}

.modal-text, .modal-list {
  width: 100%;
  max-width: 600px; /* Contenido controlado */
  margin: 0 auto;
}

/* LISTA DE COSTOS RESPONSIVE */
.modal-list {
  padding: 0;
  list-style: none;
}

.modal-list li {
  background: #f8f9fa;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.modal-content {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  color: #333;
  will-change: transform; /* Optimización para GPU */
  backface-visibility: hidden; /* Evitar flickering */
  transform: scale(0.9);
  transition: transform 0.5s ease-in-out;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal .carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin: 1rem 0;
  scroll-snap-type: x mandatory;
}

.modal .carousel iframe {
  min-width: 300px;
  height: 200px;
  flex: 1;
}

.modal .carousel img {
  width: 280px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
}

.modal .video-caption {
  text-align: center;
  padding: 0.5rem;
  background: rgba(0,0,0,0.8);
  color: white;
  margin-top: -5px;
  border-radius: 0 0 8px 8px;
}


.carousel-indicator {
  display: block;
  text-align: center;
  color: #666;
  margin: 0.5rem 0;
  font-style: italic;
  animation: pulse 1.5s infinite;
}
.modal a {
  text-decoration: none;
  color: black;
}


/* Cuando el modal tiene la clase "active", se muestra */
.modal.active {
  display: flex;
  background: rgba(0,0,0,0.5);
  opacity: 1;
  visibility: visible;
}

/* Botón para cerrar modal */
.close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: #000000;  /* Color visible en dark/light */
  font-size: 3.0rem;
  font-weight: 500;
  cursor: pointer;
  z-index: 9999;  /* Asegura que esté por encima */
  transition: all 0.3s ease;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Para contrastar */
}
.close:hover {
  color: #ff4444;  /* Feedback visual al hover */
  transform: scale(1.1);
}

/* CARRUSEL HORIZONTAL */
.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  /* Para un efecto de “snap” al deslizar en móviles */
  scroll-snap-type: x mandatory;
  margin-top: 1rem;
}

.carousel a {
  position: relative;
  display: block;
}

.carousel a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M8 5v14l11-7z"/></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.carousel a:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

/* Opcional: overlay al hacer hover */
.carousel a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.carousel a:hover::before {
  background: rgba(0,0,0,0.5);
}


/* Mquery para escritorio*/
/* MANTIENE MISMA ESTRUCTURA EN ESCRITORIO */
@media (min-width: 768px) {
  .modal-container {
    padding: 40px;
  }
  
  .modal-title {
    font-size: 3rem;
    margin-bottom: 3rem;
  }
  
  .modal-list li {
    padding: 2rem;
    font-size: 1.1rem;
  }
  
  /* Ajuste fino para textos */
  .modal-text p, .modal-list li {
    line-height: 1.8;
    text-align: center;
  }
}

/* CARRUSEL CONSISTENTE */
.carousel {
  max-width: 100%;
  padding: 10px 0;
}

.carousel img {
  width: 280px; /* Tamaño fijo en todos dispositivos */
  height: 160px;
  object-fit: cover;
  margin: 0 10px;
}

/* configuracion del mapa - zona covertura*/

.mapa {
    margin-top: 0px; /* Ajusta el margen superior del mapa para dispositivos mÃ¡s pequeÃ±os */

  }

  .mapa iframe {
    height: 500px; /* Ajusta la altura del mapa para dispositivos mÃ¡s pequeÃ±os */
  }

.mapa {
  background-color: rgba(61, 61, 61, 0); /* Fondo gris con 50% de transparencia */
  display: flex;
  justify-content: space-around;
  align-items: flex-start; /* Centra horizontalmente los elementos */
  height: 80vh; /* 100% de la altura del viewport */
  /* background-color: #7c7c7c; */
  flex-grow: 1; /* Para que la secciÃ³n ocupe el espacio disponible */
}

/* Estilo para el mapa dentro del contenedor */
.mapa iframe {
  margin-top: 1.5rem;
  width: 100%;
  height: 50%; /* Ajusta el alto al 75% del contenedor */
  background-color: #7c7c7c; /* Color de fondo del mapa, ajusta segÃºn tu preferencia */
  flex-grow: 0; /* Para que la secciÃ³n ocupe el espacio disponible */
  flex-shrink: 1; /* Evita que el mapa se contraiga mÃ¡s allÃ¡ de su tamaÃ±o original */
  aspect-ratio: 16/9;  
}

/* Estilos para tarjetas de servicios */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 1rem;
}

.service-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-header h3 {
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.price-tag {
  background: #9B59B6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

.service-details {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.duration {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.time-info {
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 6px;
  margin: 0.5rem 0;
}

.options-info {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 1rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .price-tag {
    font-size: 1.2rem;
  }
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.social-icons img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}
 

