/* static/css/panel.css — CSS del panel del huésped, el que es IGUAL para
   todos los paneles. Sacado de templates/base.html el 2026-09-17 (paso 4 del
   rendimiento): antes viajaba inline en cada carga (48 KB). Lo único que sigue
   inline en base.html es el bloque :root{} con los colores por empresa, que
   interpola Jinja. Se sirve con Cache-Control de 7 días y URL versionada por
   contenido (?v=md5, static_v en app.py): editar este fichero ya invalida la
   caché solo, sin reciclar. REGLA: CSS constante → aquí; CSS con Jinja →
   inline en la plantilla. Ver CLAUDE.md § "Rendimiento paso 4".
   Formato: sin minificar a propósito (diffs legibles). */
/* ==== fin cabecera ==== */
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: 'Montserrat', sans-serif;
            background-color: #ffffff;
            color: var(--color-text);
            margin: 0;
            padding: 0;
        }
        .panel-container {
            max-width: 480px;
            margin: 0 auto;
            padding: 25px;
        }
        /* ============================================================
           FAMILIA CANÓNICA DE BOTONES DE ACCIÓN — `.btn-cta`
           ------------------------------------------------------------
           Estilo único para todos los botones del panel huésped.
           - Cyan del tema (`--color-primary`), MAYÚSCULAS, icono al
             final (→ avanzar / ✓ confirmar).
           - Tamaño base: pill pequeño inline (usado en cards de opciones).
           - `.btn-cta-block` modificador → full-width grande con lift,
             para CTA principal (Reservar, Pagar, Registrar, Acepto,
             Guardar, Confirmar).
           - El icono va en un `<span class="btn-cta-icon">` para que la
             flecha/check tenga su propia opacidad/tamaño.
           Cuando llegue el `company_style`, basta personalizar esta
           familia y todos los botones del panel cambian a la vez.
           ============================================================ */
        .btn-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            box-sizing: border-box;
            background-color: var(--color-cta);
            color: var(--color-cta-text);
            border: none;
            border-radius: 999px;
            padding: 8px 18px;
            font-size: 0.85em;
            font-weight: 600;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            white-space: nowrap;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
            transition: background-color 0.15s,
                        transform        0.15s,
                        box-shadow       0.15s;
        }
        .btn-cta:hover:not(:disabled) {
            background-color: var(--color-cta-dark);
        }
        .btn-cta:disabled {
            cursor: wait;
            opacity: 0.7;
        }
        .btn-cta-icon {
            font-size: 1.08em;
            line-height: 1;
            opacity: 0.9;
        }
        /* Variante "ghost" (secundaria / destructiva suave): misma píldora y
           tamaño que .btn-cta pero APAGADA — contorno neutro, sin relleno. En
           reposo es gris (claramente subordinada a un .btn-cta sólido al lado);
           al hover revela la intención destructiva en rojo. El rojo del panel es
           el idioma del error, así que sólo aparece al ir a actuar. Uso: pareja
           "PAGAR (sólido) · DESCARTAR (ghost)". Aplicar como `btn-cta btn-cta-ghost`. */
        .btn-cta.btn-cta-ghost {
            background-color: transparent;
            color: #888;
            border: 1px solid #d3d3d3;
            box-shadow: none;
        }
        .btn-cta.btn-cta-ghost:hover:not(:disabled) {
            background-color: rgba(204,50,50,0.06);
            border-color: #c44;
            color: #b33;
        }
        /* Deja partir la etiqueta en dos líneas. La familia es `nowrap` a
           propósito (un CTA cortado se lee mal), pero hay botones con etiqueta
           larga por traducción — "Comparte este panel" es CONDIVIDI QUESTO
           PANNELLO en italiano, 25 caracteres en mayúsculas — que en un móvil
           de 320px desbordarían la tarjeta. Aplicar `btn-cta btn-cta-wrap`. */
        .btn-cta.btn-cta-wrap {
            white-space: normal;
            max-width: 100%;
        }
        .btn-cta-block {
            display: flex;
            width: 100%;
            padding: 12px 24px;
            font-size: 0.95em;
            border-radius: 28px;
            letter-spacing: 0.07em;
        }
        .btn-cta-block:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.18);
        }
        .btn-cta-block:active:not(:disabled) {
            transform: translateY(0);
            box-shadow: 0 1px 3px rgba(0,0,0,0.12);
        }
        /* ============================================================
           GATES BLOQUEANTES — familia visual común de los pasos que cortan
           el acceso a las puertas (estrenada en el check-in online; luego
           tarjeta / políticas / pagos bloqueantes se migrarán a esta misma
           estética). Tres piezas: el banner de urgencia (.gate-banner, arriba
           del panel), la tarjeta del gate (.gate-card, destacada con acento de
           marca + badge + icono familia b21 + CTA + footer de consecuencia con
           candado) y el placeholder de "acceso bloqueado" (.gate-locks-ph,
           donde irían las llaves). Ver _gate_card.html / _gate_banner.html.
           ============================================================ */
        .gate-card {
            position: relative;
            background: #ffffff;
            border: 1px solid var(--color-primary-dark);
            border-top: 6px solid var(--color-primary);
            border-radius: 14px;
            margin: 18px 0;
            padding: 24px 22px 18px;
            text-align: center;
            box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 2px 5px rgba(0,0,0,0.07);
            animation: gate-pop 0.28s ease-out;
        }
        @keyframes gate-pop {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .gate-badge {
            display: inline-block;
            background-color: var(--color-cta);
            color: var(--color-cta-text);
            font-size: 0.66em;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            padding: 5px 14px;
            border-radius: 20px;
            margin-bottom: 12px;
        }
        .gate-icon-wrap { margin: 2px 0 12px; }
        .gate-icon-wrap img { width: 96px; height: 96px; object-fit: contain; }
        .gate-title {
            font-size: 1.2em;
            font-weight: 700;
            color: var(--color-primary-dark);
            margin: 0 0 10px;
        }
        .gate-body {
            font-size: 1.0em;
            line-height: 1.5;
            color: var(--color-text);
            margin: 0 auto 18px;
            max-width: 400px;
        }
        .gate-cta-wrap { margin: 0 0 16px; }
        .gate-cta-wrap .btn-cta { min-width: 240px; }
        /* CTA URGENTE del gate de check-in (decisión del usuario 2026-09-04,
           tras ver 4 propuestas en mockup): el botón "Firmar checkin" pasaba
           desapercibido como "uno más". Dos piezas, ambas CSS puro:
           - .gate-chevrons: tres chevrones del color CTA que caen en cascada
             hacia el botón (señalan DÓNDE pulsar), va justo encima del CTA.
           - .btn-cta-urgent: modificador sobre .btn-cta-block — un poco más
             alto, sombra del color CTA, un reflejo de luz que recorre el botón
             cada ~3 s (::after, por eso overflow:hidden) y la flecha del icono
             empujando. Solo el gate de check-in lo lleva; el resto de botones
             del panel no cambia. Todo se apaga con prefers-reduced-motion. */
        .gate-chevrons {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; height: 34px; margin: -2px 0 8px;
        }
        .gate-chevrons span {
            width: 13px; height: 13px; margin-top: -5px;
            border-right: 3px solid var(--color-cta);
            border-bottom: 3px solid var(--color-cta);
            transform: rotate(45deg); opacity: 0;
            animation: gate-chev 1.7s ease-in-out infinite;
        }
        .gate-chevrons span:nth-child(1) { animation-delay: -0.45s; }
        .gate-chevrons span:nth-child(2) { animation-delay: -0.25s; }
        .gate-chevrons span:nth-child(3) { animation-delay: 0s; }
        @keyframes gate-chev {
            0%   { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
            45%  { opacity: 1; }
            100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
        }
        .btn-cta.btn-cta-urgent {
            position: relative; overflow: hidden;
            padding-top: 14px; padding-bottom: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.18);
            box-shadow: 0 4px 12px color-mix(in srgb, var(--color-cta) 45%, transparent);
        }
        .btn-cta.btn-cta-urgent::after {
            content: ""; position: absolute; top: -10%; left: -70%;
            width: 45%; height: 120%; pointer-events: none;
            background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 50%, rgba(255,255,255,0) 100%);
            transform: skewX(-22deg);
            animation: gate-sheen 3.2s ease-in-out infinite;
        }
        @keyframes gate-sheen { 0% { left: -70%; } 38% { left: 130%; } 100% { left: 130%; } }
        .btn-cta.btn-cta-urgent .btn-cta-icon {
            display: inline-block; opacity: 1;
            animation: gate-nudge 1.2s ease-in-out infinite;
        }
        @keyframes gate-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
        @media (prefers-reduced-motion: reduce) {
            .gate-chevrons span { animation: none; opacity: 0.7; }
            .btn-cta.btn-cta-urgent::after,
            .btn-cta.btn-cta-urgent .btn-cta-icon { animation: none; }
        }
        /* «Agenda de tu reserva» con algo pendiente HOY (2026-09-16). La card
           sube encima de «Apertura de puertas» CERRADA, y la cabecera resume
           qué hay: píldora HOY + «hora · nombre» + «y N más» (infos.html,
           `info.agenda_hoy` de services/agenda.py). La píldora es blanca
           sobre la cabecera oscura, así que el reflejo va en el color
           PRIMARIO (un destello blanco sobre blanco no se ve) y reutiliza el
           keyframe `gate-sheen` del check-in — mismo tempo, mismo lenguaje;
           encima, un halo que late (`hoy-halo`). overflow:hidden recorta el
           reflejo pero NO la propia sombra, por eso conviven. Maqueta
           aprobada 2026-09-16 (opción 3, reflejo + halo). */
        .seccion.ag-hoy {
            border-color: var(--color-primary);
            box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.30),
                        0 1px 3px  rgba(0,0,0,0.06);
        }
        .seccion-header.has-sub { flex-wrap: wrap; }
        .ag-head-hoy {
            flex: 0 0 100%;
            display: flex; align-items: center; justify-content: center;
            gap: 8px; flex-wrap: wrap;
            margin-top: 2px; font-size: 13px; color: #ffffff; line-height: 1.3;
            padding-right: 18px;   /* que el chevron absoluto no pise «y N más» */
        }
        .ag-head-pill {
            position: relative; overflow: hidden;
            display: inline-block; padding: 2px 10px; border-radius: 999px;
            font-size: 11px; font-weight: 800; letter-spacing: .8px;
            background: #ffffff; color: var(--color-primary-dark);
            animation: hoy-halo 2s ease-in-out infinite;
        }
        .ag-head-pill::after {
            content: ""; position: absolute; top: -10%; left: -70%;
            width: 45%; height: 120%; pointer-events: none;
            background: linear-gradient(115deg,
                rgba(var(--color-primary-rgb), 0)    0%,
                rgba(var(--color-primary-rgb), 0.55) 50%,
                rgba(var(--color-primary-rgb), 0)    100%);
            transform: skewX(-22deg);
            animation: gate-sheen 3.2s ease-in-out infinite;
        }
        @keyframes hoy-halo {
            0%, 100% { box-shadow: 0 0 0 0   rgba(255,255,255,0.55); }
            55%      { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
        }
        .ag-head-hora { font-weight: 700; font-variant-numeric: tabular-nums; }
        .ag-head-sep  { opacity: 0.6; }
        .ag-head-mas  { opacity: 0.8; }
        @media (prefers-reduced-motion: reduce) {
            .ag-head-pill, .ag-head-pill::after { animation: none; }
        }
        /* Línea de progreso real del check-in Tulipán (X de N viajeros). */
        .gate-progress { font-size: 0.9em; font-weight: 600; color: var(--color-primary-dark); margin: 0 0 16px; }
        /* Cuerpos de gate con lista de puntos / separador / checkbox (políticas). */
        .gate-puntos { text-align: justify; max-width: 400px; margin: 0 auto 16px; }
        .gate-puntos p { font-size: 0.86em; line-height: 1.55; margin: 0 0 11px; }
        .gate-puntos p:last-child { margin-bottom: 0; }
        .gate-sep { border: none; border-top: 1px solid var(--color-primary); opacity: 0.3; margin: 14px auto; max-width: 400px; }
        .gate-check {
            display: inline-flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.9em;
            line-height: 1.5;
            margin: 0 0 14px;
            text-align: left;
            max-width: 380px;
            cursor: pointer;
        }
        .gate-check input[type="checkbox"] {
            margin-top: 3px; width: 18px; height: 18px;
            accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0;
        }
        /* Aceptación de políticas (2026-09-18, policies.html): botón siempre
           activo pero TENUE hasta marcar la casilla (.is-idle — mismo aspecto
           que el antiguo disabled, sin su cursor de espera), y dos señales al
           interactuar: pulsar sin marcar hace temblar y resaltar la fila de la
           casilla (.is-nudge, ámbar del footer de consecuencia) y enseña el
           aviso (.gate-check-hint); marcar hace un «pop» de la casilla
           (.is-pop). Todo se apaga con prefers-reduced-motion. */
        .btn-cta.is-idle { opacity: 0.7; }
        .btn-cta.is-idle:hover { opacity: 0.85; }
        .gate-check { border-radius: 8px; padding: 6px 8px; margin-left: -8px; margin-right: -8px;
                      transition: background-color 0.3s; }
        .gate-check.is-nudge { background-color: #fff8e1; animation: gate-shake 0.45s ease-in-out; }
        .gate-check.is-nudge input[type="checkbox"] { outline: 2px solid #f0b429; outline-offset: 2px; border-radius: 3px; }
        @keyframes gate-shake {
            0%, 100% { transform: translateX(0); }
            20%      { transform: translateX(-6px); }
            40%      { transform: translateX(6px); }
            60%      { transform: translateX(-4px); }
            80%      { transform: translateX(4px); }
        }
        .gate-check input[type="checkbox"].is-pop { animation: gate-check-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
        @keyframes gate-check-pop {
            0%   { transform: scale(1); }
            50%  { transform: scale(1.35); }
            100% { transform: scale(1); }
        }
        .gate-check-hint {
            margin: -8px auto 12px; max-width: 380px; font-size: 0.82em;
            color: #8a5a00; text-align: center;
        }
        @media (prefers-reduced-motion: reduce) {
            .gate-check.is-nudge, .gate-check input[type="checkbox"].is-pop { animation: none; }
        }
        /* Inputs de formulario dentro de un gate (tarjeta de garantía). */
        .gate-input-label { display: block; font-size: 0.75em; color: #888; margin: 0 0 4px; letter-spacing: 1px; text-transform: uppercase; }
        .gate-input {
            box-sizing: border-box; font-size: 1.2em; padding: 10px 12px;
            letter-spacing: 2px; border: 1px solid var(--color-primary);
            border-radius: 8px; text-align: center;
            font-family: 'Menlo','Consolas',monospace;
        }
        .gate-err {
            margin: 0 auto 14px; max-width: 360px; padding: 10px;
            background: #ffebee; border-radius: 8px; font-size: 0.9em;
            color: #b71c1c; text-align: center;
        }
        .gate-consequence {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            text-align: left;
            background: #fff8e1;
            border: 1px solid #f3e2a8;
            border-radius: 10px;
            padding: 12px 14px;
            color: #6b5300;
            font-size: 0.86em;
            line-height: 1.45;
        }
        .gate-consequence .gate-lock { flex-shrink: 0; font-size: 1.15em; line-height: 1.3; }

        /* Banner de urgencia: charcoal (serio, neutral entre marcas) con candado
           que late suave. Clicable → ancla al gate. */
        .gate-banner {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #262626;
            color: #ffffff;
            border-radius: 12px;
            padding: 14px 18px;
            margin: 14px 0 2px;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(0,0,0,0.18);
            text-decoration: none;
        }
        .gate-banner:hover { filter: brightness(1.10); }
        .gate-banner-lock {
            font-size: 1.5em;
            line-height: 1;
            animation: gate-lock-pulse 2.2s ease-in-out infinite;
        }
        @keyframes gate-lock-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
        .gate-banner-text { flex: 1; }
        .gate-banner-title { font-weight: 700; font-size: 0.97em; }
        .gate-banner-sub { font-size: 0.82em; opacity: 0.85; margin-top: 2px; }
        .gate-banner-chevron { font-size: 1.25em; opacity: 0.7; }

        /* Banner con VARIOS bloqueadores: cabecera + lista clicable (el huésped
           elige cuál resolver ahora). Es un <div> (no <a>): no hay click global,
           cada fila lleva al suyo. */
        .gate-banner-multi {
            flex-direction: column;
            align-items: stretch;
            gap: 0;
            cursor: default;
        }
        .gate-banner-multi:hover { filter: none; }
        .gate-banner-head {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 12px;
        }
        .gate-banner-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            border-top: 1px solid rgba(255,255,255,0.15);
            padding-top: 12px;
        }
        .gate-banner-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            background: rgba(255,255,255,0.08);
            color: #ffffff;
            text-decoration: none;
            border-radius: 9px;
            padding: 11px 14px;
            font-size: 0.9em;
            font-weight: 600;
            transition: background 0.15s;
        }
        .gate-banner-item:hover { background: rgba(255,255,255,0.18); }
        .gbi-label { display: flex; align-items: center; gap: 9px; }
        .gbi-label img { width: 22px; height: 22px; object-fit: contain; filter: invert(1) brightness(1.6); }
        .gbi-go { opacity: 0.6; font-size: 1.1em; }

        /* Contenido del placeholder de "acceso bloqueado" (candado + título +
           texto). Vive dentro del .seccion-body del widget de cerraduras en
           estado bloqueado (.locks-bloqueada-body en locks.html). El contenedor
           dashed .gate-locks-ph antiguo se eliminó al pasar el placeholder a la
           concha .seccion. */
        .gate-locks-ph-lock { font-size: 2.3em; opacity: 0.45; }
        .gate-locks-ph-title { font-weight: 700; color: #555; margin: 8px 0 4px; }
        .gate-locks-ph-text { font-size: 0.88em; line-height: 1.45; max-width: 340px; margin: 0 auto; }
        /* Requisitos pendientes dentro del placeholder (2026-09-17): una fila
           por gate con marca ámbar de "pendiente", icono, etiqueta y flecha;
           clicable → ancla al widget que lo resuelve. Versión sobre fondo
           claro de .gate-banner-item (que es blanco-sobre-negro). */
        .gate-locks-ph-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-width: 340px;
            margin: 14px auto 0;
            text-align: left;
        }
        .gate-locks-ph-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #fff;
            border: 1px solid rgba(0,0,0,0.10);
            border-radius: 9px;
            padding: 10px 12px;
            font-size: 0.9em;
            font-weight: 600;
            color: #333;
            text-decoration: none;
            transition: background 0.15s, border-color 0.15s;
        }
        .gate-locks-ph-item:hover { background: #fafafa; border-color: rgba(0,0,0,0.22); }
        .glpi-mark {
            flex: 0 0 auto;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 2px solid #f39c12;   /* ámbar = pendiente (convención del proyecto) */
            box-sizing: border-box;
        }
        .gate-locks-ph-item img { width: 22px; height: 22px; object-fit: contain; }
        .glpi-label { flex: 1; }
        .glpi-go { opacity: 0.5; font-size: 1.1em; }
        .gate-locks-ph-when {
            max-width: 340px;
            margin: 14px auto 0;
            font-size: 0.88em;
            line-height: 1.45;
            color: #555;
        }
        .gate-locks-ph-when .glpw-when { display: block; margin-top: 2px; font-weight: 600; color: #333; }
        .modulo-caja {
            border: 1px solid var(--color-primary-dark);
            border-radius: 10px;
            margin: 10px 0;
            overflow: hidden;
        }
        .modulo-cabecera {
            background-color: var(--color-primary);
            color: var(--color-text);
            padding: 10px 20px;
            cursor: pointer;
            font-size: 1.1em;
            font-weight: bold;
        }
        .modulo-cuerpo {
            background-color: var(--color-bg);
            padding: 15px 20px;
        }
        hr {
            border-color: var(--color-primary);
            opacity: 0.3;
        }
        /* `.seccion` = caja de un widget. Borde fino + sombra más
           marcada para que cada widget se vea como unidad cerrada y
           no se difumine contra el fondo. Más margen entre widgets
           para separación visual clara. */
        .seccion {
            background: #ffffff;
            border-radius: 14px;
            margin: 18px 0;
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.06);
            box-shadow: 0 4px 14px rgba(0,0,0,0.10),
                        0 1px 3px  rgba(0,0,0,0.06);
        }
        /* Banner del icono circular (parte superior del widget, sobre
           la cabecera). Antes era inline `style="background-color:
           var(--color-primary)"` en cada template — promovido a clase
           para coherencia y para que el cambio de paleta sea de un
           solo sitio. */
        .seccion-icon-banner {
            text-align: center;
            padding: 18px 0 0 0;
            background-color: var(--color-primary-dark);
        }
        /* Cabecera del widget. `--color-primary-dark` (cyan oscuro)
           para diferenciarla claramente de los botones `.btn-cta`
           (cyan claro). Antes ambos usaban el mismo color y se
           confundían visualmente. */
        .seccion-header {
            position: relative;
            background-color: var(--color-primary-dark);
            padding: 10px 20px 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            justify-content: center;
        }
        .seccion-header h3 {
            color: #ffffff;
            font-size: 1em;
            font-weight: 500;
            margin: 0;
            text-align: center;
        }
        /* Chevron indicador de "esta cabecera se despliega". Va absoluto a la
           derecha para no descentrar el título. La flecha se dibuja con dos
           bordes de un cuadrado rotado (apunta abajo = colapsado; gira a
           apuntar arriba = desplegado). El estado lo gestiona syncChevrons(). */
        .seccion-chevron {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 9px;
            height: 9px;
            pointer-events: none;
        }
        .seccion-chevron::before {
            content: '';
            display: block;
            width: 9px;
            height: 9px;
            border-right: 2px solid #ffffff;
            border-bottom: 2px solid #ffffff;
            border-radius: 1px;
            transform: rotate(45deg);
            transform-origin: 60% 60%;
            opacity: 0.85;
            transition: transform 0.2s ease;
        }
        .seccion-chevron.open::before { transform: rotate(225deg); }
        .seccion-header img {
            height: 24px;
            width: auto;
            filter: brightness(0) invert(1);
        }
        /* Card «Contacte con nosotros» (sections/footer.html). Antes eran tres
           PNG de 44px con su propia marca cada uno (verde WhatsApp, azul iOS,
           sobre negro) — tres identidades ajenas en una fila, y un PNG no
           puede tomar el color de la empresa. Ahora: glifo SVG inline en
           `currentColor` = primary-dark, dentro de un círculo de 44px (área
           táctil intacta) tintado con el primary al 10%, y etiqueta debajo.
           Hover/focus: el círculo se rellena con el primary y el glifo pasa
           a blanco. Con paleta negra (Cabañitas, OK The Way) queda monocromo
           a propósito. Maqueta aprobada 2026-09-09 (propuesta A). */
        .contact-links {
            display: flex;
            justify-content: center;
            gap: 26px;
            padding: 2px 0 0;
        }
        .contact-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 7px;
            text-decoration: none;
            color: var(--color-primary-dark);
            min-width: 56px;
        }
        .contact-btn .ico {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(var(--color-primary-rgb), 0.10);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
        }
        .contact-btn svg { width: 22px; height: 22px; display: block; }
        .contact-btn .lbl {
            font-size: 0.72em;
            font-weight: 500;
            letter-spacing: 0.02em;
            opacity: 0.85;
        }
        .contact-btn:hover .ico,
        .contact-btn:focus-visible .ico {
            background: var(--color-primary);
            color: #ffffff;
            transform: translateY(-1px);
        }
        .contact-btn:focus-visible { outline: none; }
        .contact-btn:focus-visible .ico { box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.35); }
        @media (prefers-reduced-motion: reduce) { .contact-btn .ico { transition: none; } }
        .seccion-body {
            padding: 16px 20px;
            font-size: 0.9em;
            color: var(--color-text);
            line-height: 1.6;
        }
        .seccion-body p {
            text-align: center;
        }

        /* ============================================================
           Patrón "lista de opciones" para widgets de info_type (9, 17,
           10, 20, 23, 24, …): título + importe + acción.
           ============================================================ */
        .opciones-list {
            background: #fff;
            border: 1px solid rgba(0,0,0,0.08);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(0,0,0,0.04);
            margin: 12px 0;
        }
        .opciones-row {
            box-sizing: border-box;
            padding: 14px 18px;
            border-top: 1px solid rgba(0,0,0,0.06);
            background: none;
            border-left: none;
            border-right: none;
            border-bottom: none;
            display: block;
            width: 100%;
            color: inherit;
            font-family: inherit;
            font-size: inherit;
        }
        .opciones-row:first-child {
            border-top: none;
        }
        .opciones-titulo {
            font-size: 1.0em;
            font-weight: 600;
            color: var(--color-text);
            margin: 0 0 10px;
            text-align: center;
        }
        .opciones-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .opciones-importe {
            font-size: 1.4em;
            color: var(--color-primary-dark);
            font-weight: 700;
            letter-spacing: -0.01em;
        }
        /* ============================================================
           Recomendaciones del entorno (sección plegable + fichas por
           familia). Reutiliza la familia `.btn-cta` para los enlaces.
           ============================================================ */
        /* La sección de recomendaciones aprieta su padding: cada familia ya
           es una caja con su propio marco. */
        .reco-body { padding: 12px; }
        /* Familia = caja colapsable con cabecera tintada → categorías
           claramente diferenciadas. */
        .reco-familia {
            margin: 0 0 10px;
            border: 1px solid rgba(0,0,0,0.10);
            border-radius: 10px;
            overflow: hidden;
        }
        .reco-familia:last-child { margin-bottom: 0; }
        .reco-familia-header {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            box-sizing: border-box;
            padding: 12px 14px;
            background: var(--color-bg);
            border: none;
            cursor: pointer;
            font-family: inherit;
            text-align: left;
        }
        .reco-familia-punto {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            flex-shrink: 0;
            box-shadow: 0 0 0 1px rgba(0,0,0,0.10);
        }
        .reco-familia-nombre {
            flex: 1;
            font-size: 0.98em;
            font-weight: 700;
            color: var(--color-text);
        }
        .reco-familia-count {
            font-size: 0.72em;
            font-weight: 600;
            color: var(--color-primary-dark);
            background: rgba(0,0,0,0.05);
            border-radius: 10px;
            padding: 2px 9px;
        }
        .reco-familia-chevron {
            font-size: 0.8em;
            color: var(--color-text);
            opacity: 0.5;
            transition: transform 0.2s;
        }
        .reco-familia-header.open .reco-familia-chevron { transform: rotate(180deg); }
        /* Cuerpo de la familia: fondo ligeramente gris para que las cards
           blancas resalten y se aprecie la separación entre ellas. */
        .reco-familia-body {
            padding: 10px 12px;
            background: #fafafa;
        }
        .reco-card {
            background: #fff;
            border: 1px solid rgba(0,0,0,0.12);
            border-radius: 12px;
            padding: 13px;
            margin: 0 0 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            overflow: hidden;
        }
        .reco-card:last-child { margin-bottom: 0; }
        /* Cabecera de la ficha (foto + nombre + desc): fondo suave tintado al
           color de marca. Se extiende a los bordes de la card con margen
           negativo y queda separada del resto (datos / botones) en blanco. */
        .reco-card-top {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            margin: -13px -13px 0;
            padding: 13px;
            background: #f4fbfb;
            background: color-mix(in srgb, var(--color-primary) 9%, #fff);
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        .reco-card-img {
            width: 84px;
            height: 84px;
            object-fit: cover;
            border-radius: 10px;
            flex-shrink: 0;
        }
        .reco-card-info { flex: 1; min-width: 0; text-align: left; }
        .reco-card-dist {
            font-size: 0.72em;
            color: var(--color-primary-dark);
            font-weight: 600;
            margin-bottom: 2px;
        }
        .reco-card-nombre {
            font-size: 1.05em;
            font-weight: 700;
            color: var(--color-text);
            line-height: 1.25;
        }
        .reco-card-desc {
            font-size: 0.82em;
            color: var(--color-text);
            opacity: 0.8;
            margin-top: 4px;
            line-height: 1.45;
        }
        .reco-card-datos {
            margin-top: 10px;
            font-size: 0.8em;
            color: var(--color-text);
            opacity: 0.85;
            text-align: left;
        }
        .reco-dato { margin-top: 3px; }
        .reco-card-acciones {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 12px;
        }
        /* Enlaces de recomendación: misma familia `.btn-cta` pero en caja
           baja (los nombres — "tripadvisor", "Google Maps" — se leen mejor
           sin MAYÚSCULAS), compactos y con el radius del botón de meteo
           (8px) en vez del pill redondo. */
        .reco-btn {
            padding: 7px 14px;
            font-size: 0.72em;
            text-transform: none;
            letter-spacing: 0;
            border-radius: 8px;
            text-decoration: none;
        }

        /* ============================================================
           Animaciones para el flow "Solicitando…" → "Aceptada".
           ============================================================ */
        .solicitando-card {
            text-align: center;
            padding: 32px 18px;
            border: 1px solid rgba(0,0,0,0.08);
            border-radius: 12px;
            background: #fff;
            animation: sol-fadein 0.2s ease-out;
        }
        .solicitando-card .hourglass {
            display: inline-block;
            font-size: 2.4em;
            line-height: 1;
            animation: sol-flip 1.5s ease-in-out infinite;
        }
        .solicitando-card .solicitando-text {
            color: var(--color-text);
            font-size: 0.95em;
            margin: 14px 0 0;
            opacity: 0.65;
            letter-spacing: 0.03em;
        }
        @keyframes sol-fadein {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        @keyframes sol-flip {
            0%, 45%      { transform: rotate(0deg); }
            50%, 95%     { transform: rotate(180deg); }
            100%         { transform: rotate(360deg); }
        }

        .aceptada-card {
            animation: aceptada-pop 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
        }
        @keyframes aceptada-pop {
            0%   { opacity: 0; transform: scale(0.92); }
            100% { opacity: 1; transform: scale(1); }
        }
        .aceptada-btn-delayed {
            animation: aceptada-btn-up 0.45s ease-out 0.5s both;
        }
        @keyframes aceptada-btn-up {
            0%   { opacity: 0; transform: translateY(14px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        /* ============================================================
           Diálogo de confirmación nativo (<dialog>) que reemplaza al
           confirm() del navegador en todos los hx-confirm de la app.
           Manejado por el listener htmx:confirm en el script al final.
           ============================================================ */
        #confirm-dialog {
            border: none;
            background: transparent;
            padding: 0;
            max-width: 380px;
            width: 90%;
            margin: auto;
        }
        #confirm-dialog::backdrop {
            background: rgba(0,0,0,0.45);
            backdrop-filter: blur(2px);
        }
        .confirm-dialog-body {
            background: #fff;
            border-radius: 12px;
            padding: 24px 22px 18px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.25);
            animation: confirm-pop 0.18s ease-out;
        }
        @keyframes confirm-pop {
            from { opacity: 0; transform: scale(0.95); }
            to   { opacity: 1; transform: scale(1); }
        }
        #confirm-dialog-question {
            font-size: 1.05em;
            color: var(--color-text);
            margin: 0 0 20px;
            text-align: center;
            line-height: 1.5;
        }
        .confirm-dialog-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        .confirm-dialog-actions button {
            flex: 1;
            padding: 10px 14px;
            border-radius: 8px;
            font-size: 0.92em;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            border: none;
            transition: background-color 0.15s, opacity 0.15s;
        }
        #confirm-dialog-cancel {
            background: #ececec;
            color: var(--color-text);
        }
        #confirm-dialog-cancel:hover { background: #dedede; }
        #confirm-dialog-ok {
            background: var(--color-primary);
            color: #fff;
        }
        #confirm-dialog-ok:hover    { background: var(--color-primary-dark); }
        #confirm-dialog-ok:disabled { opacity: 0.55; cursor: wait; }

        /* Modal informativo okAlert (acuses de acción). Mismo nivel que el de
           confirmación + tema "success" verde (icono ✓ + botón verde). */
        #alert-dialog {
            border: none; background: transparent; padding: 0;
            max-width: 360px; width: 90%; margin: auto;
        }
        #alert-dialog::backdrop { background: rgba(0,0,0,0.45); backdrop-filter: blur(2px); }
        #alert-dialog .confirm-dialog-body { text-align: center; }
        .ok-alert-icon {
            width: 56px; height: 56px; margin: 2px auto 14px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 30px; font-weight: 700; line-height: 1;
            background: rgba(var(--color-primary-rgb), 0.12); color: var(--color-primary-dark);
        }
        .ok-alert-icon.success { background: rgba(46,175,46,0.15); color: #1c7a1c; }
        #alert-dialog-msg {
            font-size: 1.02em; color: var(--color-text); margin: 0 0 18px;
            text-align: center; line-height: 1.5; font-weight: 600;
        }
        #alert-dialog-ok {
            width: 100%; padding: 11px 14px; border: none; border-radius: 8px;
            font-size: 0.95em; font-weight: 700; cursor: pointer; font-family: inherit;
            background: var(--color-primary); color: #fff; transition: background-color 0.15s;
        }
        #alert-dialog-ok:hover { background: var(--color-primary-dark); }
        #alert-dialog.success #alert-dialog-ok { background: #2eaf2e; }
        #alert-dialog.success #alert-dialog-ok:hover { background: #1c7a1c; }

        /* ============================================================
           Pago en popup: estado "procesando" del row + pulse celebración
           al detectar éxito.
           ============================================================ */
        /* Estado de espera "vivo" mientras el pago vive en el popup — misma
           estética que el widget Amapola (.amapola-paywait): recuadro cyan con
           borde sólido, spinner girando, latido del box-shadow y dos líneas
           (principal + subtexto). Sustituye al antiguo recuadro gris discontinuo
           "muerto". El morph posterior (éxito/fallo) reemplaza el innerHTML. */
        .pago-procesando {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px;
            border: 1px solid var(--color-primary);
            border-radius: 12px;
            background: color-mix(in srgb, var(--color-primary) 6%, #fff);
            margin-top: 12px;
            animation: pago-pulse 1.8s ease-in-out infinite;
        }
        .pago-procesando .pago-spin {
            width: 24px;
            height: 24px;
            flex: 0 0 auto;
            border: 2px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
            border-top-color: var(--color-primary);
            border-radius: 50%;
            animation: pago-spin 0.8s linear infinite;
        }
        .pago-procesando-text { min-width: 0; }
        .pago-procesando-main {
            font-weight: 700;
            color: var(--color-primary-dark);
            font-size: 14.5px;
        }
        .pago-procesando-sub {
            font-size: 12.5px;
            color: #777;
            margin-top: 3px;
            line-height: 1.35;
        }
        @keyframes pago-spin { to { transform: rotate(360deg); } }
        @keyframes pago-pulse {
            0%, 100% { box-shadow: 0 0 0 0 transparent; }
            50%      { box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 12%, transparent); }
        }
        @media (prefers-reduced-motion: reduce) {
            .pago-procesando { animation: none; }
        }
        .pago-procesando-link {
            font-size: 0.78em;
            color: var(--color-primary-dark);
            text-decoration: underline;
            cursor: pointer;
            background: none;
            border: none;
            font-family: inherit;
            padding: 4px;
        }
        /* Morph in-place: la card de "Pago en curso" se transforma en
           "Pago realizado" o "Pago no conseguido". El huésped ve la transición
           exactamente donde pulsó. La card persiste hasta que el huésped
           pulsa "OK" — no auto-cierra (decisión validada en sesión 2026-05-27). */
        .pago-completado,
        .pago-fallido {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            padding: 14px;
            border-radius: 8px;
            border-width: 1px;
            border-style: solid;
            margin-top: 12px;
            font-size: 0.92em;
            font-weight: 600;
        }
        .pago-completado {
            background: rgba(32, 186, 32, 0.10);
            border-color: var(--color-success);
            color: var(--color-success);
            animation: pago-morph-success 0.5s ease-out;
        }
        .pago-fallido {
            background: rgba(204, 50, 50, 0.08);
            border-color: #c44;
            color: #b33;
            animation: pago-morph-fail 0.5s ease-out;
        }
        @keyframes pago-morph-success {
            from { background: color-mix(in srgb, var(--color-primary) 6%, #fff); border-color: var(--color-primary); color: var(--color-primary-dark); font-weight: 700; }
            to   { background: rgba(32, 186, 32, 0.10); border-color: var(--color-success); color: var(--color-success); font-weight: 600; }
        }
        @keyframes pago-morph-fail {
            from { background: color-mix(in srgb, var(--color-primary) 6%, #fff); border-color: var(--color-primary); color: var(--color-primary-dark); font-weight: 700; }
            to   { background: rgba(204, 50, 50, 0.08); border-color: #c44; color: #b33; font-weight: 600; }
        }
        .pago-morph-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .pago-morph-ok {
            border: none;
            border-radius: 18px;
            padding: 6px 26px;
            font-size: 0.82em;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            color: #fff;
            opacity: 0;
            transform: scale(0.85);
            animation: pago-morph-ok-in 0.4s 0.7s ease-out forwards;
            transition: filter 0.15s;
        }
        .pago-completado .pago-morph-ok { background: var(--color-success); }
        .pago-fallido    .pago-morph-ok { background: #c44; }
        .pago-morph-ok:hover { filter: brightness(0.92); }
        @keyframes pago-morph-ok-in {
            to { opacity: 1; transform: scale(1); }
        }

        /* SVG check (éxito) y cross (fallo): el círculo y el trazo se dibujan
           con stroke-dasharray. El cross dibuja sus dos líneas escalonadas. */
        .check-svg,
        .cross-svg {
            width: 28px;
            height: 28px;
            stroke-width: 3;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            flex-shrink: 0;
        }
        .check-svg { stroke: var(--color-success); }
        .cross-svg { stroke: #c44; }
        .check-svg .check-circle,
        .cross-svg .cross-circle {
            stroke-dasharray: 166;
            stroke-dashoffset: 166;
            animation: morph-circle-draw 0.5s ease-out forwards;
        }
        .check-svg .check-mark {
            stroke-dasharray: 50;
            stroke-dashoffset: 50;
            animation: morph-stroke-draw 0.4s 0.25s ease-out forwards;
        }
        .cross-svg .cross-line {
            stroke-dasharray: 32;
            stroke-dashoffset: 32;
            animation: morph-stroke-draw 0.3s ease-out forwards;
        }
        .cross-svg .cross-line-1 { animation-delay: 0.30s; }
        .cross-svg .cross-line-2 { animation-delay: 0.45s; }
        @keyframes morph-circle-draw { to { stroke-dashoffset: 0; } }
        @keyframes morph-stroke-draw { to { stroke-dashoffset: 0; } }

        /* Importe que "respira" cuando el pago se confirma. */
        .pago-importe-display {
            transition: color 0.2s;
        }
        .pago-importe-display.celebrate {
            animation: importe-celebrate 0.7s ease-out;
        }
        @keyframes importe-celebrate {
            0%   { transform: scale(1);    color: var(--color-primary-dark); }
            35%  { transform: scale(1.10); color: var(--color-success); }
            65%  { transform: scale(1.10); color: var(--color-success); }
            100% { transform: scale(1);    color: var(--color-primary-dark); }
        }

        /* ═══ Carrusel de NOVEDADES (mini ad-server) ═══
           Ancho de card DERIVADO de --nov-visible (cuántos asoman); altura
           derivada de --nov-aspect (foto) + 2 líneas de texto. Deriva ←,
           pausa al tocar, respeta reduce-motion. */
        .novedades { margin: 4px 0 18px; }
        .novedades-cap {
            display: flex; align-items: center; gap: 8px; margin: 0 2px 9px;
            font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
            color: var(--color-primary-dark); font-weight: 800;
        }
        .novedades-cap::after {
            content: ""; flex: 1; height: 1px;
            background: linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.4), transparent);
        }
        .novedades-vp { overflow: hidden; position: relative; }
        .novedades-vp.reduced {
            overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        }
        /* Desvanecido "hay más → desliza" en el borde derecho. DEBE fundir hacia
           la superficie donde se pinta, que es el body (#fff) — NO --color-bg
           (#f0f0f0, gris, reservado a fondos de sección internos). Con --color-bg
           dejaba una franja gris sobre blanco que se notaba con pocas cards. */
        .novedades-vp::after {
            content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 26px;
            pointer-events: none;
            background: linear-gradient(90deg, rgba(255,255,255,0), #ffffff);
        }
        .novedades-track { display: flex; gap: 10px; will-change: transform; }

        .nov-card {
            flex: 0 0 auto;
            width: calc(100% / var(--nov-visible, 2.4) - 10px);
            background: #fff; border-radius: 14px; overflow: hidden; position: relative;
            box-shadow: 0 1px 2px rgba(20,40,40,0.08), 0 6px 16px rgba(20,40,40,0.10);
            scroll-snap-align: start;
        }
        .nov-link { display: block; color: inherit; text-decoration: none; }
        /* Anillo de foco SOLO con teclado (:focus-visible; con ratón/tap no deja
           el card "seleccionado") y HACIA DENTRO (offset negativo) para que el
           overflow:hidden del viewport no recorte el borde. */
        .nov-link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; border-radius: 14px; }
        .nov-photo {
            position: relative; aspect-ratio: var(--nov-aspect, 16 / 9);
            background-size: cover; background-position: center; background-color: #dfeceb;
        }
        .nov-photo::after {
            content: ""; position: absolute; inset: 0;
            background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.22));
        }
        .nov-photo[data-noimg] {
            background-image: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
        }
        .nov-body { padding: 9px 11px 34px; position: relative; }
        .nov-title {
            font-weight: 800; font-size: 0.9rem; line-height: 1.18;
            letter-spacing: -0.01em; margin-bottom: 2px; color: var(--color-text, #202020);
        }
        .nov-text {
            font-size: 0.75rem; color: #5d6a6a; line-height: 1.28;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .nov-go {
            position: absolute; right: 9px; bottom: 8px; width: 24px; height: 24px;
            border-radius: 50%; background: var(--color-primary); color: #fff;
            display: grid; place-items: center; font-size: 0.9rem;
            box-shadow: 0 3px 8px rgba(var(--color-primary-rgb), 0.45);
        }
        .nov-x {
            position: absolute; top: 6px; right: 6px; z-index: 3;
            width: 24px; height: 24px; border-radius: 50%; border: 0;
            background: rgba(20,20,20,0.5); color: #fff; font-size: 1rem; line-height: 1;
            cursor: pointer; display: grid; place-items: center;
            -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: background 0.15s;
        }
        .nov-x:hover { background: rgba(200,40,40,0.92); }
        .nov-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
        .nov-card.removing { opacity: 0; transform: scale(0.94); transition: opacity 0.3s, transform 0.3s; }
        /* Flash del destino al llegar por deep-link (click → al servicio). */
        @keyframes nov-flash-kf {
            0%, 55% { background-color: rgba(var(--color-primary-rgb), 0.16); }
            100%    { background-color: rgba(var(--color-primary-rgb), 0); }
        }
        .nov-flash { animation: nov-flash-kf 1.8s ease-out; }
    /* Toast global: aviso efímero que FLOTA sobre el contenido (position:fixed),
       no desplaza el scroll ni saca al usuario de donde está. Para validaciones
       no bloqueantes (p.ej. "máximo N por día"). */
    #ok-toast-host {
        position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
        z-index: 99999; display: flex; flex-direction: column; gap: 8px;
        align-items: center; pointer-events: none; width: max-content; max-width: 90vw;
    }
    .ok-toast {
        background: #2b2b2b; color: #fff; border-radius: 999px;
        padding: 11px 20px; font-size: 14px; font-weight: 600; text-align: center;
        box-shadow: 0 6px 22px rgba(0,0,0,.28); opacity: 0; transform: translateY(10px);
        transition: opacity .22s ease, transform .22s ease;
    }
    .ok-toast.show { opacity: 1; transform: translateY(0); }
