:root{
  --hh-olive:#6B7B53;
  --hh-olive-700:#566344;
  --hh-sand:#F5F2EA;
  --hh-ink:#222;
  --hh-border:#e7e3d9;
}

/* Fondo general arena */
body{
  background:var(--hh-sand);
  color:var(--hh-ink);
  font-family:'Poppins',sans-serif;
  margin:0;
}

/* -------- NAV -------- */
.menu-principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  max-width: 900px;
  margin: 0 auto;
}
.logo img {
  width: 150px;
  height: auto;
}
.menu-list {
  list-style: none;
  display: flex;
  gap: 30px;
}
.menu-list li a {
  text-decoration: none;
  color: var(--hh-ink);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  padding: 6px 14px;
  border-radius: 999px;
  transition: .3s;
}
.menu-list li a:hover {
  background: var(--hh-sand);
  color: var(--hh-olive);
}

/* -------- GRID -------- */
.grid-alojamientos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}
@media (max-width: 768px) {
  .grid-alojamientos {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
    margin-bottom: 40px;
  }
}

/* -------- CARD -------- */
.card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 500px;
  height: 650px;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel img.slide {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  border-radius: 16px;
}
.card:hover .carousel img.slide.active {
  transform: scale(0.95);
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.5) 100%);
  z-index: 1;
}

/* Contenedor de nombre + capacidad */
.nombre-alojamiento {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  z-index: 2;
  display: flex;
  justify-content: space-between;   /* 👉 nombre a la izquierda, capacidad a la derecha */
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(107, 123, 83, 0.6); /* Verde Happy Host translúcido */
  color: #fff; /* Texto blanco */
}

/* Capacidad (icono + número) */
.capacidad {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff; /* siempre blanco sobre el verde translúcido */
}

.capacidad img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1); /* siempre blanco */
}

/* -------- MOBILE -------- */
@media (max-width: 768px) {
  .carousel {
    height: 220px;
  }
  .card {
    height: auto;
  }
  .nombre-alojamiento {
    font-size: .95rem;
    bottom: 12px;
    padding: 4px 10px;
  }
  .capacidad {
    font-size: .85rem;
    padding: 4px 8px;
  }
}

/* -------- PANTALLA DE CARGA -------- */
.pantalla-carga {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(245, 242, 234, 0.95); /* Arena semitransparente */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--hh-olive);
  border-radius: 50%;
  width: 50px; height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.pantalla-carga p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--hh-olive-700);
  font-weight: 600;
}

.badge-copa {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 100px;
  height: 100px;
}
.badge-copa img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== MENÚ MÓVIL (logo arriba centrado + links centrados debajo) ===== */
@media (max-width: 768px) {
  .menu-principal{
    display: flex;
    flex-direction: column;    /* apila logo y menú */
    align-items: center;
    justify-content: center;
    gap: 6px;                  /* 🔧 distancia entre logo y links */
    padding: 12px 16px;
    max-width: 900px;
    margin: 0 auto;
  }

  .logo{
    display: block;
    text-align: center;
  }
  .logo img{
    width: 140px;              /* tamaño del logo en móvil */
    height: auto;
  }

  .menu-list{
    display: flex;
    justify-content: center;   /* centra horizontalmente */
    align-items: center;
    gap: 18px;                 /* espacio entre INICIO y CONTACTO */
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .menu-list li a{
    font-size: 16px;           /* tamaño del texto en móvil */
    font-weight: 700;
    padding: 6px 8px;          /* menos padding para acercarlos al logo */
    border-radius: 999px;
  }
}


/* WHATSAPP  */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ── Buscador de disponibilidad ──────────────────────────────────── */
.buscador-filtro {
  background: var(--hh-sand);
  border-bottom: 1px solid var(--hh-border);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
}
.buscador-filtro form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 720px;
  width: 100%;
}
.buscador-filtro input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 9px 14px;
  border: 1.5px solid var(--hh-border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  outline: none;
  background: var(--hh-sand);
  cursor: pointer;
}
.buscador-filtro input[type="text"]:focus {
  border-color: var(--hh-olive);
}
.selector-pax {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--hh-sand);
  border: 1.5px solid var(--hh-border);
  border-radius: 8px;
  padding: 7px 10px;
  white-space: nowrap;
}
.selector-pax button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--hh-olive);
  padding: 2px 6px;
  line-height: 1;
}
.selector-pax span {
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  min-width: 88px;
  text-align: center;
  color: var(--hh-ink);
}
.buscador-filtro button[type="submit"] {
  background: var(--hh-olive);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.buscador-filtro button[type="submit"]:hover {
  background: var(--hh-olive-700);
}

/* ── Banner de resultados ─────────────────────────────────────────── */
.banner-busqueda {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--hh-olive);
  color: #fff;
  padding: 10px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
}
.banner-texto { flex: 1; }
.banner-limpiar {
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: .83rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background .2s;
  white-space: nowrap;
}
.banner-limpiar:hover { background: rgba(255,255,255,.3); }

