/* Estilos imagen y titulo */
.producto-carrousel {
  width: 100%; 
  background-size: cover;
  background-position: 50%;
  padding-top: 39.1%;
}

.contenedor-titulo {
  padding-top: 54px;
}

.contenedor-caja {
  padding: 27px 0;
  width: 80%;
  margin: auto;
  position: relative;
  max-width: 1080px;
}

.contenedor-caja-texto {
  width: 30%;
  margin-right: 5.5%;
  margin-top: -350px !important;
  background-color: #233b4ecc;
  min-height: 1px;
  mix-blend-mode: unset !important;
  font-size: 30px;
  line-height: 1.2em;
  padding: 0 20px !important;
  text-align: center;
  height: 300px;
  align-content: center;
  vertical-align: middle;
  display: inline-grid;
}

#titulo-producto {
  text-align: center;
  color: #fff;
}

/* Estilos para el botón Mostrar más / Mostrar menos */
.toggle-description-button {
    background-color: #ffffff;
    color: #ff0000;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.toggle-description-button:hover {
    background-color: rgba(245, 151, 148, 0.1) !important;
}

/* Estilos para los tabs que muestran informacion del producto */
.producto-tabs {
    margin-top: 20px;
    font-family: Arial, sans-serif;
    border: 1px solid #ccc;
}

.tabs-header {
    display: flex;
    gap: 30px;
}

.tab-button {
    padding: 10px 15px;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
	  color: #7d8287;
    width: 30%;
}

.tab-button.active {
    border-bottom: solid rgb(145, 0, 115) !important;
	color: rgb(145, 0, 115);
}

.tab-button:hover {
    background-color: rgba(235, 190, 238, 0.2) !important;
}

.tab-content {
    display: none;
    padding: 15px;
}

.tab-content.active {
    display: block;
}

/* Estilos pantallas pequeñas */
@media screen and (max-width: 480px) {
  .tab-button {
    width: 26%;
  }
  .contenedor-caja-texto {
    width: 100%;
    margin-top: -200px !important;
    margin-right: 0;
    margin-bottom: 30px;
    font-size: 30px;
    height: 200px;
  }
}

/* Ajustes para pantallas pequeñas */
@media screen and (max-width: 768px) {
  .calendario-container {    
    overflow-x: visible !important;
    padding: 0.1em !important;
  }

  .et_pb_row {
    width: 95% !important;
  }

  /*
  .flatpickr-calendar {
    font-size: 14px;
    width: 100% !important;
  }

  .flatpickr-calendar .flatpickr-months,
  .flatpickr-calendar .flatpickr-weekdays,
  .flatpickr-calendar .dayContainer {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .flatpickr-calendar .flatpickr-days {
    overflow-x: auto;
    display: flex;
    flex-wrap: wrap;
  }

  .flatpickr-calendar .dayContainer {
    width: 100% !important;
  }
  */

}

/* Estilos para el calendario en caso de error */
.error-calendario {
    width: 60%;
}

.error-calendario p {
    text-align: center;
    padding: 20px !important;
    margin-top: 15px;
    font-size: 16px;
    margin-bottom: 18px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    background-color: #fcf8e3;
    border: 1px solid #fbeed5;
    border-radius: 4px;
    color: #c09853;
}

/* Clase para ocultar elementos */ 
.ocultar {
  display: none !important; 
  /*
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: -9999px;
  pointer-events: none;
  */
}

/* Estilos para el formulario de reserva/cliente */
#reserva-formulario {
    max-width: 375px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #333;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Estilos para el calendario */
#selector-fecha {
    display: none !important;
}

.calendario-container {
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem;
    box-sizing: border-box;
}

/* Calendario Flatpickr */
.flatpickr-calendar {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 16px;
}

.flatpickr-calendar.inline {
    max-width: 100%;
    width: auto;
    box-shadow: none;
    font-size: 0.9rem;
}

.flatpickr-day {
    min-width: 2rem;
    height: 2rem;
    line-height: 2rem;
}

/* Estilos para los selectores de producto y sesión */
#selector-productbase, #selector-sesion, #selector-privados {    
    height: 50px;
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 1em;
    background-color: #fff;
}

/* Estilos para contenedor de número de personas */
.cliente-item {
  margin-bottom: 1rem;
}

.cliente-nombre {
  font-weight: bold;
  margin-bottom: 0.4rem;
  font-size: 14px;
  color: #444;
}

.cliente-controles {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cliente-precio {
  font-size: 14px;
  color: #666;
}

.cliente-botones {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cliente-botones input[type="number"] {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 14px;
  background: transparent;
}

.cliente-botones button {
  background-color: #eee;
  border: none;
  padding: 0.2rem 0.5rem;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.cliente-botones button:hover {
  background-color: #ddd;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-top: 0.8rem;
}

/* Estilos para el total y botón de reservar */
#contenedor-total {
    text-align: right;
    font-size: 16px;
}

#contenedor-breserva {
    text-align: center;
}

#btn-reservar {
    height: 35px;
    font-size: 1.2em;
}

#btn-reservar:disabled {
  cursor: not-allowed;
}

/* Estilos para el formulario de datos del cliente */
#reserva-datos-cliente {
    max-width: 375px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #333;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

/* Estilos para botones de confirmación y volver atrás */
#btn-confirmar-reserva, #btn-volver-atras {    
    height: 35px;
    font-size: 1.2em;
    margin: 15px 10px;
}

/* Estilos de carga */
.loader-overlay {
  display: none; /* visible solo cuando se active */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.8); /* fondo semitransparente */
  z-index: 50; /* más alto que el resto del contenido */  
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.loader-img {
  width: 85px;
  height: 60px;
}


/* Estilos para productos relacionados */
.contenedor-relacionados { 
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 30px;
	padding-right: 20%;
}

.etiqueta-relacionado {
	text-align:left; 
	color: #000000; 
	font-size: 20px; 
	text-align: left;
}

.producto-relacionado {
	font-size: 20px;
	text-align: left;
	background: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	padding: 10px;
}

.contenedor-info-producto {
	padding: 16px 18px 18px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.nombre-relacionado {
	text-align:left; 
	margin: 10px 0px 6px 0px;
	font-weight:bold;
	font-family: \'Cormorant Garamond\', Georgia, "Times New Roman", serif !important;
}

.contenedor-etiquetas-relacionado {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: #000000ff;
	font-weight: 500;
	margin-top: 20px;
}

.etiqueta-precio {
	float: left;
	color: #000000ff;
	font-size: 15px;
}

.etiqueta-duracion {
	float: right;
	color: #000000ff;
	font-size: 15px;
	display: none;
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 471px) {
  .contenedor-relacionados { 
    grid-template-columns: repeat(1, 1fr) !important;
    padding: 0px 10% !important;
  }
}

@media (max-width: 733px) {
  .contenedor-relacionados { 
    grid-template-columns: repeat(2, 1fr);
    padding: 0px;
  }
}
