/* Módulo de reservas de NexIA (superagente/plantillas/reservas). Toma los colores y la letra de la web con estas variables:
 * defínelas en el CSS de la web (por ejemplo en :root) con los colores de su marca y no toques este fichero. */
:root {
  --res-acento: var(--color-primario, #0b6e4f);
  --res-acento-texto: #fff;
  --res-texto: inherit;
  --res-suave: rgba(0, 0, 0, .62);
  --res-fondo: transparent;
  --res-tarjeta: #fff;
  --res-borde: rgba(0, 0, 0, .12);
  --res-radio: 14px;
  --res-sombra: 0 6px 24px rgba(0, 0, 0, .08);
  --res-ok: #1b7f3b;
  --res-alerta: #b42318;
  --res-fuente-titulos: inherit;
}
[data-reservas] { color: var(--res-texto); background: var(--res-fondo); }
[data-reservas] *, [data-reservas] *::before, [data-reservas] *::after { box-sizing: border-box; }
.res-cargando, .res-vacio { color: var(--res-suave); padding: 1.5rem 0; }
.res-error { color: var(--res-alerta); }
.res-aviso { background: color-mix(in srgb, var(--res-acento) 10%, transparent); border-left: 4px solid var(--res-acento); padding: .6rem .9rem; border-radius: 8px; font-size: .92rem; }

.res-tarjetas { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.res-tarjeta { background: var(--res-tarjeta); border: 1px solid var(--res-borde); border-radius: var(--res-radio); overflow: hidden; box-shadow: var(--res-sombra);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .res-tarjeta:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); } }
.res-tarjeta-foto { position: relative; display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--res-acento) 12%, #eee); }
.res-tarjeta-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-tarjeta-cuerpo { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.res-tarjeta h3 { margin: 0; font-family: var(--res-fuente-titulos); font-size: 1.2rem; line-height: 1.25; }
.res-tarjeta h3 a { color: inherit; text-decoration: none; }
.res-destino { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--res-acento); font-weight: 700; }
.res-resumen { margin: 0; color: var(--res-suave); }
.res-meta { margin: 0; font-size: .88rem; color: var(--res-suave); }
.res-tarjeta-pie { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.res-precio { margin: 0; font-size: 1.25rem; font-weight: 800; }
.res-precio small { font-size: .75rem; font-weight: 500; color: var(--res-suave); }
.res-ejemplo { position: absolute; top: .6rem; left: .6rem; background: #fff3c4; color: #7a5800; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 99px; }
h1 .res-ejemplo { position: static; vertical-align: middle; }

.res-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--res-acento); color: var(--res-acento-texto); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.res-boton:hover { filter: brightness(1.08); }
.res-boton:focus-visible, .res-campo input:focus-visible, .res-campo select:focus-visible, .res-campo textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--res-acento) 45%, transparent); outline-offset: 2px; }
.res-boton:disabled { opacity: .6; cursor: progress; }

.res-ficha-cab h1 { font-family: var(--res-fuente-titulos); margin: .2rem 0 .4rem; line-height: 1.15; }
.res-galeria { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 1.2rem 0; border-radius: var(--res-radio); }
.res-galeria img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; scroll-snap-align: start; border-radius: var(--res-radio); }
@media (min-width: 900px) { .res-galeria { grid-auto-columns: minmax(48%, 1fr); } }
.res-ficha-cuerpo { display: grid; gap: 2rem; }
@media (min-width: 900px) { .res-ficha-cuerpo { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .res-salidas { position: sticky; top: 1rem; } }
.res-ficha h2 { font-family: var(--res-fuente-titulos); font-size: 1.3rem; margin: 1.6rem 0 .7rem; }
.res-itinerario { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.res-itinerario li { display: grid; grid-template-columns: 4.2rem 1fr; gap: .8rem; }
.res-itinerario p { margin: .2rem 0 0; color: var(--res-suave); }
.res-dia { background: var(--res-acento); color: var(--res-acento-texto); border-radius: 8px; font-size: .78rem; font-weight: 700; text-align: center; padding: .3rem .2rem; height: fit-content; }
.res-incluye li::marker { content: "✓  "; color: var(--res-ok); }
.res-no-incluye li::marker { content: "✕  "; color: var(--res-suave); }

.res-salidas { background: var(--res-tarjeta); border: 1px solid var(--res-borde); border-radius: var(--res-radio); padding: 1.1rem; box-shadow: var(--res-sombra); }
.res-salidas h2 { margin-top: 0; }
.res-lista-salidas { list-style: none; margin: 0; padding: 0; }
.res-lista-salidas li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 0; border-top: 1px solid var(--res-borde); }
.res-precio-salida { font-weight: 700; }
.res-plazas { display: inline-block; font-size: .78rem; padding: .1rem .5rem; border-radius: 99px; background: color-mix(in srgb, var(--res-ok) 12%, transparent); color: var(--res-ok); }
.res-pocas { background: #fff3c4; color: #7a5800; }
.res-completa, .res-cerrada { background: rgba(0, 0, 0, .07); color: var(--res-suave); }
.res-proximas { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.res-proximas a { color: inherit; text-decoration: none; }

.res-form { display: grid; gap: .9rem; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--res-acento); }
.res-form h3 { margin: 0; }
.res-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .7rem; }
.res-form legend { font-weight: 700; margin-bottom: .4rem; }
.res-campo { display: grid; gap: .25rem; font-size: .88rem; color: var(--res-suave); }
.res-campo input, .res-campo select, .res-campo textarea { font: inherit; font-size: 16px; color: inherit; background: #fff; border: 1px solid var(--res-borde); border-radius: 10px; padding: .6rem .7rem; min-height: 44px; width: 100%; }
.res-viajero { display: grid; gap: .5rem; padding: .6rem; border: 1px dashed var(--res-borde); border-radius: 10px; }
.res-viajero > span { font-size: .8rem; font-weight: 700; }
@media (min-width: 520px) { .res-viajero { grid-template-columns: 1fr 1fr; } .res-viajero > span { grid-column: 1 / -1; } }
.res-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; }
.res-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--res-acento); }
.res-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.res-total { font-weight: 800; margin: 0; }
.res-nota { font-size: .8rem; color: var(--res-suave); margin: 0; }
.res-ok { margin-top: 1rem; padding: 1rem; border-radius: 10px; background: color-mix(in srgb, var(--res-ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--res-ok) 40%, transparent); }
.res-ok h3 { margin-top: 0; color: var(--res-ok); }
@media (prefers-reduced-motion: reduce) { .res-tarjeta { transition: none; } }
