/* =========================
   BASE GLOBAL (SEGURO)
   ========================= */

* {
  box-sizing: border-box;
}

body {
  font-family: Calibri, sans-serif;
  background: #F6E9D7;
  color: #1E4E6D;
  margin: 0;
  padding: 0;
  padding-bottom: 80px; /* 👈 espacio al final del scroll */
}

h1, h2, h3 {
  margin-top: 0;
}

/* links por defecto */
a {
  color: #1E4E6D;
  text-decoration: none;
}

/* =========================
   BOTONES (BASE, NO INVASIVO)
   ========================= */

.btn {
  background: #F28C38;
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
  transition: transform 0.05s ease, filter 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  filter: brightness(0.98);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* botón secundario */
.btn-secundario {
  background: #ccc;
  color: #333;
}

/* botón outline (misma estética que el principal) */
.btn-outline {
  background: transparent;
  color: #1E4E6D;
  border: 2px solid #F28C38;
}

.btn-outline:hover {
  filter: none;
  opacity: 0.95;
}

/* =========================
   TOOLTIP (usado en Publicar > Disponibilidad)
   ========================= */

.label-tooltip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-tooltip {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #1E4E6D;
  border: 1px solid #E6D8C6;
  background: #FFF6EA;
  cursor: help;
  position: relative;
}

.info-tooltip:after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(340px, 78vw);
  background: #FFF6EA;
  border: 1px solid #E6D8C6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1E4E6D;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 50;
}

.info-tooltip:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #E6D8C6;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 51;
}

.info-tooltip:hover:after,
.info-tooltip:focus:after,
.info-tooltip:hover:before,
.info-tooltip:focus:before {
  opacity: 1;
}

.titulo-disponibilidad {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px; /* 👈 separación del calendario */
}


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

form {
  max-width: 600px;
  margin: auto;
}

.campo {
  width: 100%;
  margin-bottom: 20px;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  margin-bottom: 2px;
}

.campo .btn {
  width: 100%; /* 👈 SOLO botones de formulario */
}

/* =========================
   GRILLAS (AVISOS, ETC)
   ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* tarjeta genérica */
.card {
  background: #FFF6EA;
  border: 1px solid #E6D8C6;
  border-radius: 8px;
  padding: 16px;
}

/* =========================
   DESTINOS (HOME)
   ========================= */

.destinos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.destinos a,
.destinos button {
  width: auto;           /* 🔴 CLAVE */
  display: inline-block; /* 🔴 CLAVE */
}

/* =========================
   SERVICIOS (AVISOS)
   ========================= */

.bloque-servicios {
  background: #FFF6EA;
  border: 1px solid #E6D8C6;
  border-radius: 10px;
  padding: 16px;
  margin-top: 24px;
}

.calendario-disponibilidad {
  width: 100%;
  box-sizing: border-box;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #E6D8C6;
  border-radius: 12px;
  background: #FFFDF9;
}

.calendario-cabecera,
.calendario-cabecera > div,
.calendario-cabecera small,
.calendario-controles {
  display: flex;
  align-items: center;
}

