/* === ESTILOS BASE === */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4faff;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(90deg, #0077b6, #0096c7);
  color: white;
  padding: 15px 10px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 26px;
}

nav {
  margin-top: 10px;
}
nav a {
  margin: 0 12px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #ffd60a;
}

footer {
  background: #03045e;
  color: white;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  box-shadow: 0 -3px 6px rgba(0,0,0,0.3);
}
.contador {
  font-weight: bold;
  color: #ffd60a;
  margin-left: 5px;
}

/* === HERO (Solo para index.html) === */
.hero {
  display: flex;
  flex-wrap: wrap;
  min-height: calc(100vh - 140px);
}
.hero video {
  width: 50%;
  object-fit: cover;
}
.bienvenida {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(90deg, #caf0f8, #ade8f4);
  padding: 30px;
}
.contenido-bienvenida {
  max-width: 410px;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}
.foto-bienvenida img {
  max-width: 150%;
  max-height: 466.5px;
  border-radius: 12px;
  box-shadow: 0 4px 17px rgba(0,0,0,0.2);
}

/* === LUGARES (lugares.html) === */
.lugares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  padding: 30px 20px;
}
.lugar {
  background: #e0f7fa;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.lugar img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.lugar:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
}
.modal-contenido {
  background: white;
  margin: auto;                 /* 🔹 centrado automático */
  position: absolute;           /* 🔹 permite centrar en la pantalla */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 🔹 centrado perfecto */
  
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;             /* 🔹 tamaño controlado */
  max-height: 90vh;             /* 🔹 nunca se pasa de la pantalla */
  overflow-y: auto;             /* 🔹 si el contenido crece, agrega scroll interno */
  text-align: center;
}


.modal-contenido h2 {
  margin-bottom: 10px;
  color: #0077b6;
}
.modal-contenido img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
}
.modal-contenido iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 10px;
  margin-top: 10px;
}
.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.btn-reserva {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #0077b6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}
.btn-reserva:hover {
  background: #023e8a;
}
.flechas {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
.flecha {
  cursor: pointer;
  font-size: 26px;
  color: #0077b6;
}

/* === FORMULARIO (reservas.html) === */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}
.form-container {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0077b6;
}
form label {
  display: block;
  font-weight: 600;
  margin: 10px 0 6px;
}
form input, form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 15px;
}
form button {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #0077b6;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
form button:hover {
  background: #023e8a;
}

/* Comentarios animados (solo index) */
.comentarios {
  background: #0096c7;
  color: white;
  padding: 10px;
  overflow: hidden;
  position: relative;
  height: 45px;
  font-size: 16px;
}
.comentarios p {
  position: absolute;
  width: 100%;
  text-align: center;
  animation: scrollComentarios 12s linear infinite;
}
@keyframes scrollComentarios {
  0% { top: 100%; }
  100% { top: -100%; }
}
/* ======= TEXTO ANIMADO DEL HEADER ======= */
.marquee {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #0077b6, #0096c7);
  color: white;
  padding: 12px 0;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.marquee span {
  display: inline-block;
  padding-left: 100%;      /* Inicia fuera de la pantalla */
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ======= NAV ======= */
nav {
  text-align: center;
  background: #0096c7;
  padding: 10px 0;
}
nav a {
  margin: 0 15px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
nav a:hover { color: #ffd60a; }
