/* 🌥️ Estilo de navbar tipo nube */
.navbar-nube {
  background: #ffffff;
  border-radius: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  padding: 0.5rem 2rem;
  max-width: 1000px;
  overflow: hidden;
  z-index: 100;
}

.navbar-nube {
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.navbar-nube.fixed-top {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  animation: flotar 5s ease-in-out infinite alternate;
}

@keyframes flotar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(5px);
  }
}

/* Bordes ondulados suaves (simulan nubes) */
.navbar-nube::before, .navbar-nube::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.9) 20%, transparent 21%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.9) 20%, transparent 21%), radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9) 25%, transparent 26%);
  background-size: 60px 60px;
  top: -40%;
  left: -50%;
  z-index: 0;
  opacity: 0.6;
}

.navbar .nav-link {
  color: #444;
  font-weight: bolder;
  position: relative;
  z-index: 1;
  font-size: 1rem;
}

.navbar .nav-link:hover {
  color: #4b6352;
}

.navbar-brand {
  font-weight: 700;
  color: #4b6352 !important;
  z-index: 1;
}

/* Quitar el fondo del botón del menú */
.navbar-toggler {
  border: none;
  z-index: 2;
}

.navbar-toggler:focus {
  box-shadow: none;
}

body {
  background: white;
  font-family: "Raleway";
  font-size: 14px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  font-family: Arial, Helvetica, sans-serif;
}

/*--------------------------------------------------------------------
----------------------SECCION 1 (Carrusel)----------------------------
---------------------------------------------------------------------*/
/* Asegúrate que las imágenes del carrusel no tengan z-index alto */
#carruselFiesta .carousel-item img {
  height: 50vh; /* o el valor que quieras */
  -o-object-fit: cover;
     object-fit: cover;
  filter: brightness(0.45);
  display: block;
  width: 100%;
  z-index: 1;
  position: relative;
}

.borde-rasgado {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px; /* 🔹 este solapa la imagen para tapar el corte */
  z-index: 5;
  height: 200px;
  pointer-events: none;
  overflow: hidden;
}

.borde-rasgado svg {
  width: 100%;
  height: 100%;
  display: block;
}

#carruselFiesta {
  position: relative;
  overflow: hidden; /* evita que se vea borde recto */
}

/* Si quieres sombra para destacar el corte */
.borde-rasgado svg path {
  filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.12));
}

/*--------------------------------------------------------------------
----------------------SECCION 2 (Sobre Nosotros)----------------------
---------------------------------------------------------------------*/
#sobre-nosotros {
  margin-top: 10px;
  opacity: 0;
  transform: translateY(40px);
  animation: aparecer 1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.titulo-seccion {
  font-size: 2rem;
  color: #4b6352e3;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
}

.descripcion-seccion {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #444;
}

.galeria-fotos{
  margin: 100px auto;
}

.hover-zoom {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.hover-zoom:hover {
  transform: scale(1.05);
}

/*--------------------------------------------------------------------
----------------------SECCION 3 (Parallax)----------------------------
---------------------------------------------------------------------*/

/* 🌈 Sección con efecto parallax */
.hero-parallax {
  margin-top: 50px;
  position: relative;
  height: 40vh; /* ocupa toda la altura de la ventana */
  background-image: url('../img/jungla.jpg'); /* cambia por tu imagen */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* 🔥 este es el efecto parallax */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

/* Fondo con efecto parallax real */
.hero-parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/jungla.jpg');
  background-size: cover;
  background-position: center center;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.1s linear;
  z-index: 0;
}

/* 🩵 Fondo semitransparente para mejorar legibilidad del texto */
.hero-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* oscurece ligeramente la imagen */
  z-index: 1;
}

/* ✨ Texto centrado */
.hero-texto {
  position: relative;
  z-index: 2;
}

.hero-texto h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.boton-reservar{
  display: inline-block;
  text-decoration: none;
  background-color: #ffffff;      /* color base */
  color: #444;
  border: none;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 
    transform 0.3s ease, 
    box-shadow 0.3s ease, 
    background-color 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 255, 255, 0); /* sin brillo al inicio */
}

/* 🌟 Efecto al pasar el ratón */
.boton-reservar:hover {
  color: white;
  transform: scale(1.08); /* crece suavemente */
  background-color: #4b6352; /* color un poco más brillante */
  box-shadow: 
    0 0 30px rgba(35, 99, 74, 0.6),
    0 0 45px rgba(3, 116, 71, 0.6); /* efecto de brillo */
}

.boton-contactar{
    display: inline-block;
  text-decoration: none;
  background-color: #4b6352;      /* color base */
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 
    transform 0.3s ease, 
    box-shadow 0.3s ease, 
    background-color 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 255, 255, 0); /* sin brillo al inicio */
}

/* 🌟 Efecto al pasar el ratón */
.boton-contactar:hover {
  color: white;
  transform: scale(1.08); /* crece suavemente */
  background-color: #4b6352d2; /* color un poco más brillante */
  box-shadow: 
    0 0 30px rgba(4, 53, 35, 0.342),
    0 0 45px rgba(2, 58, 36, 0.37); /* efecto de brillo */
}

/*--------------------------------------------------------------------
----------------------SECCION 4 (Precios)-----------------------------
---------------------------------------------------------------------*/