.calendario-cabecera {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendario-cabecera > div:first-child { display: grid; gap: 4px; }
.calendario-cabecera small { gap: 6px; color: #587184; font-size: .82rem; }
.calendario-titulo { position: relative; display: flex; align-items: center; gap: 6px; width: fit-content; }
.calendario-ayuda { width: 17px; height: 17px; padding: 0; border: 1px solid #587184; border-radius: 50%; background: transparent; color: #1E4E6D; font: 700 .7rem/1 serif; cursor: pointer; }
.calendario-ayuda-popover { position: absolute; z-index: 5; top: calc(100% + 7px); left: 0; width: min(250px, 72vw); padding: 9px 30px 9px 10px; border: 1px solid #D7C4AD; border-radius: 6px; background: #fff; color: #1E4E6D; box-shadow: 0 3px 10px rgba(0,0,0,.14); font-size: .78rem; font-weight: 400; line-height: 1.35; }
.calendario-ayuda-popover[hidden] { display: none; }
.calendario-ayuda-cerrar { position: absolute; top: 4px; right: 5px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #1E4E6D; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ayuda-tarifa-celular { display: none; }
.leyenda-disponible, .leyenda-no-disponible { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.leyenda-disponible { background: #CFEED9; border: 1px solid #60A977; }
.leyenda-no-disponible { background: #F8D4D8; border: 1px solid #D98089; }
.calendario-controles { gap: 6px; }
.calendario-controles button { width: 30px; height: 28px; border: 0; border-radius: 4px; background: #0D557F; color: #fff; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.calendario-meses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calendario-mes h4 { margin: 0 0 7px; text-align: center; font-size: .82rem; text-transform: capitalize; }
.calendario-semana, .calendario-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.calendario-semana { color: #587184; font-size: .65rem; font-weight: 700; margin-bottom: 3px; }
.calendario-dia { min-height: 22px; display: grid; place-items: center; border-radius: 2px; font-size: .71rem; }
.calendario-dia-disponible { background: #CFEED9; color: #135B2E; }
.calendario-dia-no-disponible { background: #F8D4D8; color: #8B1F2B; }
.calendario-dia-con-tarifa { position: relative; cursor: default; outline: none; }
.calendario-dia-con-tarifa::after { content: attr(data-tarifa); position: absolute; z-index: 4; bottom: calc(100% + 5px); left: 50%; width: max-content; max-width: 180px; padding: 6px 8px; border-radius: 5px; background: #173D55; color: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.2); font-size: .7rem; line-height: 1.2; opacity: 0; pointer-events: none; transform: translate(-50%, 3px); transition: opacity .15s ease, transform .15s ease; }
.calendario-dia-con-tarifa:hover::after, .calendario-dia-con-tarifa:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 620px) {
  .calendario-meses { grid-template-columns: 1fr; }
  .ayuda-tarifa-escritorio { display: none; }
  .ayuda-tarifa-celular { display: inline; }
}

.servicio-card {
  background: #FFF6EA;
  border: 1px solid #E6D8C6;
  border-radius: 8px;
  padding: 12px;
}

.servicio-card h4 {
  margin-bottom: 8px;
}

/* =========================
   SERVICIOS DEL AVISO
   ========================= */

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.servicio-col {
  background: #FFF6EA;
  border: 1px solid #E6D8C6;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
}

.servicio-col strong {
  display: block;
  margin-bottom: 8px;
  color: #1E4E6D;
}

.servicio-col ul {
  margin: 0;
  padding-left: 18px;
}

.servicio-col li {
  margin-bottom: 4px;
}

#previewAviso .servicios-grid {
  display: grid;
}


/* =========================
   TARJETA DE AVISO
   ========================= */

.card {
  background: #FFF6EA;
  padding: 16px;
  border: 1px solid #E6D8C6;
  border-radius: 8px;
  max-width: 900px;
  margin: auto;
  position: relative; /* 👈 esta línea */
}

/* =========================
   IMÁGENES
   ========================= */

.carousel {
  margin-bottom: 16px;
}

.carousel-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
  background: #eee;
}

.carousel {
  position: relative;
  max-width: 720px;
  margin-bottom: 12px;
}

.carousel-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
  background: #eee;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 28px;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.6);
}


/* =========================
   WHATSAPP
   ========================= */

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #25D366;           /* VERDE WHATSAPP */
  font-weight: 600;
  text-decoration: none;

  margin-top: 20px;         /* 👈 más separado de la caja de arriba */
  padding-top: 6px;         /* aire visual extra */
}

.whatsapp-link svg {
  color: #25D366;           /* asegura ícono verde */
}

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

.whatsapp-link-disabled {
  color: #8be5ac;
  pointer-events: none;
  cursor: default;
}

.whatsapp-link-disabled svg {
  color: inherit;
}

.whatsapp-link-disabled:hover {
  text-decoration: none;
}



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

footer {
  margin-top: 40px;
  padding: 24px;
  background: #F2E4D2;
}

footer .footer-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.iti {
  width: 100%;
}

/* bloque est谩ndar del formulario */
.campo {
  width: 100%;
  margin-bottom: 20px;
}

/* inputs, selects, textarea */
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
}

/* botones */
.campo button {
  width: 100%;
  padding: 14px;
}

/* textos de ayuda */
.campo.ayuda {
  margin-top: -8px;
  font-size: 13px;
  color: #666;
}



.rango-item {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rango-item.saliendo {
  opacity: 0;
  transform: translateX(-10px);
}

.rango-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}



.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}


/* =========================
   CONTENEDOR AVISO
   ========================= */

.card {
  width: 100%;
  max-width: 750px;   /* elegí el ancho del aviso */
  margin: 0 auto;
}

/* 6de enero*/

/* Resultados de búsqueda: misma presentación compacta que las cards del index */
#listaAvisos.resultados-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1160px;
  margin: 0 auto;
}

#listaAvisos.resultados-grid .aviso-card {
  max-width: none;
  position: relative;
}

#listaAvisos.resultados-grid .aviso-card p {
  font-size: 15px;
  line-height: 1.25;
}

.aviso-preview-img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #F2E4D2;
  margin-bottom: 12px;
}

.aviso-preview-meta {
  margin-bottom: 6px;
}

.aviso-preview-disponibilidad {
  display: block;
  color: #1E4E6D;
  font-size: 14px;
  line-height: 1.25;
  margin-top: -2px;
}

.aviso-destacado {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  background: #FFDFCC;
  color: #1E4E6D;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 12px;
  font-weight: bold;
}

@media (max-width: 980px) {
  #listaAvisos.resultados-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #listaAvisos.resultados-grid {
    grid-template-columns: 1fr;
  }
}

.caja-descripcion p {
  margin: 0;
  white-space: pre-wrap;     /* Respeta los saltos de línea del usuario */
}

.bloque-descripcion {
  background: #FFF;
  border: 2px solid #F28C38; /* naranja botones */
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.5;
  background: #FFF6EA;
}

.bloque-descripcion:empty {
  display: none;
}

/*7 de enero de 2026*/

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 100px;
}