/* ── Precio en tarjeta ───────────────────────────────────────────── */
.nombre-alojamiento {
  flex-wrap: wrap;
}
.card-price {
  flex: 0 0 100%;
  font-size: .75rem;
  font-weight: 400;
  color: rgba(255,255,255,.92);
  text-align: center;
  margin-top: 4px;
  letter-spacing: .01em;
}

/* ── Footer de alojamientos (mismo layout que viajero.html) ─────── */
.footer-aloj {
  background-color: #161616;
  color: #f5f5f5;
  padding: 40px 20px 30px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}
.footer-aloj-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.footer-aloj-columna {
  flex: 1;
  min-width: 200px;
  text-align: center;
}
.footer-aloj img.logo-footer {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
  margin: 0 auto;
}
.footer-aloj-info p {
  margin: 5px 0;
  font-size: 18px;
  color: #cccccc;
}
.footer-aloj-info a { color: #ffffff; text-decoration: underline; }
.footer-aloj-redes a { margin: 0 10px; display: inline-block; }
.footer-aloj-redes img {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1);
  transition: transform .3s ease;
}
.footer-aloj-redes img:hover { transform: scale(1.2); }
.footer-aloj-bottom {
  margin-top: 40px;
  font-size: 18px;
  color: #999999;
  text-align: center;
}

/* ── Mobile responsivo nuevos bloques ────────────────────────────── */
@media (max-width: 768px) {
  .buscador-filtro form { gap: 6px; }
  .buscador-filtro input[type="text"] { min-width: unset; width: 100%; }
  .selector-pax { width: 100%; justify-content: space-between; }
  .buscador-filtro button[type="submit"] { width: 100%; }
  .banner-busqueda { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 16px; }
  .footer-aloj-inner { flex-direction: column; align-items: center; gap: 20px; }
}

/* ═══════════════════════════════════════════════════════
   REDISEÑO — nuevos bloques
   ═══════════════════════════════════════════════════════ */

:root {
  --olive: #6B7D5C;
  --dark:  #2F3E2F;
  --terra: #C97A5A;
  --terra-lt: #E6B399;
  --cream: #F5F3EF;
}

body { font-family: 'Inter', 'Poppins', sans-serif; }

/* ── HEADER ───────────────────────────────────────────── */
.header-aloj {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  padding: 0 48px; height: 72px;
  display: flex; align-items: center;
}
.header-inner {
  width: 100%; max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-aloj img { height: 48px; width: auto; display: block; filter: brightness(0) invert(1); }
.menu-aloj { list-style: none; display: flex; align-items: center; gap: 36px; }
.menu-aloj a {
  color: rgba(255,255,255,.8); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; transition: color .2s;
}
.menu-aloj a:hover, .menu-aloj a.activo { color: #fff; }

/* ── HERO MINI ────────────────────────────────────────── */
.hero-aloj {
  background: var(--dark); padding: 48px 48px 44px; text-align: center;
}
.hero-aloj-eyebrow {
  font-size: .78rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--terra-lt); margin-bottom: 10px;
}
.hero-aloj-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: #fff;
}