.precio-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.precio-card:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Franja superior con el título (40%) */
.card-title-header {
  height: 40%;
  background-color: #4b6352d2;
  color: white;
  text-align: center;
}

.card-title-header h3 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.5rem;
  padding: 10px;
}

/* Parte inferior con precios (60%) */
.precio-info {
  flex: 1;
  background-color: #f9f9f9; /* color claro */
}

.precio-info li {
  font-size: 1.1rem;
  margin: 10px 0;
}

/*--------------------------------------------------------------------
---------------------- FOOTER CON DECORACIÓN ONDULADA ----------------
---------------------------------------------------------------------*/

footer {
    /* He ajustado el color para que destaque mejor la decoración blanca */
    background-color: #54755e; 
    color: white;
    font-family: Arial, sans-serif;
    padding: 20px 0 0 0;
    
    /* 🔴 CRUCIAL PARA EL EFECTO: */
    position: relative; 
    overflow: hidden; 
}

/* --- CAPAS DECORATIVAS (Z-INDEX) --- */

/* 1. El contenido real (texto/mapa) va encima */
.footer-content {
    position: relative;
    z-index: 2; 
}

/* 2. El contenedor de las líneas va detrás */
.footer-bg-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Nivel bajo */
    pointer-events: none; /* Click traspasa */
}

/* --- ESTILOS DE LAS LÍNEAS (AMEBAS) --- */
.f-linea {
    position: absolute;
    border: 5px solid rgba(255, 255, 255, 0.15); /* Blanco transparente */
    border-radius: 40%; /* Base redondeada */
}

/* Forma 1: Grande esquina superior izq */
.f-linea-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -150px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: rotate(-15deg);
    border-width: 5px;
    opacity: 0.6;
}

/* Forma 2: Grande esquina inferior dcha */
.f-linea-2 {
    width: 900px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    border-radius: 30% 70% 50% 50% / 30% 30% 70% 70%;
    border-color: rgba(255, 255, 255, 0.08); 
}

/* Forma 3: Pequeña flotando */
.f-linea-3 {
    width: 500px;
    height: 300px;
    top: 50px;
    right: 20%;
    border-radius: 64% 36% 27% 73% / 70% 65% 35% 30%;
    border: 4px solid rgba(255, 255, 255, 0.048);
}

/* --- ESTILOS INTERNOS DEL FOOTER --- */

/* Contenedor Principal de 2 Columnas */
.footer-info {
    margin-top: 20px;
    padding-bottom: 40px;
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 40px;
}

.footer-column {
    padding: 0 20px;
    flex: 1 1 100%; 
    margin-bottom: 30px; 
}

.mapa-wrapper iframe{
  border-radius: 10px;
  /* Sombra para separar el mapa del fondo */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}

/* Títulos con Línea Corta */
.title-with-line {
    font-size: 2rem;
    margin-top: 30px; 
    margin-bottom: 30px; 
    font-weight: 600;
    color: white; 
    position: relative; 
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgb(255, 255, 255);
    text-decoration-thickness: 5px;
    text-decoration-style: solid;
    text-underline-offset: 10px; 
}

.contact-link {
    color: white; 
    font-size: 1.1rem; 
    text-decoration: none; 
    display: inline-block; 
    transition: color 0.2s, transform 0.2s;
}

.contact-link:hover {
    color: #d6d6d6; 
    transform: scale(1.1);
}

.contact-details p {
    margin: 0;
}

.contact-icon {
    font-size: 2rem; 
    margin-right: 8px;
    vertical-align: middle;
}

/* === COPYRIGHT BAR === */
.copyright-bar {
    padding-top: 15px;
    padding-bottom: 30px; /* Ajustado */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-bar p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/*--------------------------------------------------------------------
----------------------📱 Responsive ----------------------------------
---------------------------------------------------------------------*/
@media (max-width:1020px) {
  .contact-link {
    font-size: 0.9rem; 
  }
}

@media (max-width: 768px) {

  .borde-rasgado {
    height: 80px;
  }

  .hero-parallax {
    margin-top: 100px;
  }

  .footer-info {
    display: block;
  }

  .footer-info .col {
    margin-bottom: 50px;
  }

  .footer-info h3 {
    text-align: center;
  }

  .footer-info p {
    margin: 5px 20px;
  }

  .hero-parallax {
    background-attachment: scroll; /* ya no “fixed” */
    background-position: center;
  }

  .hero-texto h1 {
    font-size: 2rem;
  }

  .map-col, .contact-flow-container {
      flex: 0 0 100%;
      max-width: 100%;
      padding-top: 20px; 
  }
}

@media (min-width: 768px) {

    .map-col {
        flex: 0 0 calc(50% - 20px); /* 50% menos la mitad del gap */
        max-width: calc(50% - 20px); 
        margin-bottom: 0; 
    }
    
    .contact-flow-container { 
        flex: 0 0 calc(50% - 20px); /* 50% menos la mitad del gap */
        max-width: calc(50% - 20px);
        padding-top: 0; 
        margin-bottom: 0; 
    }

    .contact-flow-container {
        padding-left: 40px; /* Aumentamos el padding para el contenido interno */
    }
}