.brand-slogan {
  font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
  font-size: 40px;
  font-weight: bold;
  color: #F28C38; /* mismo naranja de los botones */
  white-space: nowrap;
}

.brand-slogan {
  letter-spacing: 0.75px;
  display: inline-block;      /* 👈 CLAVE para transform */
}
.brand-slogan {
  transform: rotate(-1.5deg);
}

.brand-slogan {
   animation: flotar 3s ease-in-out infinite;
}


.btn-publicar {
  background: #F28C38;      /* naranja del sitio */
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.btn-publicar:hover {
  background: #e67e22;      /* un poco más oscuro */
}

header {
  gap: 16px;
}

@keyframes rebote {
  0% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.brand-slogan {
  animation: rebote 2.5s infinite;
  animation: flotar-inclinado 3s ease-in-out infinite;
}

@keyframes flotar-inclinado {
  0% {
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-4px);
  }
  100% {
    transform: rotate(-1deg) translateY(0);
  }
}


#destinosPopulares .card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#destinosPopulares .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/*8 de enero de 2026*/

.section-divider {
  padding-bottom: 30px;
}

.section-divider {
  padding-top: 15px;
}

/*9 de enero de 2026*/

.bloque-descripcion {
  border: 2px solid #f28c28;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}

.descripcion-texto {
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* 👈 EXACTAMENTE 3 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aviso-encabezado { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.aviso-encabezado .aviso-titulo { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ver-ubicacion { display: inline-flex; align-items: center; gap: 6px; color: #1e4e6d; font-size: 15px; font-weight: 600; margin: 4px 0 12px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ver-ubicacion svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; }
.ver-ubicacion:hover { color: #d76f22; }
.ver-ubicacion:focus-visible { outline: 2px solid #f28c38; outline-offset: 4px; }
.aviso-ubicacion { border-top: 1px solid #e9d4bb; margin-top: 22px; padding-top: 18px; scroll-margin-top: 24px; }
.aviso-ubicacion h4 { color: #1e4e6d; font-size: 21px; margin: 0 0 6px; }
.aviso-ubicacion .ubicacion-localidad { margin: 0 0 12px; }
.ubicacion-mapa { height: 320px; width: 100%; border-radius: 10px; overflow: hidden; background: #f2e4d2; isolation: isolate; }
.ubicacion-mapa[hidden], .ubicacion-reintentar[hidden] { display: none; }
.aviso-ubicacion .ubicacion-estado, .aviso-ubicacion .ubicacion-privacidad { font-size: 14px; line-height: 1.45; margin: 10px 0 0; }
.ubicacion-privacidad { color: #666; }
.ubicacion-reintentar { margin-top: 10px; padding: 8px 12px; border: 1px solid #1e4e6d; border-radius: 6px; background: #fff; color: #1e4e6d; cursor: pointer; }
@media (max-width: 560px) { .ubicacion-mapa { height: 260px; } }
.aviso-compartir { position: relative; flex-shrink: 0; }
.compartir-aviso { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; color: #1e4e6d; background: transparent; border: 1px solid transparent; border-radius: 8px; font: inherit; cursor: pointer; }
.compartir-aviso:hover { background: #f2e4d2; }
.compartir-aviso:focus-visible { outline: 2px solid #1e4e6d; outline-offset: 2px; }
.compartir-opciones { position: absolute; right: 0; top: 100%; z-index: 20; width: 180px; padding: 8px; background: #fff; border: 1px solid #e9d4bb; border-radius: 10px; box-shadow: 0 4px 16px #0002; }
.compartir-opciones[hidden] { display: none; }
.compartir-opciones a, .compartir-opciones button { display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: #1e4e6d; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.compartir-icono { width: 20px; height: 20px; flex-shrink: 0; }
.icono-whatsapp { color: #128c4a; }
.icono-facebook { color: #1877f2; }
.icono-x { color: #16181c; }
.compartir-opciones a:hover, .compartir-opciones button:hover { background: #f7eddf; }
.compartir-opciones input { box-sizing: border-box; width: 100%; }
.compartir-estado { display: block; position: absolute; right: 0; top: 100%; white-space: nowrap; font-size: 13px; }

.bloque-descripcion.expandida .descripcion-texto {
  -webkit-line-clamp: unset;
}

.ver-mas-btn {
  background: none;
  border: none;
  color: #f28c28;
  cursor: pointer;
  font-style: italic;
  font-weight: normal;
  padding: 0;
  margin-top: 6px;
  display: block;
  text-align: right;
  width: 100%;
}


/*12 de enero de 2026*/
.modo-edicion {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  color: #664d03;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-size: 14px;
}

.aviso-id {
  display: block;
  font-size: 6px;
  color: #888;
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.aviso-id-descripcion {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #777;
  text-align: left;
}

.aviso-pie {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.aviso-pie .contacto-whatsapp {
  flex: 0 1 auto;
}

.aviso-pie .whatsapp-link {
  margin-top: 0;
  padding-top: 0;
}

.aviso-publicacion-meta {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

.aviso-publicacion-meta strong {
  color: inherit;
}

@media (max-width: 560px) {
  .aviso-pie {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .aviso-pie .contacto-whatsapp {
    align-self: flex-start;
  }
}
/* 13 de enero de 2026 */

.tooltip-contenedor {
  position: relative;
  display: inline-flex;
  cursor: help;
}

.tooltip-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #9AA3A8; /* gris suave */
}


.tooltip-texto {
  position: absolute;
  top: 50%;
  left: 26px;              /* a la derecha del ícono */
  transform: translateY(-50%);
  background: transparent;
  color: #626262;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: normal;     /* 🔑 sin bold */
  width: 260px;
  text-align: left;
  display: none;
  z-index: 20;
  white-space: normal;
}

.tooltip-contenedor:hover .tooltip-texto {
  display: block;
}

.ayuda-calendario-celular {
  display: none;
}

@media (max-width: 520px) {
  .ayuda-calendario-escritorio {
    display: none;
  }

  .ayuda-calendario-celular {
    display: inline;
  }

  .titulo-disponibilidad .tooltip-texto {
    width: min(210px, calc(100vw - 110px));
  }
}

/* CONTENEDOR GENERAL DE DESTINOS */
#listaDestinos {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 16px;
}

/* CADA ZONA (COLUMNA) */
.bloque-zona {
  min-width: 220px;
  flex-shrink: 0;
}

/* GRID INTERNO DE DESTINOS */
.bloque-zona .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* DESTINOS: cajas más bajas */
#listaDestinos .card {
  padding: 10px 12px;
  min-height: auto;
  line-height: 1.2;
}

/* 14 de enero de 2026 */

#contadorDescripcion {
  margin-top: 0;
  margin-bottom: 10px;
  padding-right: 4px;
  font-size: 12px;
  color: #666;
  text-align: right;
}

#descripcion {
  margin-bottom: 0;
}

.campo:has(#descripcion) {
  margin-bottom: 6px;
}

/* =========================
   PUBLICAR: RANGOS (Paso 1)
   ========================= */

#rangos .btn { width: auto; }

/* fila de botones (Guardar/Borrar) */
.btn-row {
  display: flex;
  gap: 12px;
}

.rango-item {
  background: #FFF6EA;
  border: 1px solid #E6D8C6;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.rango-fechas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.rango-precio {
  display: flex;
  align-items: stretch;
  min-width: 260px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.rango-precio span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #1E4E6D;
  background: #f7f7f7;
  font-weight: 700;
}

.rango-precio input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 10px;
}

.campo-barrio { font-size: .88rem; }

.btn-row .btn { width: 100%; }

@media (max-width: 520px) {
  .btn-row {
    flex-direction: column;
  }
}

/* ===== LOGIN ===== */

.login-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.login-box {
  width: 100%;
  max-width: 360px;   /* 👈 CLAVE */
  background: #FFF6EA;
  border: 1px solid #E6D8C6;
  border-radius: 10px;
  padding: 24px;
}

/* en desktop el botón no ocupa todo */
.login-box .btn {
  width: 100%;
}

/* opcional: input un poco más fino */
.login-box input {
  font-size: 14px;
  padding: 10px 12px;
}

.login-mensaje:empty {
  display: none;
}

.login-mensaje.exito {
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #65A56F;
  border-radius: 5px;
  background: #F0FAF1;
  color: #286332;
  line-height: 1.4;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-field .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: #1E4E6D;
  cursor: pointer;
}

.password-field .password-toggle:hover,
.password-field .password-toggle:focus-visible {
  color: #F28C38;
}

.password-field .password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ===== REGISTRO DE ANFITRIONES ===== */

.registro-wrapper {
  width: 100%;
  padding: 40px 16px;
  box-sizing: border-box;
}

.registro-box {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  background: #FFF6EA;
  border: 1px solid #E6D8C6;
  border-radius: 10px;
  box-sizing: border-box;
}

.registro-box h1 {
  margin-bottom: 8px;
}

.registro-titulo-con-ayuda {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}

.registro-titulo-con-ayuda h1 {
  margin-bottom: 8px;
}

.registro-ayuda-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0 0 8px;
  padding: 0;
  border: 2px solid #F28C38;
  border-radius: 50%;
  background: #FFF;
  color: #1E4E6D;
  font: 700 18px/1 Georgia, serif;
  cursor: pointer;
}

.registro-ayuda-btn:hover,
.registro-ayuda-btn:focus-visible,
.registro-ayuda-btn[aria-expanded="true"] {
  background: #F28C38;
  color: #FFF;
  outline: none;
}

.registro-ayuda-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(242, 140, 56, 0.3);
}

.registro-ayuda-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: calc(100% - 28px);
  z-index: 50;
  width: min(340px, calc(100vw - 48px));
  padding: 28px 18px 16px;
  border: 1px solid #D6BFA8;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0 10px 28px rgba(30, 78, 109, 0.2);
  color: #1E4E6D;
}

.registro-ayuda-popover[hidden] {
  display: none;
}

.registro-ayuda-popover::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 12px;
  width: 14px;
  height: 14px;
  border-top: 1px solid #D6BFA8;
  border-left: 1px solid #D6BFA8;
  background: #FFF;
  transform: rotate(45deg);
}

.registro-ayuda-popover p {
  margin: 0 0 14px;
  line-height: 1.45;
}

.registro-ayuda-cerrar {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1E4E6D;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.registro-ayuda-cerrar:hover,
.registro-ayuda-cerrar:focus-visible {
  color: #C54B20;
  outline: 2px solid rgba(242, 140, 56, 0.45);
  outline-offset: 1px;
}

.registro-ayuda-contacto.btn {
  display: inline-flex;
  width: auto;
  min-height: 0;
  padding: 8px 14px;
  font-size: 14px;
}

.registro-intro {
  margin: 0 0 24px;
  color: #587184;
}

.registro-box form {
  max-width: none;
}

.registro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.registro-box .campo {
  margin-bottom: 18px;
}

.registro-box .campo label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.registro-box input {
  border: 1px solid #D6BFA8;
  border-radius: 5px;
  background: #fff;
  color: #1E4E6D;
}

.registro-box input:focus {
  outline: 2px solid rgba(242, 140, 56, 0.28);
  border-color: #F28C38;
}

.registro-box .iti {
  width: 100%;
}

.campo-ayuda {
  display: block;
  margin-top: 5px;
  color: #667784;
  font-size: 13px;
}

.registro-ayuda-password {
  margin-top: -12px;
  margin-bottom: 18px;
}

.registro-terminos {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  cursor: pointer;
}

.registro-consentimientos {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.registro-consentimientos .registro-terminos {
  flex: 1 1 0;
}

.registro-terminos input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #F28C38;
}

.registro-terminos a {
  text-decoration: underline;
  font-weight: 700;
}

.registro-mensaje {
  min-height: 0;
  margin-bottom: 14px;
}

.registro-mensaje:empty {
  display: none;
}

.registro-mensaje.error {
  padding: 10px 12px;
  border: 1px solid #C85250;
  border-radius: 5px;
  background: #FFF1F0;
  color: #8B2523;
}

.registro-box #btnRegistrar {
  width: 100%;
}

.registro-volver {
  display: block;
  margin-top: 16px;
  text-align: center;
  text-decoration: underline;
}

.registro-exito {
  text-align: center;
  padding: 24px 0;
}

.registro-exito p {
  margin-bottom: 24px;
}

.documentacion-aviso {
  margin: 0 0 22px;
  padding: 12px;
  border-left: 4px solid #F28C38;
  background: #FFF;
  color: #425D70;
  line-height: 1.45;
}

.documentos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.documento-carga {
  display: flex;
  min-height: 190px;
  padding: 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed #D6BFA8;
  border-radius: 8px;
  background: #FFF;
  text-align: center;
}

.documento-instruccion,
.documento-estado {
  color: #667784;
  font-size: 13px;
}

.documento-opciones {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0;
}

.documento-opcion {
  display: flex;
  min-height: 76px;
  padding: 10px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid #F28C38;
  border-radius: 7px;
  color: #1E4E6D;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.documento-opcion:hover,
.documento-opcion:focus-within,
.documento-opcion-camara {
  background: #FFF1E4;
}

.documento-opcion svg {
  width: 28px;
  height: 28px;
  fill: #F28C38;
}

.documento-input-oculto {
  position: absolute;
  width: 1px !important;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.documento-estado.seleccionada {
  color: #286332;
  font-weight: 700;
}

.documento-preview {
  width: 100%;
  height: 160px;
  margin-top: 6px;
  object-fit: contain;
  border-radius: 5px;
  background: #F2E4D2;
}

.registro-box #btnEnviarDocumentacion {
  width: 100%;
}

@media (max-width: 620px) {
  .registro-grid,
  .documentos-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .registro-consentimientos {
    display: block;
  }

  .registro-box {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 20px 16px;
  }

  .registro-titulo-con-ayuda {
    width: 100%;
  }

  .registro-titulo-con-ayuda h1 {
    min-width: 0;
  }

  .registro-ayuda-popover {
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 64px));
  }

  .registro-ayuda-popover::before {
    right: 7px;
    left: auto;
  }

  .documento-opciones {
    grid-template-columns: 1fr;
  }
}

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

header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(255, 246, 234, 0.97); /* arena */
  padding: 14px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header a {
  text-decoration: none;
  color: #1E4E6D;
  font-weight: bold;
}

footer {
  background: #F2E4D2;
  padding: 48px 24px;
  font-size: 14px;
  color: #1E4E6D;
  text-align: center;
}

/* Adaptacion global para celulares. Escritorio conserva sus reglas actuales. */
img,
video {
  max-width: 100%;
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body { padding-bottom: 40px; }

  header {
    width: 100%;
    min-width: 0;
    padding: 8px 12px;
    gap: 8px;
  }

  header .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 6px;
  }

  header .logo {
    width: auto;
    height: 48px;
    flex: 0 0 auto;
  }

  header .brand-slogan {
    min-width: 0;
    font-size: clamp(16px, 5vw, 22px);
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.05;
  }

  header .header-actions,
  header .panel-header-actions {
    flex: 0 1 auto;
    min-width: 0;
    gap: 5px;
  }

  header .btn,
  header .header-actions .btn {
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.1;
    white-space: normal;
  }

  .hero {
    width: 100%;
    padding: 24px 16px;
  }

  .hero h1 {
    font-size: 23px;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search input,
  .search select,
  .search button {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    font: inherit;
  }

  .search .date-search-field {
    width: 100%;
    min-height: 44px;
  }

  .search .date-search-field input {
    height: 44px;
  }

  .search .date-search-placeholder {
    padding-left: 12px;
    font-size: 16px;
  }

  section,
  .panel-container,
  .login-wrapper {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  body > h1 {
    padding-left: 16px;
    padding-right: 16px;
  }

  body > .grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .destinos-populares-section { display: none; }

  .grid,
  #avisosDestacados,
  .servicios-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .card,
  .login-box,
  form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .card { padding: 14px; }

  .ad-card {
    padding: 0;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 1;
  }

  .ad-card-link,
  .ad-card img {
    min-height: 0;
    height: 100%;
  }

  input,
  select,
  textarea,
  button { max-width: 100%; }

  .campo input,
  .campo select,
  .campo textarea { font-size: 16px; }

  .rango-fechas,
  .footer-grid { flex-wrap: wrap; }

  #listaDestinos {
    width: 100%;
    gap: 16px;
  }

  .bloque-zona { min-width: min(220px, 82vw); }

  .carousel-img {
    height: auto;
    max-height: 60vh;
  }

  footer {
    width: 100%;
    padding: 32px 16px;
    line-height: 1.6;
  }
}

@media (max-width: 390px) {
  header .logo { height: 42px; }
  header .brand-slogan { font-size: 15px; }

  header .btn,
  header .header-actions .btn {
    padding: 7px 6px;
    font-size: 11px;
  }
}
.foto-borrar,
#preview > div > span {
  position: absolute;
  top: auto !important;
  right: 4px;
  bottom: 4px;
  z-index: 2;
  width: fit-content;
  margin: 0;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  background: rgba(25, 25, 25, 0.68);
  color: #fff !important;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

#preview button.foto-borrar {
  width: fit-content;
  min-width: 0;
  padding: 2px 4px;
}

.foto-borrar:hover,
.foto-borrar:focus-visible,
#preview > div > span:hover {
  background: rgba(170, 25, 25, 0.88);
  border-color: #fff;
}
.bienvenida-usuario {
  margin: 4px 0 20px;
  color: #1e4e6d;
  font-size: 18px;
  font-weight: 600;
}
.modal-inactividad {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.modal-inactividad.activo {
  display: flex;
}

.modal-inactividad-box {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: 12px;
  background: #fff6ea;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.modal-inactividad-box p {
  color: #333;
}

.modal-inactividad-acciones {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 520px) {
  .modal-inactividad-acciones {
    flex-direction: column-reverse;
  }

  .modal-inactividad-acciones .btn {
    width: 100%;
  }
}
.captcha-container {
  display: flex;
  justify-content: center;
  min-height: 0;
  margin: 0;
}

.captcha-container[hidden] {
  display: none;
}
.cupon-destacado-modal {
  width: min(480px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid #d8bea0;
  border-radius: 12px;
  background: #fff7eb;
  color: #185778;
}
.cupon-destacado-modal::backdrop { background: rgb(0 0 0 / 45%); }
.cupon-destacado-modal h2 { margin-top: 0; }
.cupon-destacado-modal [hidden] { display: none !important; }
.cupon-destacado-modal .opcion-cupon { display: flex; align-items: center; gap: 8px; margin: 20px 0; }
.cupon-destacado-modal input[type="checkbox"] { width: auto; }
.cupon-destacado-modal input[type="text"] { box-sizing: border-box; width: 100%; padding: 12px; margin-top: 8px; }
.acciones-cupon { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.opcion-destacado { padding:16px; margin:16px 0; border:1px solid #e2cdb0; border-radius:9px; background:#fffaf2; }
.opcion-destacado p { margin:8px 0 12px; }
.boton-destacado { width:auto; }
.cupones-publicacion { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:12px; max-width:600px; }
.campo-cupon { display:grid; gap:6px; margin-top:12px; }
.campo-cupon[hidden] { display:none; }
.opcion-destacado .campo-cupon { max-width:400px; }

.boton-descripciones { display:flex; align-items:center; width:100%; gap:9px; padding:12px 0; color:#1e4e6d; background:transparent; border:0; border-top:1px solid #e9d4bb; border-bottom:1px solid #e9d4bb; font:700 16px/1.25 inherit; text-align:left; cursor:pointer; }
.boton-descripciones:hover { color:#d76f22; }
.boton-descripciones:focus-visible { outline:2px solid #f28c38; outline-offset:4px; }
.boton-descripciones-icono { width:20px; height:20px; flex:0 0 auto; stroke:currentColor; }
.boton-descripciones-flecha { width:22px; height:22px; flex:0 0 auto; margin-left:auto; stroke:currentColor; transition:transform .18s ease; }
.boton-descripciones[aria-expanded="true"] .boton-descripciones-flecha { transform:rotate(180deg); }
#preview .foto-descripcion { display:none; font-size:13px; margin-top:8px; }
#preview.descripciones-abiertas { grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); }
#preview.descripciones-abiertas .foto-descripcion { display:grid; gap:4px; cursor:text; }
#preview .foto-descripcion textarea { width:100%; box-sizing:border-box; min-height:60px; padding:6px; font:inherit; resize:vertical; }
#preview .foto-descripcion small { text-align:right; }
#preview.descripciones-abiertas button.foto-borrar { position:static; margin-top:4px; }
/* La ficha inicial sirve para redes y queda oculta hasta que JavaScript la reemplaza. */
#listaAvisos.aviso-inicial-pendiente [data-aviso-inicial="true"] { display:none; }

/* Destinos: filtros y avisos comparten el ancho de la grilla del inicio. */
.pagina-destino { --ancho-grilla-destino:min(1160px, calc(100vw - 48px)); }
.pagina-destino #listaAvisos { width:var(--ancho-grilla-destino); max-width:var(--ancho-grilla-destino); margin:0 auto; padding:0; }
.busqueda-destino { display:grid; grid-template-columns:minmax(0,1fr) var(--ancho-grilla-destino) minmax(0,1fr); align-items:end; gap:16px; margin:24px 0; width:100%; max-width:100%; padding-bottom:4px; }
.campos-destino { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.busqueda-destino label { display:grid; gap:6px; min-width:0; }
.busqueda-destino input, .busqueda-destino select { width:100%; min-width:0; height:44px; padding:8px; box-sizing:border-box; }
.busqueda-destino .btn { width:auto; height:44px; white-space:nowrap; }
.busqueda-destino a.btn { display:inline-flex; align-items:center; justify-content:center; }
.busqueda-destino > a { justify-self:end; }
.busqueda-destino > button { justify-self:start; }
@media (max-width:1700px) {
  .busqueda-destino { width:var(--ancho-grilla-destino); margin:24px auto; grid-template-columns:1fr auto; }
  .campos-destino { grid-column:1 / -1; grid-row:1; }
  .busqueda-destino > a { grid-column:1; grid-row:2; justify-self:start; }
  .busqueda-destino > button { grid-column:2; grid-row:2; justify-self:end; }
}
@media (max-width:980px) { .campos-destino { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) {
  .busqueda-destino { grid-template-columns:minmax(0,1fr); gap:16px; }
  .campos-destino { grid-template-columns:minmax(0,1fr); grid-column:1; grid-row:auto; }
  .busqueda-destino > a,
  .busqueda-destino > button { grid-column:1; grid-row:auto; justify-self:stretch; width:100%; }
  .busqueda-destino a.btn { white-space:normal; height:auto; min-height:44px; }
}

/* Las páginas de destino comparten la identidad visual del inicio. */
.pagina-destino .header-actions { display:flex; align-items:center; gap:8px; }
.pagina-destino header { position:sticky; top:0; z-index:10; }
.destino-hero { background:linear-gradient(180deg,#8ECBEA 0%,#1E4E6D 100%); color:white; padding:48px 0 32px; margin-bottom:32px; }
.destino-hero h1 { width:var(--ancho-grilla-destino); margin:0 auto 20px; font-size:28px; }
.destino-hero .busqueda-destino { margin-bottom:0; }
.destino-hero .busqueda-destino input,
.destino-hero .busqueda-destino select { background:white; color:#1E4E6D; border:1px solid #b8c7ce; border-radius:0; font:inherit; }
.destino-hero .busqueda-destino > a { color:white; border-color:white; }
@media (max-width:560px) {
  .destino-hero { padding-top:28px; }
  .destino-hero h1 { font-size:26px; }
}
