/* === ESTILOS GENERALES DEL BODY === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;
  background: #fff url('../img/fondoGeneral4.jpg') no-repeat center/cover fixed; /* Combinado propiedades background */
  overflow-x: hidden;
}

/* === HEADER ESTILOS GENERALES === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* === NAVBAR === */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 30px;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* === MENÚ NORMAL (ESCRITORIO) === */
nav ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

nav ul li {
  margin: 0 25px;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 8px rgba(255, 255, 255, 0.3);
  transition: color 0.3s, text-shadow 0.3s; /* Combinado transiciones */
}

nav ul li a:hover {
  color: #ffcc00;
  text-shadow: 5px 5px 15px rgba(255, 204, 0, 0.8);
}

/* Línea decorativa debajo de cada enlace */
nav ul li::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: #ffcc00;
  margin-top: 5px;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Combinado transiciones */
}

nav ul li:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* === MENÚ HAMBURGUESA === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1500;
}

.menu-toggle div {
  width: 100%;
  height: 5px;
  background: #000;
  border-radius: 5px;
  transition: all 0.4s ease;
}

/* Animación para convertir en "X" */
.menu-toggle.active div:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active div:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active div:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* === ÍCONO DEL MENÚ === */
.menu-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  transition: transform 0.3s ease;
}

.menu-icon:hover {
  transform: scale(1.1);
}

.icon-item {
  margin-top: 20px;
}

/* === RESPONSIVIDAD MENÚ E ÍCONOS === */
@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -1000vw;
    width: 70%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding-top: 80px;
    z-index: 1000;
    transition: right 0.5s ease-in-out;
  }

  nav ul.active {
    right: -77vw;
  }

  nav ul li {
    margin: 20px 0;
  }

  nav ul li a {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
  }

  nav ul li a:hover {
    color: #f8b400;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-icon {
    width: 40px;
    height: 40px;
  }

  .icon-item {
    margin: 30px 0;
  }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Carrusel de Fondo (Desplazamiento Lateral) */
.inicio-con-carrusel {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.carousel-images {
  display: flex;
  width: 280%;
  height: 100%;
  animation: slide 15s infinite;
}

.carousel-images img {
  width: 40%;
  height: 100vh;
  object-fit: cover;
}

/* Overlay de Texto (Hostal Queen) */
.overlay1 {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  padding: 100px;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 80px;
  color: #ffcc00;
  text-shadow: 15px 15px 12px rgb(255, 255, 139);
  animation: heartbeat 1.5s infinite;
  z-index: 2;
}

@keyframes heartbeat {
  0%, 50%, 100% { transform: translateY(-50%) scale(1); }
  30%, 70% { transform: translateY(-50%) scale(1.1); }
}

/* Carrusel 3D (Rotación Circular) */
.carousel-container {
  position: absolute;
  right: 20%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  max-width: 600px;
  z-index: 2;
}

.carousel {
  width: 300px;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCarousel 15s infinite linear;
}

.carousel img {
  width: 200px;
  height: 280px;
  border-radius: 15px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotateY(var(--rotate-angle)) translateZ(300px);
  transition: transform 1s;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  -webkit-box-reflect: below 5px linear-gradient(transparent, rgba(255, 255, 255, 0.3));
  filter: brightness(1.1) contrast(1.1);
}

/* Animaciones */
@keyframes slide {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-20%); }
  50%, 70% { transform: translateX(-40%); }
  75%, 95% { transform: translateX(-60%); }
  100% { transform: translateX(-80%); }
}