/* ── BUSCADOR ─────────────────────────────────────────── */
.buscador-aloj-wrap {
  background: var(--dark); padding: 0 48px 32px;
  display: flex; justify-content: center;
}
.buscador-aloj {
  background: #fff; border-radius: 16px;
  display: flex; align-items: center;
  padding: 6px 6px 6px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  max-width: 860px; width: 100%; overflow: hidden;
}
.baloj-col { flex: 1; padding: 12px 20px; cursor: pointer; border-radius: 12px; transition: background .15s; }
.baloj-col:hover { background: #f5f3ef; }
.baloj-fechas { display: flex; align-items: center; position: relative; }
.baloj-subcol { flex: 1; padding: 4px 10px; }
.baloj-vline { width: 1px; height: 32px; background: #e0ddd6; flex-shrink: 0; }
.baloj-label { display: block; font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: #999; margin-bottom: 3px; }
.baloj-val { display: block; font-size: .9rem; color: #aaa; font-weight: 500; white-space: nowrap; }
.baloj-val.tiene-valor { color: #1E2B1E; }
.rango-fechas-hidden { position: absolute; bottom: 0; left: 0; width: 100%; height: 0; opacity: 0; pointer-events: none; border: none; }
.baloj-sep { width: 1px; height: 36px; background: #e0ddd6; flex-shrink: 0; }
.baloj-huespedes { display: flex; flex-direction: column; min-width: 160px; }
.baloj-pax { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.baloj-pax-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #ccc;
  background: transparent; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #222;
  transition: border-color .2s, color .2s;
}
.baloj-pax-btn:hover { border-color: var(--olive); color: var(--olive); }
.baloj-pax-val { font-size: .9rem; font-weight: 500; min-width: 44px; text-align: center; color: #aaa; }

/* Integración del selector de huéspedes con el buscador de alojamientos */
.aloj-hu-container .hh-hu { width: 100%; }
.aloj-hu-container .hh-hu__val {
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: #222;
}
.aloj-hu-container .hh-hu__chev { display: none; }

.baloj-btn {
  flex-shrink: 0; background: var(--olive); color: #fff; border: none;
  border-radius: 12px; padding: 14px 26px; font-family: 'Inter', sans-serif;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  margin: 4px 4px 4px 8px; transition: background .2s; white-space: nowrap;
}
.baloj-btn:hover { background: var(--dark); }

/* ── FILTROS CATEGORÍA ────────────────────────────────── */
.filtros-categoria {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 28px 48px 0;
}
.filtro-btn {
  background: transparent; border: 1.5px solid #ccc; border-radius: 24px;
  padding: 8px 20px; font-family: 'Inter', sans-serif; font-size: .82rem;
  font-weight: 500; cursor: pointer; color: #666; transition: all .2s;
}
.filtro-btn:hover { border-color: var(--olive); color: var(--olive); }
.filtro-btn.activo { background: var(--olive); border-color: var(--olive); color: #fff; }

/* ── CARD — nuevo layout ──────────────────────────────── */
.card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(47,62,47,.07);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(47,62,47,.14); }
.card .carousel { width: 100%; aspect-ratio: 4/3; height: auto !important; flex-shrink: 0; }

/* Badge logo top-right */
.card-badge-logo {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 5 !important;
  width: 160px !important;
  height: auto !important;
  object-fit: unset !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
}

/* Filtro categoría y capacidad — ocultar cards */
.card.cat-hidden,
.card.pax-hidden {
  display: none !important;
}

/* Badge categoría bottom-left */
.card-cat-badge {
  position: absolute; bottom: 12px; left: 12px; z-index: 4;
  background: rgba(47,62,47,.80); backdrop-filter: blur(6px);
  color: #fff; font-family: 'Inter', sans-serif; font-size: .82rem;
  font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
}


/* Card info section below image */
.card-info {
  padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1;
}
.card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.card-titulo {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; color: #1E2B1E;
}
.card-pax {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: #888; font-family: 'Inter', sans-serif; white-space: nowrap;
}
.card-pax img { width: 14px; height: 14px; opacity: .5; filter: brightness(0); }
.card-desc { font-size: .82rem; color: var(--olive); line-height: 1.55; margin-bottom: 10px; flex: 1; }
.card-amenity-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 12px; }
.card-amenity-icons img { width: 24px; height: 24px; object-fit: contain; opacity: .82; display: block; flex: 0 0 24px; }
.card-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(47,62,47,.08); padding-top: 12px;
}
.card-precio-label {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .92rem; font-weight: 700; color: #1E2B1E;
}
.card-noche { font-size: .78rem; font-weight: 400; color: #999; }
.card-ver { font-size: .8rem; font-weight: 600; color: var(--olive); }

/* ── GRID ajuste ──────────────────────────────────────── */
.grid-alojamientos {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  padding: 24px 48px 80px !important;
  max-width: 1300px !important;
}
.seccion-alojamientos { max-width: 1300px; margin: 0 auto; }

/* ── FOOTER NUEVO ─────────────────────────────────────── */
.footer-nuevo {
  background: var(--dark); color: rgba(255,255,255,.75);
  padding: 56px 48px 32px; text-align: center;
}
.footer-nuevo-contenido {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: flex-start; gap: 32px 64px;
}
.footer-nuevo-logo img { height: 80px; width: auto; filter: brightness(0) invert(1); }
.footer-nuevo-info { font-family: 'Inter', sans-serif; font-size: .85rem; line-height: 2; }
.footer-nuevo-info a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.footer-nuevo-info a:hover { color: #fff; }
.footer-nuevo-redes { display: flex; gap: 16px; align-items: center; }
.footer-nuevo-redes img {
  height: 32px; width: auto; filter: brightness(0) invert(1);
  opacity: .7; transition: opacity .2s, transform .2s;
}
.footer-nuevo-redes img:hover { opacity: 1; transform: scale(1.1); }
.footer-nuevo-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-nuevo-nav a {
  color: rgba(255,255,255,.55); text-decoration: none;
  font-size: .85rem; font-family: 'Inter', sans-serif; transition: color .2s;
}
.footer-nuevo-nav a:hover { color: #fff; }
.footer-nuevo-bottom { margin-top: 20px; font-size: .78rem; color: rgba(255,255,255,.28); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-alojamientos { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .header-aloj { padding: 0 20px; }
  .menu-aloj { display: none; }
  .hamburger-btn { display: flex !important; }
  .hero-aloj, .buscador-aloj-wrap { padding-left: 20px; padding-right: 20px; }
  .buscador-aloj { flex-direction: column; align-items: stretch; padding: 8px; }
  .baloj-sep { display: none; }
  .baloj-btn { margin: 4px 0 0; width: 100%; }
  .filtros-categoria { padding-left: 16px; padding-right: 16px; }
  .grid-alojamientos { grid-template-columns: 1fr !important; padding: 16px !important; }
  .footer-nuevo { padding: 40px 20px 24px; }
}

/* ── HAMBURGER BUTTON (alojamientos) ─────────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY (alojamientos) ──────────────────────────────────── */
.mob-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.55);
}
.mob-menu-overlay.open { display: block; }
.mob-menu-nav {
  position: absolute;
  top: 0; right: 0;
  width: 72%;
  max-width: 280px;
  height: 100%;
  background: #2F3E2F;
  padding: 72px 28px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mob-menu-nav li { list-style: none; }
.mob-menu-nav a {
  display: block;
  padding: 15px 0;
  color: #fff;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
