:root {
  --green-dark: #152b90;
  --green-light: #01bcf1;
  --accent: #00c3ff;
  --text-dark: #333;
  --text-light: #fff;
  --font: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: #fafafa;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Top Bar */
.top-bar {
  background: var(--green-dark);
  color: var(--text-light);
  font-size: 15px;
  padding: 10px 0;
  text-align: center;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 1px;
}

/* Header */
.main-header {
  background: var(--text-light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: flex-start;
}

.logo img {
  margin-top: -40px;
  height: 100px;
  width: auto;
}

.logo-text h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
}

.logo-text .ham {
  color: var(--green-dark);
}

.logo-text .sil {
  color: var(--green-light);
}

.logo-text p {
  font-size: 14px;
  color: var(--green-dark);
  margin: 0;
}

.logo-text .subtitle {
  font-size: 12px;
  font-style: italic;
  color: var(--green-dark);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--green-light);
}

/* Hospedaje */
.hospedaje {
  padding: 30px 20px;
}

.hospedaje-intro {
  text-align: center;
  margin-bottom: 60px;
}

.hospedaje-intro h1 {
  font-size: 2.5rem;
  color: var(--green-dark);
  margin-bottom: 15px;
}

.hospedaje-intro p {
  font-size: 1.1rem;
  color: #555;
}

/* Bloques de hospedaje */
.hospedaje-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: #f0f4ff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.hospedaje-info h2 {
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.precio {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 15px;
}

.descripcion {
  font-size: 1rem;
  color: #444;
}

/* Carrusel de imágenes */
.carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-images {
  position: relative;
  width: 100%;
  height: 300px; /* Ajusta según el tamaño que quieras */
  overflow: hidden;
}

.carousel-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  border-radius: 15px;
  z-index: 0;
}

.carousel-images img.active {
  opacity: 1;
  z-index: 1;
}

/* Botones redondos */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(21, 43, 144, 0.7);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel:hover button {
  opacity: 1;
}

.carousel .prev {
  left: 10px;
}

.carousel .next {
  right: 10px;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--green-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hospedaje-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hospedaje-info h2 {
    font-size: 1.6rem;
  }


  .descripcion {
    font-size: 0.95rem;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .burger {
    display: block; /* aparece solo en móvil */
  }

  .nav {
    position: absolute;
    top: 70px; /* debajo del header */
    right: 0;
    left: 0; /* ocupa todo el ancho */
    background: var(--text-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    max-height: 0; /* oculto por defecto */
    transition: max-height 0.3s ease;
  }

  .nav ul {
    flex-direction: column;
    padding: 10px 0;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid #eee;
  }

  .nav a {
    display: block;
    padding: 15px;
    color: var(--green-dark);
    font-weight: 600;
  }

  .nav a:hover {
    background: var(--green-light);
    color: var(--text-light);
  }

 .nav.open {
    max-height: 500px; /* nueva altura suficiente para mostrar todos los enlaces */
    transition: max-height 0.3s ease;
  }
}
