:root {
  /* Paleta "Serene Nature Tones":
       #6B9080   #A4C3B2   #CCE3DE   #EAF4F4   #F6FFF8
     Los cinco tonos se usan tal cual en fondos, bordes y detalles.
     Para las superficies que llevan TEXTO ENCIMA hacen falta tonos más
     profundos de la misma familia: el más oscuro de la paleta, #6B9080,
     sólo da 3,5:1 con texto blanco y el mínimo legible (WCAG AA) es 4,5:1.
     De ahí --blue, --blue-dark y --accent, que son ese mismo verde salvia
     bajado de luminosidad. */

  /* --- Tonos derivados, para texto --- */
  --blue: #3e5c50;          /* cabecera y primarios · 7,4:1 con blanco */
  --blue-dark: #2c4239;     /* titulares y texto fuerte · 10,8:1 con blanco */
  --accent: #4a6b5d;        /* botones y enlaces · 5,9:1 con blanco */
  --accent-hover: #3a544a;

  /* --- Los cinco de la paleta --- */
  --sage-base: #6b9080;     /* decorativo: nunca con texto blanco pequeño encima */
  --sage: #a4c3b2;          /* detalles, separadores, estados suaves */
  --mint: #cce3de;          /* bordes y fondos de bloque */
  --blue-light: #eaf4f4;    /* fondos suaves */
  --bg: #f6fff8;            /* fondo general de la página */

  /* --- Compatibilidad con el CSS existente --- */
  --amber: #cce3de;         /* acento claro sobre fondo oscuro · 5,5:1 sobre --blue */
  --leaf-light: #a4c3b2;

  /* --- Semánticos --- */
  --green: #2f6f56;         /* éxito / disponible · 6,0:1 con blanco */
  --red: #a83b3b;           /* error / rechazo · 6,3:1 con blanco */
  --ink: #1f2a26;
  --muted: #5d726b;         /* 5,1:1 con blanco */
  --line: #dde8e4;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--blue);
  color: #fff;
}
.site-header .bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
}
.brand span { color: var(--amber); }
.site-header nav a { color: #fff; margin-left: 20px; font-weight: 600; opacity: .95; }

.container { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }

/* ---------- Hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: #fff;
  padding: 48px 20px;
}
.hero .inner { max-width: 1120px; margin: 0 auto; }
.hero h1 { font-size: 34px; margin: 0 0 8px; }
.hero p { font-size: 18px; opacity: .95; margin: 0; max-width: 620px; }

/* ---------- Contacto ---------- */
/* Teléfono en la barra superior: visible en todas las páginas. */
.hdr-tel {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .42);
  padding: 8px 16px; border-radius: 999px;
  color: #fff; font-weight: 700; white-space: nowrap;
}
.hdr-tel:hover { background: rgba(255, 255, 255, .3); color: #fff; text-decoration: none; }

/* Botones grandes bajo el titular de la portada (se ven sin bajar). */
.hero-contacto { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-contacto {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--blue-dark);
  font-size: 17px; font-weight: 800;
  padding: 14px 24px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.btn-contacto:hover { background: var(--amber); color: var(--blue-dark); text-decoration: none; }
.btn-contacto.ghost {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, .75); box-shadow: none;
}
.btn-contacto.ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* Bloque de contacto de la portada. */
.contacto {
  background: var(--blue-light);
  border: 1px solid var(--mint);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-top: 44px;
  text-align: center;
}
.contacto h2 { margin: 0 0 6px; }
.contacto .sub { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.contacto-datos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.dato-contacto {
  display: inline-flex; align-items: center; gap: 13px;
  background: var(--card, #fff); border: 1px solid var(--mint); border-radius: 999px;
  padding: 13px 26px; font-size: 19px; font-weight: 800;
  color: var(--blue-dark); box-shadow: var(--shadow); text-align: left;
  /* Sin esto, el email largo es más ancho que un móvil y saca barra horizontal. */
  max-width: 100%; min-width: 0;
}
.dato-contacto > span { min-width: 0; overflow-wrap: anywhere; }
.dato-contacto:hover { border-color: var(--accent); color: var(--blue-dark); text-decoration: none; }
.dato-contacto .ico { font-size: 22px; line-height: 1; }
.dato-contacto small {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 1px;
}
.contacto-dir { margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 620px) {
  .site-header .bar { flex-wrap: wrap; gap: 10px; }
  .site-header nav { display: flex; align-items: center; gap: 14px; }
  .site-header nav a { margin-left: 0; }
  .hero-contacto .btn-contacto { flex: 1 1 100%; justify-content: center; font-size: 16px; }
  .contacto-datos .dato-contacto {
    flex: 1 1 100%; justify-content: flex-start;
    font-size: 16px; padding: 13px 18px; border-radius: 16px;
  }
}

/* ---------- Cards grid (home) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 4/3; background: var(--blue-light); overflow: hidden; position: relative; }
.ribbon { position: absolute; top: 12px; left: 0; z-index: 2; background: var(--accent); color: #fff;
          font-size: 13px; font-weight: 700; padding: 6px 12px 6px 10px; border-radius: 0 6px 6px 0;
          box-shadow: 0 2px 6px rgba(0,0,0,.25); max-width: 90%; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 4px; font-size: 19px; }
.card .loc { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.card .feat { font-size: 14px; color: var(--ink); margin-bottom: 12px; }
.card .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.price-tag { font-weight: 800; font-size: 20px; }
.price-tag small { font-weight: 500; font-size: 13px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn:disabled { background: #b9b9b9; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.block { width: 100%; }

/* ---------- Property page ---------- */
.pp-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.pp-title h1 { margin: 0; font-size: 30px; }
.badge { background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 700;
         padding: 3px 9px; border-radius: 20px; }
.pp-loc { color: var(--muted); margin: 4px 0 20px; }

/* Banner de ofertas (ficha) */
.offers-banner { background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%); color: #fff;
                 border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; box-shadow: var(--shadow); }
.offers-banner-head { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.offers-banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 14px; }
.offer-card { display: flex; gap: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
              border-radius: 10px; padding: 12px; align-items: center; }
.offer-card-tag { background: var(--amber); color: var(--blue-dark); font-weight: 800; font-size: 16px;
                  border-radius: 8px; padding: 8px 10px; white-space: nowrap; }
.offer-card-body strong { font-size: 15px; }
.offer-card-desc { font-size: 13px; opacity: .95; }
.offer-card-cond { font-size: 12px; opacity: .85; margin-top: 3px; }
.offers-banner .btn { background: #fff; color: var(--accent); }
.offers-banner .btn:hover { background: #f0f0f0; }

/* Gallery */
/* Las filas se reparten una altura proporcional al ancho (aspect-ratio) en vez de
   medir 150px fijos. Con altura fija, al ensanchar la ventana las celdas se volvían
   cada vez más apaisadas y recortaban las fotos por arriba y por abajo. Así cada
   hueco se mantiene cerca de 4:3, que es el formato de casi todas las fotos. */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 2.7 / 1;
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.gallery .main { grid-row: span 2; grid-column: 1; }
/* Con una o dos fotos no hay mosaico: una sola fila para que ambas queden a 4:3 */
.gallery.few { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: 2.7 / 1; }
.gallery.few .main { grid-column: 1; grid-row: 1; }
.gallery.one { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 9; }
.gallery.one .main { grid-column: 1; grid-row: 1; }
.gallery .empty { background: var(--blue-light); display: grid; place-items: center; color: var(--muted); }

/* Cada foto de la galería, con su pie */
.ph { position: relative; overflow: hidden; cursor: pointer; margin: 0; background: var(--blue-light); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 7px;
  font-size: 12px; line-height: 1.3; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.gallery .main figcaption { font-size: 14px; padding: 26px 14px 11px; }
.ph-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.ph-mas {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  background: rgba(0,0,0,.45); color: #fff; font-size: 24px; font-weight: 800;
  pointer-events: none;
}

/* ---------- El entorno (portada) ---------- */
.entorno { margin: 40px 0 8px; }
.ent-video { margin: 0 0 18px; position: relative; border-radius: var(--radius);
             overflow: hidden; box-shadow: var(--shadow); background: #000; }
.ent-video video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.ent-video figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 14px 9px;
                        color: #fff; font-size: 12px; pointer-events: none;
                        background: linear-gradient(transparent, rgba(0,0,0,.7)); }
/* 3:2 es el término medio entre las fotos 4:3 y las panorámicas 16:9, así
   ninguna de las dos se recorta demasiado. */
.ent-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ent-ph { aspect-ratio: 3 / 2; border-radius: 10px; }
#entMas { display: block; }

.layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.section { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.section h2 { margin: 0 0 14px; font-size: 20px; }

.facts { display: flex; flex-wrap: wrap; gap: 22px; }
.fact { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.fact .ic { font-size: 20px; }

.amenities { list-style: none; padding: 0; margin: 0; display: grid;
             grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.amenities li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.amenities .ic { color: var(--green); font-weight: 700; }
.na-list { color: var(--muted); font-size: 14px; }
.na-list span { display: inline-block; margin-right: 14px; }

/* Booking box (sticky) */
.booking-box { position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line);
               border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg); }
.booking-box .price { font-size: 26px; font-weight: 800; }
.booking-box .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.rate-note { font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px; border: 1px solid #c4c4c4; border-radius: 8px; font-size: 15px; font-family: inherit;
}
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field.two > div { min-width: 0; }
.quote { background: var(--blue-light); border-radius: 8px; padding: 12px; margin: 14px 0; font-size: 14px; }
.quote .row { display: flex; justify-content: space-between; margin: 3px 0; }
.quote .total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--mint); margin-top: 8px; padding-top: 8px; }
.quote .disc-row { color: var(--accent); font-weight: 700; }
.offers-pick { border: 1px solid var(--leaf-light); border-radius: 8px; padding: 12px; margin: 0 0 14px; background: var(--bg); }
.offers-pick-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--blue); }
.offer-opt { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; cursor: pointer; font-size: 14px; }
.offer-opt input { margin-top: 3px; width: auto; }
.off-tag { background: var(--accent); color: #fff; border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 10px 0; }
.msg.ok { background: #e3f1ea; color: var(--green); }
.msg.err { background: #fdeaea; color: var(--red); }
.msg.info { background: var(--blue-light); color: var(--blue); }

/* Calendar */
.cal-wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.cal { width: 300px; }
.cal .cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal .cal-head strong { text-transform: capitalize; }
.cal table { width: 100%; border-collapse: collapse; }
.cal th { font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal td { text-align: center; padding: 2px; }
.day { width: 38px; height: 42px; border-radius: 8px; display: flex; flex-direction: column;
       align-items: center; justify-content: center; cursor: pointer; font-size: 13px; border: 1px solid transparent; }
.day .p { font-size: 10px; color: var(--muted); }
.day:hover:not(.occ):not(.disabled) { border-color: var(--accent); }
.day.occ { background: #f0f0f0; color: #bbb; text-decoration: line-through; cursor: not-allowed; }
.day.occ .p { display: none; }
.day.disabled { color: #ccc; cursor: default; }
.day.weekend .p { color: var(--accent); font-weight: 700; }
.day.sel { background: var(--accent); color: #fff; }
.day.sel .p { color: #fff; }
.day.inrange { background: var(--blue-light); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }

.nav-btn { background: var(--blue-light); border: none; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; color: var(--blue); }
.nav-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Política de cancelación ---------- */
.pol-aviso {
  background: #fdf3f3; border: 1px solid #f0d3d3; border-left: 4px solid var(--red);
  border-radius: 8px; padding: 14px 16px;
}
.pol-aviso p { margin: 8px 0 0; font-size: 15px; }
.pol-badge { display: inline-block; background: var(--red); color: #fff;
             font-size: 12px; font-weight: 800; letter-spacing: .3px;
             border-radius: 20px; padding: 3px 10px; text-transform: uppercase; }
.pol-lista { margin: 14px 0 0; padding-left: 20px; }
.pol-lista li { font-size: 15px; margin: 7px 0; }

.pol-box { border: 1px solid #f0d3d3; background: #fdf3f3; border-radius: 8px;
           padding: 10px 12px; margin: 14px 0 4px; }
.pol-box.falta { border-color: var(--red); box-shadow: 0 0 0 2px rgba(178,59,59,.15); }
.pol-box-head { font-size: 12px; font-weight: 800; color: var(--red); text-transform: uppercase;
                letter-spacing: .2px; line-height: 1.35; }
.pol-chk { align-items: flex-start; font-size: 13px; margin-top: 8px; }
.pol-chk input { margin-top: 3px; }

.pol-ok { color: var(--green); font-weight: 600; }

/* Forma de pago (cuadro de reserva) */
.pay-box { border: 1px solid var(--line); background: var(--bg); border-radius: 8px;
           padding: 10px 12px; margin: 12px 0 4px; }
.pay-box-title { font-size: 12px; font-weight: 800; text-transform: uppercase;
                 letter-spacing: .2px; color: var(--muted); margin-bottom: 6px; }
.pay-opt { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0;
           cursor: pointer; font-size: 14px; }
.pay-opt input { margin-top: 3px; width: auto; }
.pay-opt small { color: var(--muted); }

/* Páginas de pago (ida al TPV, resultado y justificante) */
.pago-caja { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
             padding: 28px 30px; margin: 34px auto; max-width: 620px; }
.pago-caja h1 { margin: 0 0 12px; font-size: 24px; }
.pago-caja.ok h1 { color: var(--green); }
.pago-caja.ko h1 { color: var(--red); }
.pago-icono { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.pago-botones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ir-tpv-msg { font-size: 16px; }
.justificante { width: 100%; border-collapse: collapse; margin: 16px 0; }
.justificante th, .justificante td { padding: 8px 10px; border-bottom: 1px solid var(--line);
                                     text-align: left; font-size: 14px; }
.justificante th { color: var(--muted); font-weight: 600; width: 45%; }
.justificante .total th, .justificante .total td { font-size: 17px; font-weight: 800;
                                                   border-bottom: none; }
@media print {
  .site-header, .footer, .no-print { display: none; }
  .pago-caja { box-shadow: none; margin: 0; max-width: none; }
}
.pol-home { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
            padding: 20px 22px; margin: 34px 0 0; }
.pol-home h2 { margin: 0 0 12px; font-size: 20px; }

/* ---------- Opiniones ---------- */
.rev-nota {
  background: var(--blue); color: #fff;
  font-weight: 800; font-size: 26px;
  border-radius: 10px 10px 10px 2px;
  padding: 10px 12px; line-height: 1;
  display: inline-block; min-width: 58px; text-align: center;
}
/* Escala de la nota: del verde más profundo al ocre. Todos pasan 4,5:1 con
   el texto blanco, incluida la variante pequeña .xs de 15 px. */
.rev-nota.exc { background: var(--blue-dark); }
.rev-nota.bien { background: var(--accent); }
.rev-nota.ok { background: #8a6d3f; }
.rev-nota.baja { background: var(--red); }
.rev-nota.sm { font-size: 18px; padding: 7px 9px; min-width: 44px; }
.rev-nota.xs { font-size: 15px; padding: 5px 8px; min-width: 38px; border-radius: 8px 8px 8px 2px; }

.rev-inline { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--ink); }
.rev-inline:hover { text-decoration: none; }
.rev-inline strong { color: var(--blue); }
.rev-inline small { color: var(--muted); }

.card-rev { margin: 0 0 8px; font-size: 13px; }
.card-rev strong { font-size: 13px; }
.rev-vacio { background: var(--blue-light); border-radius: 10px; padding: 16px; font-size: 15px; }
.rev-resumen {
  display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px; align-items: start;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.rev-resumen > * { min-width: 0; }
.rev-global { display: flex; align-items: center; gap: 12px; }
.rev-global strong { font-size: 18px; }
.rev-cat { display: grid; grid-template-columns: minmax(0, 1fr) 90px 34px; align-items: center; gap: 8px; font-size: 13px; margin: 5px 0; }
.rev-cat > span:first-child { overflow-wrap: anywhere; }
.rev-cat i { background: var(--line); border-radius: 6px; height: 7px; display: block; }
.rev-cat i b { background: var(--leaf-light); border-radius: 6px; height: 7px; display: block; }
.rev-cat-n { text-align: right; font-weight: 700; font-size: 13px; }

.rev-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.rev-orden { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rev-orden select { padding: 6px 8px; border: 1px solid #c4c4c4; border-radius: 8px; font-size: 13px; font-family: inherit; }

.rev-lista { display: flex; flex-direction: column; gap: 16px; }
.rev { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.rev header { display: flex; align-items: center; gap: 12px; }
.rev-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: 0 0 auto;
}
.rev-quien { flex: 1; min-width: 0; }
.rev-ver { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700;
           color: var(--green); background: #e3f1ea; border-radius: 20px; padding: 2px 8px; }
.rev h4 { margin: 12px 0 6px; font-size: 16px; }
.rev p { margin: 6px 0; font-size: 15px; }
.rev-pos, .rev-neg { display: flex; gap: 8px; }
.rev-pos span, .rev-neg span { flex: 0 0 auto; }
.rev-txt { color: var(--ink); }
.rev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rev-chip { background: var(--blue-light); color: var(--blue); border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.rev-chip b { color: var(--accent); }
.rev-fecha { color: var(--muted); font-size: 12px; margin-top: 8px; }
.rev-reply { background: var(--bg); border-left: 3px solid var(--leaf-light); border-radius: 0 8px 8px 0;
             padding: 10px 14px; margin-top: 12px; }
.rev-reply strong { font-size: 14px; color: var(--blue); }
.rev-reply p { margin: 4px 0; font-size: 14px; }
.rev-reply small { color: var(--muted); font-size: 12px; }

.rev-admin { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; background: #fff; }
.rev-admin.oculta { opacity: .65; background: #fafafa; }
.rev-admin-head { display: flex; align-items: center; gap: 12px; }
.rev-admin .status { margin-left: 6px; }
.rev-admin textarea { width: 100%; padding: 8px; border: 1px solid #c4c4c4; border-radius: 8px; font-size: 14px; font-family: inherit; }

.rev-form { border: 1px solid var(--leaf-light); background: var(--bg); border-radius: 10px; padding: 18px; margin-bottom: 20px; }
.rev-form h3 { margin: 0 0 4px; font-size: 18px; }
.rev-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 22px; margin: 14px 0; }
.rev-slider { display: grid; grid-template-columns: minmax(0, 1fr) 130px 28px; align-items: center; gap: 8px; font-size: 14px; }
.rev-slider label { font-weight: 600; }
.rev-slider label small { font-weight: 400; color: var(--muted); }
.rev-slider input[type="range"] { width: 100%; accent-color: var(--accent); }
.rev-slider output { font-weight: 800; color: var(--blue); text-align: right; }
.rev-slider .chk { grid-column: 1 / -1; font-size: 12px; margin: 0 0 4px; color: var(--muted); }
.rev-slider.apagado label, .rev-slider.apagado output { opacity: .45; }
.rev-media { background: var(--blue-light); border-radius: 8px; padding: 8px 12px; font-size: 15px; display: inline-block; margin-bottom: 14px; }
.rev-media strong { font-size: 19px; color: var(--blue); }
.rev-form-acciones { display: flex; align-items: center; gap: 12px; margin-top: 8px; }

/* ---------- Mapa de ubicación ---------- */
.mapa-dir { font-size: 15px; margin: 0 0 12px; }
.mapa-dir .ic { margin-right: 6px; }
.mapa {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mint);
}
.mapa-lienzo {
  position: relative;
  height: 340px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
  background: var(--mint);
}
.mapa-lienzo:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
.mapa-lienzo.activo { touch-action: none; }
.mapa-lienzo.arrastrando { cursor: grabbing; }
.mapa-capa { position: absolute; inset: 0; }
.mapa-tesela {
  position: absolute;
  width: 256px; height: 256px;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0;
  transition: opacity .2s;
}
.mapa-tesela.ok { opacity: 1; }
.mapa-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.mapa-controles { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.mapa-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.mapa-btn:hover { background: var(--blue-light); }
.mapa-atrib {
  position: absolute; bottom: 0; right: 0;
  background: rgba(255, 255, 255, .82);
  font-size: 11px; color: var(--muted);
  padding: 2px 6px; border-radius: 6px 0 0 0;
}
.mapa-aviso {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .38);
  color: #fff; font-size: 16px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.mapa-aviso.visible { opacity: 1; }
.mapa-sinred {
  position: absolute; inset: 0;
  display: none; place-items: center;
  background: var(--blue-light);
  color: var(--muted); font-size: 14px; text-align: center; padding: 20px;
}
.mapa-sinred.visible { display: grid; }
/* Marcadores con precio (portada) */
.mapa-marcas { position: absolute; inset: 0; pointer-events: none; }
.mapa-marca {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--blue);
  border-radius: 20px;
  padding: 5px 12px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  text-align: center;
  line-height: 1.15;
  transition: transform .12s, background .12s;
}
.mapa-marca::after {
  content: ''; position: absolute; left: 50%; bottom: -6px;
  width: 10px; height: 10px; background: inherit;
  border-right: 1px solid var(--blue); border-bottom: 1px solid var(--blue);
  transform: translateX(-50%) rotate(45deg);
}
.mapa-marca b { display: block; font-size: 15px; color: var(--blue); }
.mapa-marca span { display: block; font-size: 11px; color: var(--muted); }
.mapa-marca:hover { transform: translate(-50%, -100%) scale(1.05); }
.mapa-marca.activa { background: var(--blue); border-color: var(--blue); }
.mapa-marca.activa b, .mapa-marca.activa span { color: #fff; }
.mapa-marca.activa::after { background: var(--blue); border-color: var(--blue); }

/* Ficha emergente del marcador */
.mapa-ficha {
  position: absolute; left: 12px; bottom: 12px; z-index: 5;
  width: min(340px, calc(100% - 24px));
  max-height: calc(100% - 24px); overflow-y: auto;
  background: var(--card); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 10px; display: none;
}
.mapa-ficha.visible { display: block; }
.mapa-ficha-cerrar {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.9); box-shadow: var(--shadow);
  font-size: 17px; line-height: 1; cursor: pointer; color: var(--ink);
}
.mapa-ficha-item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; color: var(--ink); }
.mapa-ficha-item:hover { background: var(--blue-light); text-decoration: none; }
.mapa-ficha-item + .mapa-ficha-item { border-top: 1px solid var(--line); }
.mapa-ficha-item img, .mapa-ficha-sinfoto {
  width: 76px; height: 60px; object-fit: cover; border-radius: 6px; flex: 0 0 auto;
}
.mapa-ficha-sinfoto { background: var(--blue-light); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.mapa-ficha-item strong { font-size: 14px; }
.mapa-ficha-precio { font-size: 14px; font-weight: 800; color: var(--blue); }
.mapa-ficha-precio small { font-weight: 500; color: var(--muted); }
.mapa-ficha-precio span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

.mapa-home { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
             padding: 20px 22px; margin: 34px 0 0; }
.mapa-home h2 { margin: 0 0 6px; font-size: 20px; }
.mapa-home .mapa-lienzo { height: 420px; }

.mapa-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mapa-nota { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; place-items: center; z-index: 100; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox .close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 34px; cursor: pointer; }
.lightbox .arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 44px; cursor: pointer; padding: 0 18px; user-select: none; }
.lightbox .arrow.left { left: 8px; }
.lightbox .arrow.right { right: 8px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 20px 18px;
          text-align: center; color: #fff; font-size: 14px;
          background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.admin-table th { background: var(--blue); color: #fff; font-weight: 600; }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.status.pending { background: #fff4d6; color: #8a6d00; }
.status.confirmed { background: #e3f1ea; color: var(--green); }
.status.rejected { background: #f0f0f0; color: var(--muted); text-decoration: line-through; }
.status.awaiting_payment { background: var(--blue-light); color: var(--blue); }
.status.expired { background: #f0f0f0; color: var(--muted); }
.status.refunded { background: #f3e9d8; color: #8a6d00; }
.pay-warn { color: var(--red); font-weight: 600; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0 26px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--blue-light); padding: 3px 7px; border-radius: 6px; font-size: 13px; word-break: break-all; }

/* Editor de precios (admin) */
.price-editor { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; background: var(--bg); }
.price-editor .pe-head { margin-bottom: 12px; font-size: 16px; }
.pe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pe-grid .field { margin-bottom: 6px; }
.dow-row { display: flex; gap: 6px; flex-wrap: wrap; }
.dow { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line);
       border-radius: 8px; padding: 6px 10px; font-size: 14px; cursor: pointer; }
.dow input { width: auto; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0 0; cursor: pointer; }
.chk input { width: auto; }
.guest-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ga { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff;
      border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 74px; }
.ga span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ga input { width: 64px; text-align: center; padding: 6px; border: 1px solid #c4c4c4; border-radius: 6px; }
.ga em { font-size: 12px; color: var(--accent); font-style: normal; font-weight: 700; padding: 7px 0; }
.offer { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fff; }
.offer.on { border-color: var(--leaf-light); background: var(--bg); }
.offer .chk { font-size: 15px; margin: 0 0 8px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.offer-grid .field { margin: 0; }
.disc { display: flex; gap: 6px; }
.disc input { flex: 1; }
.disc select { width: auto; }
.offer-desc { width: 100%; margin-top: 8px; padding: 8px; border: 1px solid #c4c4c4; border-radius: 6px; font-size: 14px; }

.pe-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pe-msg { font-size: 13px; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px; line-height: 1.9; }
.footer a { color: inherit; text-decoration: underline; }
.footer a:hover { text-decoration: none; }

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  /* En móvil la destacada ocupa el ancho completo y las demás van de dos en dos.
     Las proporciones 2.04fr/1fr y el aspect-ratio están calculados para que
     tanto la grande como las pequeñas salgan a 4:3. */
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2.04fr 1fr 1fr; aspect-ratio: 1 / 1.53; }
  .gallery .main { grid-column: 1 / -1; grid-row: 1; }
  .gallery.few { grid-template-rows: 2.04fr 1fr; aspect-ratio: 1 / 1.14; }
  .gallery.few .main { grid-column: 1 / -1; grid-row: 1; }
  .gallery.one { aspect-ratio: 4 / 3; grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .mapa-lienzo { height: 260px; }
  .mapa-home .mapa-lienzo { height: 320px; }
  .rev-resumen { grid-template-columns: 1fr; gap: 14px; }
  .rev-slider { grid-template-columns: minmax(0, 1fr) 100px 26px; }
}
