/* ---------------------------
   ESTILOS GENERALES
---------------------------- */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

/* ---------------------------
   HERO SECTION Y SLIDER
---------------------------- */
.hero {
    position: relative;
    height: 100vh;
    overflow: visible;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
}

.slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
    width: 90%;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero-text .btn {
    background: #25D366;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.hero-text .btn:hover {
    background: #1ebe5d;
}

/* ---------------------------
   BOTÓN GENERAL
---------------------------- */
.btn {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* ---------------------------
   NAVBAR RESPONSIVE
---------------------------- */
.navbar {
    background-color: #111;
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.logo a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

/* ÍCONO HAMBURGUESA */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Ocultar checkbox */
#menu-toggle {
    display: none;
}

/* Enlaces del menú */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #111;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    #menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}

/* ---------------------------
   FORMULARIOS
---------------------------- */
.form-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
    background: #f2f2f2;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-container form {
    display: flex;
    flex-direction: column;
}

.form-container label {
    margin: 10px 0 5px;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"],
.form-container input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-container input[type="checkbox"] {
    margin-right: 10px;
}

.form-container button {
    margin-top: 20px;
    padding: 10px;
    background: #25D366;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.form-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ---------------------------
   FOOTER
---------------------------- */
.footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-link {
    color: #ff9900;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.availability-box {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 15;
    max-width: 1000px;
    width: 90%;
}


.availability-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.availability-form .form-group {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
}

.availability-form label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.availability-form input[type="date"],
.availability-form select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.availability-form button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.availability-form button:hover {
    background-color: #1ebe5d;
}

/* Responsivo */
@media (max-width: 768px) {
    .availability-form {
        flex-direction: column;
        align-items: stretch;
    }

    .availability-form .form-group {
        width: 100%;
    }

    .availability-box {
        padding: 20px;
        bottom: -20px;
    }
}

.info {
    margin-top: -70px;
    text-align: center;
    padding: 40px 20px;
}

.dropdown-group {
    position: relative;
}

/* Botón principal visible */
.guest-toggle {
    border: 1px solid #ccc;
    padding: 10px 14px;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dropdown desplegable */
.dropdown {
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    position: absolute;
    top: 110%;
    left: 0;
    width: 280px;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

/* Botones + y - */
.counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter button {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    color: #000; /* signos visibles */
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.counter .count {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

.servicios {
    background-color: #f1f1f1;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.servicio {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.servicio img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1); /* blanco */
}

.servicio p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #003c61;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Activación de fade-in */
.servicio.visible {
    opacity: 1;
    transform: translateY(0);
}

.servicio i {
    font-size: 3rem;           /* Ícono más grande */
    color: #003c61;            /* Color que ya estás usando */
    margin-bottom: 20px;       /* Espacio entre ícono y texto */
}

.servicio p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #003c61;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.espacios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 60px 20px;
    background-color: #f7f7f7;
}

.espacio {
    background-size: cover;
    background-position: center;
    height: 250px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.espacio:hover {
    transform: scale(1.02);
}

.espacio .overlay {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.espacio h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.ver-mas {
    background: #ff9900;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}


.espacio h3 {
    margin: 0;
    font-size: 1.2rem;
}

.ver-mas {
    background: #ff9900;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    max-width: 900px;
    width: 90%;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-height: 90vh;
    box-sizing: border-box;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content .cerrar {
    position: absolute;
    top: 30px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
}

.galeria-imagenes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.galeria-imagenes img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
}

.swiper-container {
    width: 100%;
    max-width: 900px;
    margin-top: 30px;
    position: relative;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    width: 100%;
    height: auto;
    text-align: center;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.swiper-thumbs {
    margin-top: 15px;
    padding: 10px 0;
    overflow-x: auto;
    max-width: 900px;
}

.swiper-thumbs .swiper-slide {
    width: 100px;
    height: 60px;
    opacity: 0.4;
    cursor: pointer;
}

.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #ff9900;
}

.modal-gallery {
  position: relative;
  overflow: hidden; /* <--- Agregado */
}

.modal-gallery .main-image {
  width: 100%;
  max-height: 55vh; /* <--- Ajustado desde 400px */
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .modal-content {
    max-height: 95vh;  /* ya lo tienes, pero mantenlo */
    padding: 20px;
  }

  .modal-gallery .main-image {
    max-height: 50vh;  /* más compacto en móviles */
  }

  .modal-gallery .thumbnails {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .modal-gallery .thumbnails img {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
    .espacios {
        grid-template-columns: 1fr;
    }
}

input[name="checkin"].flatpickr-input,
input[name="checkout"].flatpickr-input {
    background-color: white;
    border: 1px solid #ccc;
    padding: 8px 10px;
    font-size: 1rem;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

input[name="checkin"].flatpickr-input {
    background-image: url('https://cdn-icons-png.flaticon.com/512/747/747310.png');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 35px;
}

.exterior-details-section {
  position: relative;
  background-image: url('https://sunsetandbeach.com/images/back1.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 60px 20px;
}

.exterior-details-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 29, 79, 0.85); /* Capa de color con transparencia */
  z-index: 1;
}

.exterior-details-section .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  flex-wrap: wrap;
}

.text-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.text-content h2 {
  font-size: 2em;
  margin-bottom: 15px;
}

.text-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.text-content ul {
  list-style: none;
  padding: 0;
}

.text-content li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.text-content strong {
  color: #ffffff;
}

.image-content {
  flex: 1 1 40%;
  min-width: 280px;
  text-align: center;
}

.image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