@keyframes rotateCarousel {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* Responsividad Hero */
@media (max-width: 768px) {
  .hero {
    height: 100vh;
    flex-direction: column;
    justify-content: center;
  }

  .carousel-images img {
    height: 100vh;
  }

  .overlay1 {
    left: 30%;
    transform: translate(-50%, -50%);
    top: 20%;
    font-size: 50px;
    padding: 50px;
    display: block;
  }

  .carousel-container {
    right: auto;
    top: 60%;
    transform: translateY(-50%);
    max-width: 90%;
  }

  .carousel {
    width: 200px;
    height: 300px;
  }

  .carousel img {
    width: 150px;
    height: 210px;
    transform: translate(-50%, -50%) rotateY(var(--rotate-angle)) translateZ(200px);
  }
}

/* === SECCIÓN DE BIENVENIDA === */
.seccion-bienvenida {
  padding: 50px 20px;
  text-align: center;
}

.titulo-bienvenida {
  font-size: 2.5em;
  font-weight: bold;
  color: #2e0145;
}

.texto-bienvenida {
  font-size: 1.2em;
  color: #2e0145;
}

.linea-decorativa {
  width: 50%;
  height: 5px;
  background: #2e0145;
  border: none;
  margin: 10px auto;
}

.descripcion-bienvenida {
  max-width: 800px;
  margin: auto;
  font-size: 1em;
  line-height: 1.6;
  color: #111;
}

/* Responsividad Sección Bienvenida */
@media (max-width: 768px) {
  .titulo-bienvenida {
    font-size: 2em;
  }

  .texto-bienvenida {
    font-size: 1em;
  }

  .linea-decorativa {
    width: 70%;
    height: 4px;
  }

  .descripcion-bienvenida {
    font-size: 0.95em;
    padding: 0 15px;
  }
}

/* === VIDEO === */
.video-container {
  width: 90%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #fff;
  display: flex;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  margin: 40px auto 0;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sound-button:hover {
  background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
  .video-container {
    width: 95%;
    border-radius: 10px;
  }

  .sound-button {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* === CARRUSEL DE TEXTO === */
.contenedor-carrusel {
  background: #000;
  padding: 40px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin-top: 30px;
}

.carrusel-texto {
  display: inline-block;
  white-space: nowrap;
  animation: animacion-carrusel 18s linear infinite;
}

.carrusel-item {
  display: inline-block;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  margin-right: 30px;
}

@keyframes animacion-carrusel {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* === TÍTULOS Y DESCRIPCIONES === */
.text-center {
  color: #000;
  text-align: center;
}

.titulo-seccion {
  font-size: 2.5em;
  font-weight: bold;
  color: #000;
  text-align: center;
  margin-top: 30px;
}

.descripcion-seccion {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #000;
  padding: 0 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .descripcion-seccion {
    font-size: 1em;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .descripcion-seccion {
    font-size: 0.9em;
    max-width: 95%;
  }
}

/* === CONTENEDOR DE HABITACIONES === */
.contenedor-habitaciones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 20px;
}

.tarjeta-habitacion {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 370px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
}

.tarjeta-habitacion:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.imagen-habitacion {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.contenido-habitacion {
  padding: 20px;
  text-align: left;
}

.titulo-habitacion {
  background: #000;
  color: #fff;
  padding: 8px 15px;
  border-radius: 10px;
  font-weight: bold;
  display: inline-block;
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 1.1em;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.descripcion-habitacion {
  font-size: 1em;
  color: #444;
  line-height: 1.5;
  margin-top: 15px;
}

/* Responsividad Habitaciones */
@media (max-width: 768px) {
  .contenedor-habitaciones {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-habitacion {
    width: 90%;
  }

  .imagen-habitacion {
    height: 200px;
  }

  .titulo-habitacion {
    font-size: 1em;
    padding: 6px 12px;
  }

  .contenido-habitacion {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .tarjeta-habitacion {
    width: 100%;
  }

  .imagen-habitacion {
    height: 180px;
  }

  .titulo-habitacion {
    font-size: 0.9em;
  }

  .descripcion-habitacion {
    font-size: 0.9em;
  }
}

/* === SECCIÓN TU ESCAPADA === */
.tu-escape {
  text-align: center;
  padding: 50px 20px;
  background: #e7e6e6;
  position: relative;
}

.tu-escape-titulo {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #888787, #000);
  margin-bottom: 10px;
}

.tu-escape-titulo:hover {
  background: linear-gradient(90deg, #000, #888787);
}

.tu-escape-subtitulo {
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 20px;
}

.tu-escape-boton {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #000, #e2e2e2);
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.tu-escape-boton:hover {
  background: linear-gradient(90deg, #e2e2e2, #000);
  transform: scale(1.05);
}

/* === SERVICIOS === */
.service-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.service-item {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.service-item img {
  width: 80px;
  height: 80px;
}

.netflix-text { color: #E50914; }
.iptv-text { color: #007BFF; }
.wifi-text { color: #28A745; }

@media (max-width: 768px) {
  .service-container {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 120px;
    height: 120px;
  }

  .service-item img {
    width: 60px;
    height: 60px;
  }
}

/* === GALERÍA === */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  height: 100vh;
  padding: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(141, 141, 237, 0.6);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.close, .prev, .next {
  position: absolute;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}

.close { top: 10px; right: 20px; }
.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Responsividad Galería */
@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    height: auto;
    width: 90%;
    margin: auto;
  }
}

/* === OPINIONES === */
.opiniones-titulo {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.opiniones-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #e1e1e1;
}

.opiniones-slider {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 600px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.opiniones-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background 0.5s ease-in-out;
  filter: brightness(0.6);
}

.opiniones-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 2;
  width: 40%;
}

.opiniones-content h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.opiniones-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

#opiniones-contacto {
  display: none;
}

.opiniones-carousel {
  position: absolute;
  right: 1%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
}

.opiniones-img {
  width: 150px;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.3s ease-in-out;
}

.opiniones-img:hover {
  opacity: 1;
}

.opiniones-controles {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.opiniones-controles button {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}

.opiniones-controles button:hover {
  background: #fff;
}

/* Responsividad Opiniones */
@media (max-width: 1024px) {
  .opiniones-slider {
    height: 500px;
  }

  .opiniones-content {
    width: 50%;
  }

  .opiniones-content h1 {
    font-size: 24px;
  }

  .opiniones-content p {
    font-size: 14px;
  }

  .opiniones-carousel {
    gap: 5px;
  }

  .opiniones-img {
    width: 70px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .opiniones-slider {
    height: 400px;
    flex-direction: column;
  }

  .opiniones-content {
    width: 90%;
    text-align: center;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
  }

  .opiniones-carousel {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
  }

  .opiniones-img {
    width: 60px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .opiniones-slider {
    height: 350px;
  }

  .opiniones-content {
    top: 15%;
  }

  .opiniones-content h1 {
    font-size: 20px;
  }

  .opiniones-content p {
    font-size: 12px;
  }

  .opiniones-img {
    width: 50px;
    height: 80px;
  }

  .opiniones-controles button {
    font-size: 16px;
    padding: 5px 10px;
  }
}