/* Base comun de las propuestas. Cada propuesta define sus variables:
   --bg --surf --text --muted --line --acento --acento-2 --radio --display --body */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--body); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 .5em; line-height: 1.05; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.contenedor { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--radio, 999px); border: 1.5px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s, background-color .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-principal { background: var(--acento); color: var(--sobre-acento, #fff); }
.btn-secundario { border-color: currentColor; background: transparent; }

/* Videos de fondo */
.video-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Estrellas */
.estrellas { display: inline-flex; gap: 2px; vertical-align: middle; }
.estrella { width: 1em; height: 1em; fill: var(--line); }
.estrella.llena { fill: var(--estrella, #FFC53D); }

/* Chips seleccionables */
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .9rem; line-height: 1.2; transition: background-color .2s, border-color .2s, color .2s;
}
.chip input:checked + span { background: var(--acento); border-color: var(--acento); color: var(--sobre-acento, #fff); }
.chip input:focus-visible + span { outline: 2px solid var(--acento); outline-offset: 2px; }
.elegir-servicios { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Formularios */
.campo { display: grid; gap: .35rem; }
.campo label, .campo .etiqueta { font-size: .85rem; font-weight: 600; color: var(--muted); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem; border-radius: calc(var(--radio-caja, 14px) - 4px);
  border: 1px solid var(--line); background: var(--campo, transparent);
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--acento); outline-offset: 1px; border-color: transparent; }
.fila-campos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.aviso { min-height: 1.4em; margin: .8rem 0 0; font-size: .92rem; }
.aviso.ok { color: var(--ok, #33C27F); }
.aviso.error { color: var(--error, #FF5C6C); }

/* Selector de estrellas: radios invertidos para pintar hacia la izquierda */
.elegir-estrellas { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.elegir-estrellas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.elegir-estrellas label { cursor: pointer; }
.elegir-estrellas svg { width: 34px; height: 34px; fill: var(--line); transition: fill .15s, transform .15s; }
.elegir-estrellas label:hover svg,
.elegir-estrellas label:hover ~ label svg,
.elegir-estrellas input:checked ~ label svg { fill: var(--estrella, #FFC53D); }
.elegir-estrellas input:focus-visible + label svg { outline: 2px solid var(--acento); outline-offset: 2px; border-radius: 4px; }

/* Ficha de servicio (dialog) */
.ficha-abierta { overflow: hidden; }
.ficha {
  width: min(980px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: var(--radio-caja, 20px); background: var(--surf); color: var(--text); overflow: hidden;
}
.ficha::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.ficha[open] { animation: ficha-entra .35s cubic-bezier(.2,.8,.2,1); }
@keyframes ficha-entra { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.ficha-caja { display: grid; grid-template-columns: 1.05fr 1fr; max-height: calc(100dvh - 24px); }
.ficha-medios { position: relative; min-height: 320px; background: #000; }
.ficha-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ficha-cuerpo { padding: clamp(1.4rem, 3vw, 2.4rem); overflow-y: auto; }
.ficha-cuerpo h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.ficha-cuerpo h3 { font-size: 1rem; margin-top: 1.2rem; }
.ficha-cat { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acento); }
.ficha-texto { color: var(--muted); }
.ficha-incluye { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.ficha-incluye li { position: relative; padding-left: 1.5rem; }
.ficha-incluye li::before { content: ''; position: absolute; left: 0; top: .5em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--acento); }
.ficha-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.2rem; }
.ficha-galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ficha-acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.ficha-cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
@media (max-width: 760px) {
  .ficha { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .ficha-caja { grid-template-columns: 1fr; max-height: 92dvh; overflow-y: auto; }
  .ficha-medios { min-height: 0; aspect-ratio: 16 / 10; }
  .ficha-cuerpo { overflow: visible; }
  .ficha[open] { animation-name: ficha-sube; }
  @keyframes ficha-sube { from { transform: translateY(100%); } }
}

/* WhatsApp flotante */
.wa-flotante {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 54px; padding: 0 1.1rem 0 .95rem; border-radius: 999px;
  background: #25D366; color: #06310F; font: 700 .95rem/1 var(--body); text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
}
.wa-flotante svg { width: 26px; height: 26px; fill: currentColor; }
@media (max-width: 520px) { .wa-flotante span { display: none; } .wa-flotante { padding: 0; width: 56px; justify-content: center; } }

.vacio { color: var(--muted); }
.nota-ejemplo { display: inline-block; font-size: .72rem; padding: .15rem .5rem; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); }

/* Carrusel continuo de reseñas: fila con scroll real, avanzada por JavaScript */
.carrusel-continuo { display: block !important; overflow-x: auto !important; overflow-y: hidden; scroll-snap-type: none !important;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; padding-block: .8rem 1.2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.carrusel-continuo::-webkit-scrollbar { display: none; }
.carrusel-continuo.arrastrando { cursor: grabbing; user-select: none; }
.carrusel-pista { display: flex; gap: var(--carrusel-espacio, 1.2rem); width: max-content; padding-inline: 4%; }
.carrusel-pista > * { flex: 0 0 clamp(260px, 28vw, 360px); transform: none !important; scroll-snap-align: none !important; }
@media (max-width: 560px) { .carrusel-pista > * { flex-basis: 78vw; } }
