html {
  scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f4f7fa;
  color: #2c3e50;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Banner de bienvenida */
#banner {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7);
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 120px;
  height: auto;
  z-index: 2;
}

.banner-text {
  color: #fff;
  z-index: 1;
  animation: fadeIn 2s ease-in;
}

.banner-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.banner-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: #0077b6;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #023e8a;
}


/* Encabezado fijo */
header {
  position: sticky;
  top: 0;
  background: #ffffffee;
  backdrop-filter: blur(6px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  z-index: 10;
}

/* Contenedor interno del header */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* Menú centrado */
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto;
}

/* Íconos alineados al extremo derecho */
.social-icons-header {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 1rem;
}

/* Estilos de enlaces del menú */
nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #0077b6;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #023e8a;
}

/* Estilos de íconos sociales */
.social-icons-header a {
  color: #ffd700;
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
  opacity: 0.8;
}

.social-icons-header a:hover {
  opacity: 1;
}


/* Secciones con difuminación */
.fade-section {
  padding: 3rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

/* Tarjetas */
.habitaciones, .alquileres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;

  transition: transform 1.5s ease, filter 0.5s ease;
  transform: scale(1.01);
}

.card:hover img,
.card:hover h3,
.card:hover p {
  transform: scale(1);
  filter: brightness(1.2);
}

.card:hover {
  box-shadow: 0 0 30px rgba(0, 119, 182, 0.15);
}

.card.vip {
  border: 2px solid gold;
  background: #fffdf5;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #0077b6;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}


/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .banner-text h1 {
    font-size: 2rem;
  }

  .banner-text p {
    font-size: 1rem;
  }

  /* Header responsive */
  header {
    padding: 0.75rem 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .nav-menu a {
    font-size: 0.85rem;
    margin: 0;
  }

  .social-icons-header {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 0.25rem;
  }
}

/* Banner con efecto de difuminación al hacer scroll */
#banner {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}


.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7);
  transform: scale(1.05);
  transition: transform 8s ease-in-out;
}

.banner-bg.zoom-out {
  transform: scale(1);
}



/* Transiciones suaves entre secciones */
.fade-section {
  padding: 3rem 2rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.8s ease forwards;
  animation-delay: 0.5s;
}

/* Iluminación suave en tarjetas */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 119, 182, 0.2);
}

/* Animación de entrada más lenta */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Sección Nosotros */
.nosotros-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nosotros-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.nosotros-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transform: scale(1.05);
  transition: transform 8s ease-in-out;
  z-index: 1;
}

.nosotros-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-width: 900px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nosotros-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ffd700;
}

.nosotros-text p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .nosotros-section {
    height: 100vh;
  }

  .nosotros-bg {
    height: 100vh;
    object-fit: cover;
    transform: scale(1.05);
    filter: brightness(0.7);
  }

  .nosotros-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem;
    width: 90vw;
    max-width: none;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
  }

  .nosotros-text h2 {
    font-size: 1.5rem;
  }

  .nosotros-text p {
    font-size: 1rem;
    line-height: 1.5;
  }
}



/* Responsivo para móviles fin */


/* Fade-through elegante */
@keyframes fadeThrough {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    filter: blur(2px);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.01);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}


/* PIE DE PAGINA  */
.footer {
  background-color: #111;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4rem 1rem 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 3rem; /* Espacio para el formulario */
}


/* Imagen vertical */
.contact-image {
  flex: 1 1 30%;
  height: 400px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Datos de contacto */
.contact-info {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.contact-info h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.contact-info i {
  margin-right: 0.5rem;
  color: #ffd700;
}

/* Mapa */
.map-container {
  flex: 1 1 30%;
  height: 400px;
}

.map-container h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Pie inferior */
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #aaa;
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-image,
  .contact-info,
  .map-container {
    flex: 1 1 100%;
    width: 100%;
  }

  .contact-image {
    height: 220px;
  }

  .map-container {
    height: 260px;
  }

  .contact-info {
    align-items: center;
    text-align: center;
  }

  .contact-logo {
    margin: 0 auto 1rem;
  }
}

/* CARRUSEL DE IMAGENES */

.galeria {
  background-color: #f5f5f5; /* Fondo claro */
  color: #333;
  padding: 2rem 1rem; /* Menos espacio arriba */
  text-align: center;
}

.carousel {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  margin: 2rem auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1;
}

.carousel-item {
  flex: 0 0 33.33%;
  padding: 0.5rem;
  transform: scale(0.9);
  transition: transform 0.3s ease, opacity 0.5s ease;
}

.carousel-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Imagen central resaltada */
.carousel-item.active {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  opacity: 1;

  filter: brightness(1.18);
  transition: filter 0.3s ease;
}

/* Botones sutiles */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #333;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Responsive: solo una imagen en móvil */
@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 100%;
    transform: scale(1); /* Eliminar escala reducida en móvil */
  }

  .carousel-item.active {
    transform: scale(1); /* Sin zoom en móvil, evita desbordamiento */
    box-shadow: none;
  }

  .carousel-item img {
    height: 220px;
  }

  .caption {
    font-size: 0.85rem;
    white-space: normal;
    text-align: center;
    width: 90%;
  }
}

.caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(65, 63, 63, 0.6);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

/* Mostrar solo en imagen activa */
.carousel-item.active .caption {
  opacity: 1;
}




/* FORMULARIO DE RESERVA */

/* Formulario alineado verticalmente */
.formulario-contacto {
  width: 70%;
  margin: 0 auto;
  background-color: #222;
  padding: 2rem;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 1024px) {
  .formulario-contacto {
    width: 85%;
  }
}


.formulario-contacto h3 {
  margin-bottom: 1rem;
  color: #ffd700;
  text-align: center;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formulario-contacto input,
.formulario-contacto select,
.formulario-contacto button {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.formulario-contacto button {
  background-color: #ffd700;
  color: #000;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #e6c200;
  }

.form-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.form-left,
.form-right {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 768px) {
  .formulario-contacto {
    width: 95%;
    padding: 1.25rem;
  }

  .form-columns {
    flex-direction: column;
    gap: 0;
  }

  .form-left,
  .form-right {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* ICONOS REDES SOCIALES */
.social-icons-banner {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.social-icons-header {
  display: flex;
  gap: 1rem;
}

.social-icons-header a,
.social-icons-banner a {
  color: #ffd700;
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
  opacity: 0.8;
}

.social-icons-header a:hover,
.social-icons-banner a:hover {
  opacity: 1;
}

