/* Paleta WeekendAr — definida sobre las referencias visuales que armaron
   Belen y Ale: verde bosque como color de marca (no el azul de la
   referencia de formato, ese solo marcaba la estructura), coral para
   las acciones principales. */
:root {
  --verde: #2d4d41;
  --verde-oscuro: #203a30;
  --verde-claro: #dff0ea;
  --coral: #ea8069;
  --coral-oscuro: #d96b52;
  --texto: #1f1f1f;
  --texto-claro: #ffffff;
  --texto-suave: #6b7280;
  --fondo: #f7f7f5;
  --borde: #e5e2dc;
  --radio: 10px;
  --sombra: 0 2px 10px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ============================================
   HEADER
   ============================================ */

.sitio-header {
  background: var(--verde);
  color: var(--texto-claro);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sitio-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--texto-claro);
}

.sitio-header .logo .logo-icono {
  font-size: 1.4rem;
}

.sitio-header .logo img {
  height: 64px;
  width: auto;
}

.sitio-header .logo-texto {
  font-size: 1.5rem;
  font-weight: 700;
}

.sitio-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sitio-header nav a {
  color: var(--texto-claro);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.sitio-header nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.sitio-header .sesion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sitio-header .sesion-usuario {
  font-size: 0.9rem;
  max-width: 45vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primario {
  background: var(--coral);
  color: var(--texto-claro);
}

.btn-primario:hover {
  background: var(--coral-oscuro);
}

.btn-secundario {
  background: transparent;
  color: var(--texto-claro);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-secundario:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ancho-completo {
  display: block;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   CONTENIDO
   ============================================ */

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.tarjeta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 1.25rem;
}

.carrusel-flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  padding: 0;
  margin: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel-flecha:hover {
  background: rgba(0, 0, 0, 0.65);
}

.carrusel-flecha-izq {
  left: 0.75rem;
}

.carrusel-flecha-der {
  right: 0.75rem;
}

/* ============================================
   FORMULARIOS
   ============================================ */

.formulario {
  max-width: 420px;
  margin: 2rem auto;
}

.formulario h2 {
  margin-bottom: 1.25rem;
}

.campo {
  margin-bottom: 1rem;
}

.campo label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: 2px solid var(--verde);
  outline-offset: 1px;
}

.formulario-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--borde);
}

.formulario-tabs button {
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--texto-suave);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.formulario-tabs button.activa {
  color: var(--verde);
  border-bottom-color: var(--verde);
}

