/* ==== RESET ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==== BASE ==== */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f6f8;
  color: #222;
  line-height: 1.6;
}

/* ==== HEADER ==== */
header {
  background: linear-gradient(135deg, #1565c0, #90caf9);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}
header h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
}

/* ==== CARRUSEL ==== */
.carrusel-container {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  padding: 1rem;
}

.carrusel-slide {
  display: none;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 16px;
}

.carrusel-slide.active {
  display: block;
  margin: 0 auto;
}

.carrusel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s;
}
.carrusel-nav:hover {
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
}
.carrusel-nav.prev { left: 10px; }
.carrusel-nav.next { right: 10px; }

/* ==== FEATURES ==== */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  background-color: #fff;
}
.feature {
  background-color: #f9f9f9;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 160px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.feature:hover {
  transform: translateY(-5px);
}
.feature i {
  font-size: 2.5rem;
  color: #1e88e5;
  margin-bottom: 0.5rem;
}
.feature p {
  font-size: 0.95rem;
}

/* ==== BOTONES ==== */
.renta {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f1f8e9;
}
.btn, .btn-verde {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  margin: 0.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.azul {
  background-color: #2196f3;
  color: white;
}
.azul:hover {
  background-color: #1976d2;
}
.verde, .btn-verde {
  background-color: #4caf50;
  color: white;
}
.verde:hover, .btn-verde:hover {
  background-color: #388e3c;
}

/* ==== FORMULARIO ==== */
.formulario-reserva {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.formulario-reserva h2 {
  text-align: center;
  color: #333;
}
.formulario-reserva label {
  font-weight: 600;
  color: #555;
}
.formulario-reserva input,
.formulario-reserva select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}
.formulario-reserva button {
  margin-top: 1rem;
  font-weight: bold;
}
#btnReservarAhora {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#btnReservarAhora:hover {
  background-color: #388e3c;
}

/* ==== CALENDARIO ==== */
.calendario {
  padding: 3rem 1rem;
  text-align: center;
  background-color: #fffde7;
  font-style: italic;
  color: #555;
}
#calendar {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
}
#calendar-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #444;
}
#calendar-title i {
  color: #2196f3;
  font-size: 2rem;
}
.fc-button, .fc-button.fc-today-button {
  background-color: #1e88e5 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.5rem 1rem !important;
  color: white !important;
}
.fc-button:hover {
  background-color: #1565c0 !important;
}

/* ==== ESTADO ==== */
.estado {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 1rem;
  font-weight: bold;
  z-index: 1;
}
.estado.disponible { color: #2e7d32; }
.estado.ocupado { color: #c62828; }

/* ==== ADMIN TABLE ==== */
#adminReservas {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}
#tablaReservas {
  width: 100%;
  border-collapse: collapse;
}
#tablaReservas thead {
  background-color: #4caf50;
  color: white;
}
#tablaReservas th, #tablaReservas td {
  padding: 12px 16px;
  border: 1px solid #ddd;
  text-align: center;
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  background-color: #eceff1;
  color: #555;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ==== WHATSAPP ==== */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
  z-index: 9999;
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.6rem;
  }
  .features {
    flex-direction: column;
    align-items: center;
  }
  .feature {
    width: 80%;
    margin-bottom: 1rem;
  }
  .carrusel-container {
    max-width: 95%;
    padding: 0.5rem;
  }
  .carrusel-slide {
    max-height: 220px;
  }
  .carrusel-nav {
    font-size: 1.5rem;
    padding: 6px;
  }
  #calendar {
    width: 95%;
    font-size: 0.8rem;
  }
  .formulario-reserva {
    width: 95%;
    padding: 1.5rem;
  }
}

.modalidades {
  text-align: center;
  margin: 40px 0;
}

.texto-modalidad {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.btn-reservar, .btn-aviso {
  padding: 10px 20px;
  margin: 10px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-reservar {
  background-color: #28a745;
  color: white;
}

.btn-aviso {
  background-color: #007bff;
  color: white;
}

.btn-reservar:hover, .btn-aviso:hover {
  opacity: 0.8;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  text-align: center;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

/* ==== BOTONES DE ACCIÓN EN ADMIN ==== */
#tablaReservas button {
  padding: 6px 10px;
  margin: 0 4px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#tablaReservas button:hover {
  opacity: 0.85;
}

#tablaReservas button:first-child {
  background-color: #ffb300;
  color: white;
}

#tablaReservas button:last-child {
  background-color: #f44336;
  color: white;
}

/* ==== BOTÓN BLOQUEAR FECHAS ==== */
#bloqueoManual button {
  background-color: #e91e63;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  margin-top: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
#bloqueoManual button:hover {
  background-color: #c2185b;
}

/* ==== BOTÓN LOGOUT ==== */
#btnLogout {
  margin: 1rem auto;
  display: block;
  background-color: #616161;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
#btnLogout:hover {
  background-color: #424242;
}

/* ==== BOTÓN ELIMINAR MULTIPLES ==== */
#btnEliminarMultiples {
  background-color: #d32f2f;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  margin: 1rem 0;
  transition: 0.3s;
}
#btnEliminarMultiples:hover {
  background-color: #b71c1c;
}

/* ==== FORMULARIO EMERGENTE RESERVA CONFIRMADA ==== */
#formReservaPopup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  text-align: center;
}
#formReservaPopup a {
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
#formReservaPopup button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.swal2-container {
  z-index: 99999 !important;
}

/* Estilos del modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.modal-content h2 {
  margin-bottom: 10px;
}

.modal-content .botones {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.modal-content button {
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
}

#aceptarPrivacidad {
  background-color: #4CAF50;
  color: white;
}

#rechazarPrivacidad {
  background-color: #e53935;
  color: white;
}


.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
}

#diasCheckboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1rem;
}
#diasCheckboxes label {
  background: #e0f2f1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==== Scoped styles for Duplicar Reserva modal (does not affect other modals) ==== */
#modalDuplicar {
  display: none; /* set to flex in JS when opening */
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#modalDuplicar .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  animation: fadeInModal 0.25s ease;
}

#modalDuplicar h2 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
}

#modalDuplicar #diasCheckboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

#modalDuplicar #diasCheckboxes label {
  background: #e8f5e9;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

#modalDuplicar button {
  padding: 9px 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 6px;
}

#modalDuplicar #confirmarDuplicado {
  background-color: #4caf50;
  color: #fff;
}

#modalDuplicar #btnCancelarDuplicar {
  background-color: #d9d9d9;
  color: #222;
}

/* Smooth modal animation */
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==== Table date columns: keep on one line and slightly smaller ==== */
#tablaReservas td:nth-child(2),
#tablaReservas td:nth-child(3) {
  white-space: nowrap;
  font-size: 0.92rem;
}
 
#modalDuplicar .opcion-repetir input[type="number"] {
  border: 1px solid #d0d7de;
  border-radius: 6px;
}