.mensaje-error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c2bd;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.mensaje-ok {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  border: 1px solid #b9dcd0;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

[hidden] {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */

.sitio-footer {
  background: var(--verde-oscuro);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.5rem 1.25rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.sitio-footer .footer-columnas {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.sitio-footer small {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  opacity: 0.7;
}

.footer-metodos-pago {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-metodo-pago {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.footer-redes {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-red-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .sitio-header {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding: 1rem;
  }
}

.grilla-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.espacio-tarjeta img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radio) var(--radio) 0 0;
}

.espacio-tarjeta {
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.espacio-tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.espacio-tarjeta .espacio-tarjeta-info {
  padding: 0.9rem;
}

.espacio-tarjeta h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.espacio-tarjeta .precio {
  color: var(--coral-oscuro);
  font-weight: 700;
  margin-top: 0.4rem;
}

#mapa {
  height: 500px;
  border-radius: var(--radio);
  margin-top: 1rem;
}

.marcador-ubicacion-punto {
  width: 18px;
  height: 18px;
  background: var(--coral);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--coral);
}

/* ============================================
   HOME: HERO, DESTACADOS, CATEGORIAS
   ============================================ */

.hero {
  background: linear-gradient(rgba(32, 58, 48, 0.45), rgba(32, 58, 48, 0.45)),
    url("/img/hero-quinta.jpg") center 65%/cover;
  min-height: 480px;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-buscador {
  max-width: 380px;
  width: 100%;
  text-align: center;
  padding: 0.85rem 1rem;
}

.hero-buscador-campos .campo label {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.btn-cercania {
  background: transparent;
  color: var(--verde);
  border: 1px solid var(--verde);
  margin-top: 0.7rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
}

.btn-cercania:hover {
  background: var(--verde-claro);
}

#cercania-error {
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.hero-buscador h1 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--texto);
}

.hero-buscador-campos .btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.hero-buscador-campos {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.hero-buscador-campos .campo {
  flex: 1;
  min-width: 180px;
  margin-bottom: 0;
  text-align: left;
}

main section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.espacio-tarjeta-imagen-wrap {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radio) var(--radio) 0 0;
}

.espacio-tarjeta-imagen {
  width: 100%;
  height: 140px;
  border-radius: var(--radio) var(--radio) 0 0;
  background: linear-gradient(135deg, var(--verde-claro), var(--verde));
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.5s ease;
}

.espacio-tarjeta-imagen-wrap:hover .espacio-tarjeta-imagen {
  transform: scale(1.08);
}

.btn-favorito {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--coral);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra);
}

.btn-favorito:hover {
  background: #fff;
}

.espacio-tarjeta-detalle,
.espacio-tarjeta-direccion {
  color: var(--texto-suave);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.badge-destacado {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: var(--verde);
  color: var(--texto-claro);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.destacados-carrusel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 1.5rem;
}

.destacados-carrusel .carrusel-flecha {
  top: 70px;
}

.destacados-fila {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
}

.destacados-fila .espacio-tarjeta {
  flex: 0 0 240px;
  scroll-snap-align: start;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.destacados-fila .espacio-tarjeta.visible {
  opacity: 1;
  transform: scale(1);
}

.destacados-fila .espacio-tarjeta.visible:hover {
  transform: translateY(-4px) scale(1.02);
}

.categorias-fila {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.categoria-item {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.destacados-carrusel .carrusel-flecha {
  top: 70px;
}

@media (max-width: 640px) {
  #mapa {
    height: 320px;
  }

  .hero-buscador-campos {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buscador-campos .btn {
    width: 100%;
  }
}

/* ============================================
   BUSCADOR CON FILTROS (convenio 2.2: categoría, capacidad, precio,
   servicios y equipamiento, además del destino)
   ============================================ */

.hero-buscador {
  max-width: 720px;
}

.hero-buscador-campos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hero-buscador-campos .campo {
  min-width: 0;
}

.hero-buscador-campos .campo input,
.hero-buscador-campos .campo select {
  width: 100%;
}

.buscador-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
  text-align: left;
}

.buscador-extra fieldset {
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 0.5rem 0.75rem 0.65rem;
}

.buscador-extra legend {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0.25rem;
}

.buscador-opciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.buscador-opcion {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  background: var(--verde-claro);
  color: var(--verde-oscuro);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
}

.buscador-opcion input {
  accent-color: var(--verde);
}

.buscador-acciones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 0.85rem;
}

.buscador-acciones .btn {
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--verde);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem;
}

.btn-link:hover {
  text-decoration: underline;
}

#btn-mas-filtros {
  margin-right: auto;
}

.destacados-vacio {
  background: #fff;
  border: 1px dashed var(--borde);
  border-radius: var(--radio);
  padding: 1.5rem;
  text-align: center;
  color: var(--texto-suave);
}

button.categoria-item {
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

button.categoria-item:hover {
  background: var(--verde);
  color: #fff;
}

@media (max-width: 900px) {
  .hero-buscador-campos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-buscador-campos,
  .buscador-extra {
    grid-template-columns: 1fr;
  }

  .buscador-acciones {
    flex-wrap: wrap;
  }

  .buscador-acciones .btn {
    width: 100%;
  }
}

/* ============================================
   BOTON SECUNDARIO
   Por defecto con borde verde, para que se vea sobre fondos claros
   (tarjetas, paneles, formularios). El estilo blanco original queda solo
   para el header oscuro.
   ============================================ */
.btn-secundario {
  background: #fff;
  color: var(--verde);
  border: 1px solid var(--verde);
}

.btn-secundario:hover {
  background: var(--verde-claro);
}

.sitio-header .btn-secundario {
  background: transparent;
  color: var(--texto-claro);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.sitio-header .btn-secundario:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Contacto del footer: menú para elegir con qué escribir el mail */
.contacto-mail {
  position: relative;
  display: block;
  width: fit-content;
  margin-top: 0.3rem;
}

.contacto-mail summary {
  cursor: pointer;
  text-decoration: underline;
  list-style: none;
}

.contacto-mail summary::-webkit-details-marker {
  display: none;
}

.contacto-opciones {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  padding: 0.4rem;
}

.contacto-titulo {
  font-size: 0.8rem;
  color: var(--texto-suave);
  padding: 0.3rem 0.6rem;
}

.contacto-opciones a,
.contacto-opciones button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border: none;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--verde);
  text-decoration: none;
  cursor: pointer;
}

.contacto-opciones a:hover,
.contacto-opciones button:hover {
  background: var(--verde-claro);
}

@media (max-width: 640px) {
  .contacto-opciones {
    left: auto;
    right: 0;
  }
}

/* Selector con búsqueda (js/selector-buscable.js): se puede escribir para filtrar */
.selector-buscable {
  position: relative;
}

.selector-buscable-original {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.selector-buscable-input {
  width: 100%;
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  border: 1px solid var(--borde);
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
}

.selector-buscable-input:focus {
  outline: 2px solid var(--verde);
  outline-offset: 1px;
}

.selector-buscable-lista {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.selector-buscable-lista li {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.selector-buscable-lista li:hover,
.selector-buscable-lista li.resaltada {
  background: var(--verde-claro);
}

.selector-buscable-lista li[aria-selected="true"] {
  font-weight: 700;
  color: var(--verde);
}

.selector-buscable-lista .selector-buscable-sin-resultados {
  color: var(--texto-suave);
  cursor: default;
}
