/* ===== Components.css ===== */


/* ===== BOTONES (diseño aprobado, bloque 14) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.btn-primary { background-color: var(--color-primary); border-color: var(--color-primary); color: #FFFFFF; }
.btn-primary:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #FFFFFF; }
.btn-secondary { background-color: #FFFFFF; color: var(--color-text); border-color: var(--color-text); }
.btn-secondary:hover { background-color: var(--color-bg-light); color: var(--color-text); }
.btn-outline { background-color: #FFFFFF; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background-color: var(--color-primary-light); color: var(--color-primary-dark); }
.btn-danger { background-color: var(--color-danger); border-color: var(--color-danger); color: #FFFFFF; }
.btn-danger:hover { background-color: #8E1C1C; border-color: #8E1C1C; color: #FFFFFF; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--color-primary-soft); outline-offset: 2px; }

/* ===== CAMPOS ===== */
.form-group { margin-bottom: var(--spacing-6); }
.form-label { display: block; margin-bottom: var(--spacing-2); font-size: var(--font-size-sm); font-weight: 600; color: var(--color-text); }
.form-control {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-family: inherit;
    font-size: var(--font-size-base);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--border-radius-md);
    background-color: #FFFFFF;
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-focus); }
.form-control::placeholder { color: var(--color-text-lighter); }

/* ===== TARJETAS ===== */
.card { background-color: #FFFFFF; border: 1px solid var(--color-border); border-radius: var(--border-radius-lg); transition: box-shadow var(--transition-base); }
.card:hover { box-shadow: var(--shadow-md); }
.card-header { padding: var(--spacing-6); border-bottom: 1px solid var(--color-border); }
.card-body { padding: var(--spacing-6); }
.card-footer { padding: var(--spacing-6); border-top: 1px solid var(--color-border); }

/* ===== AVISOS ===== */
.alert { padding: 0.875rem 1rem; border: 0; border-radius: var(--border-radius-md); margin-bottom: var(--spacing-4); font-size: 0.9375rem; }
/* Sitio para la × de cerrar: el relleno de arriba pisaba el de base.css y en el móvil el texto quedaba debajo de la ×
   (revisión en producción, 24-oct-2026). Con dos clases gana también a los .alert de cada página. */
.alert.alert-dismissible { padding-right: 2.75rem; }
.alert-success { background-color: var(--color-success-bg); color: var(--color-success); }
.alert-warning { background-color: var(--color-warning-bg); color: var(--color-warning); }
.alert-error, .alert-danger { background-color: var(--color-danger-bg); color: var(--color-danger); }
.alert-info { background-color: var(--color-primary-light); color: var(--color-primary-dark); }

/* ===== ETIQUETAS ===== */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; font-size: 0.78125rem; font-weight: 600; border-radius: var(--border-radius-pill); white-space: nowrap; }
.badge-primary { background-color: var(--color-primary-light); color: var(--color-primary); }
.badge-secondary { background-color: var(--color-bg-light); color: var(--color-text-light); }
.badge-outline { background-color: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.badge-success { background-color: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background-color: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger { background-color: var(--color-danger-bg); color: var(--color-danger); }

/* ===== LOADING ===== */
.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-2);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(29, 27, 34, 0.55);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
}

/* Todas las ventanas del proyecto se abren y cierran con display (style.display='flex'
   o la clase .show). La regla anterior las dejaba con opacity:0 y visibility:hidden
   salvo con .is-open, que nada usaba: ninguna ventana se veía. */
.modal.is-open,
.modal.show {
    display: flex;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: var(--spacing-6);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: var(--spacing-6);
}

.modal-footer {
    padding: var(--spacing-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-3);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-1);
    color: var(--color-text-light);
}

.modal-close:hover {
    color: var(--color-text);
}
/* ===== LEGAL DOCUMENTS ===== */
.legal-container {
    max-width: 780px;
    margin: 2.5rem auto;
    padding: 2rem 1.5rem;
    font-family: var(--font-family-base);
}

.legal-content {
    color: #1D1B22;
    line-height: 1.7;
}

.legal-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1D1B22;
    margin-bottom: 1.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1D1B22;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E7E5EC;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #3A3742;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #3A3742;
    margin-bottom: 1.125rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.125rem;
    padding-left: 1.5rem;
}

.legal-content li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #3A3742;
    margin-bottom: 0.375rem;
}

.legal-content a {
    color: #7B2AC5;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.legal-content a:hover {
    color: #6420A6;
}

.legal-content strong {
    font-weight: 600;
    color: #1D1B22;
}

/* Version footer */
.legal-meta {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E7E5EC;
    font-size: 0.75rem;
    color: #6E6A78;
    text-align: center;
}

.legal-meta p {
    margin: 0 0 0.15rem 0;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 1.25rem 1rem;
        margin: 1rem auto;
    }
    
    .legal-content h1 {
        font-size: 1.4rem;
    }
    
    .legal-content h2 {
        font-size: 1.1rem;
    }
}
/* ===== COOKIE INVENTORY TABLE ===== */
.cookie-inventory {
    margin-top: 2rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.cookie-table th {
    background: #F6F5F8;
    text-align: left;
    padding: 0.75rem;
    font-weight: 600;
    color: #3A3742;
    border-bottom: 2px solid #E7E5EC;
    font-size: 0.8125rem;
}

.cookie-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #F6F5F8;
    color: #5E5A66;
    vertical-align: top;
}

.cookie-table tr:hover td {
    background: #F6F5F8;
}

.cookie-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.cookie-badge.consent-required {
    background: #FFF3DC;
    color: #6E4900;
}

.cookie-badge.consent-not-required {
    background: #E5F5EC;
    color: #146B43;
}
/* ==========================================================================
   Aviso en el hueco de un mapa público cuando no hay consentimiento funcional
   (RH-A-16). Lo pinta js/mapa_consentimiento.js.
   ========================================================================== */
.mapa-sin-consentimiento {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background: #F6F5F8;
    border: 1px dashed #C9C6CF;
    border-radius: 16px;
    padding: 1.5rem;
}
.mapa-sin-consentimiento__caja {
    max-width: 30rem;
    text-align: center;
    color: #3A3742;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.mapa-sin-consentimiento__caja strong {
    display: block;
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
    color: #1D1B22;
}
.mapa-sin-consentimiento__caja p {
    margin: 0 0 1rem;
}
.mapa-sin-consentimiento__boton {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: #7B2AC5;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.mapa-sin-consentimiento__boton:hover {
    background: #6420A6;
}
.mapa-sin-consentimiento__enlace {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #5E5A66;
}

/* Filtros del catálogo y de las experiencias en el móvil.
   Los dos campos de fecha llevan min-width:130px escrito en la propia etiqueta y, con
   la palabra «Fechas:» delante, se salían 9 px de una pantalla de 390. */
@media (max-width: 768px) {
    .cat-filter-group2 {
        flex-wrap: wrap;
        max-width: 100%;
        box-sizing: border-box;
    }
    .cat-filter-group2 input[type="date"] {
        min-width: 0 !important;
        flex: 1 1 8rem;
    }
}

/* ==========================================================================
   Aviso de cookies (bloque 14): tarjeta blanca, «Aceptar» morado, «Rechazar» secundario
   ========================================================================== */
.rh-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 920px; margin: 0 auto; background: #FFFFFF; color: #1D1B22; border: 1px solid #E7E5EC; border-radius: 16px; box-shadow: 0 10px 30px rgba(29, 27, 34, 0.12); padding: 1.125rem 1.25rem; }
.rh-cookies__texto { margin: 0 0 0.875rem; font-size: 0.875rem; line-height: 1.55; color: #3A3742; }
.rh-cookies__enlace { color: #7B2AC5; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.rh-cookies__detalle { background: #F6F5F8; border-radius: 12px; padding: 0.875rem 1rem; margin-bottom: 0.875rem; font-size: 0.84375rem; color: #3A3742; }
.rh-cookies__botones { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-btn { font-family: inherit; border: 1px solid transparent; padding: 0.625rem 1.125rem; border-radius: 12px; cursor: pointer; font-size: 0.875rem; font-weight: 600; transition: background-color .15s; }
.cookie-btn-accept { background: #7B2AC5; color: #FFFFFF; }
.cookie-btn-accept:hover { background: #6420A6; }
.cookie-btn-reject { background: #FFFFFF; color: #1D1B22; border-color: #1D1B22; }
.cookie-btn-reject:hover { background: #F6F5F8; }
.cookie-btn-config { background: transparent; color: #5E5A66; border-color: #E7E5EC; }
.cookie-btn-config:hover { background: #F6F5F8; color: #1D1B22; }
.rh-cookies__ajustes { position: fixed; bottom: 1rem; left: 1rem; z-index: 200; width: 40px; height: 40px; border: 1px solid #E7E5EC; border-radius: 50%; background: #FFFFFF; color: #5E5A66; cursor: pointer; box-shadow: 0 4px 14px rgba(29, 27, 34, 0.12); }
.rh-cookies__ajustes:hover { color: #7B2AC5; }
/* Auditoría 24-oct (74): el botón redondo flotante tapaba el texto que pasaba por debajo en todas las pantallas
   del móvil (pie, tarjetas, avisos). Las cookies se configuran desde «Configurar cookies» del pie y del menú del
   panel; el botón queda en la página (el script lo usa) pero no se enseña. */
.rh-cookies__ajustes { display: none !important; }

/* Campo de archivo en castellano (lo monta el script de base.html) */
.rh-archivo { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; max-width: 100%; }
.rh-archivo { position: relative; }
.rh-archivo__input { position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; min-width: 0 !important; max-width: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.rh-archivo__btn { border: 1px solid #7B2AC5; background: #FFFFFF; color: #7B2AC5; border-radius: 12px; padding: 0.5rem 0.9rem; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.rh-archivo__btn:hover { background: #F2EAFB; }
.rh-archivo__nombre { font-size: 0.875rem; color: #5E5A66; overflow-wrap: anywhere; }

/* Etiquetas de estado comunes */
.rh-estado { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.78125rem; font-weight: 600; white-space: nowrap; background: #E5F5EC; color: #146B43; }
.rh-estado--pendiente { background: #FFF3DC; color: #946200; }
.rh-estado--error { background: #FCE8E8; color: #B42525; }
.rh-estado--info { background: #F2EAFB; color: #7B2AC5; }
.rh-estado--neutro { background: #F6F5F8; color: #5E5A66; }

/* ==========================================================================
   Piezas comunes de la web pública (bloque 14, propuesta 2): rejilla de tarjetas,
   tarjeta de alojamiento o experiencia, paginación y resultado vacío.
   ========================================================================== */
.rh-rejilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rh-tarj { min-width: 0; }
.rh-tarj__f { position: relative; }
.rh-tarj__f > a { display: block; }
.rh-tarj__f img, .rh-tarj__sinfoto { display: block; width: 100%; aspect-ratio: 20 / 19; object-fit: cover; border-radius: 16px; background: #F6F5F8; }
.rh-tarj__sinfoto { display: flex; align-items: center; justify-content: center; color: #6E6A78; font-size: 0.875rem; }
.rh-tarj__et { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 70px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #FFFFFF; border-radius: 999px; padding: 4px 10px; font-size: 0.78125rem; font-weight: 600; color: #1D1B22; }
.rh-tarj__fav { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: flex; align-items: center; justify-content: center; color: #1D1B22; cursor: pointer; }
.rh-tarj__fav svg { fill: none; }
.rh-tarj__fav.cat-card__fav--active { color: #7B2AC5; }
.rh-tarj__fav.cat-card__fav--active svg { fill: currentColor; }
.rh-tarj h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin: 12px 0 2px; line-height: 1.3; }
.rh-tarj h3 a { color: #1D1B22; text-decoration: none; }
.rh-tarj h3 a:hover { color: #7B2AC5; }
.rh-tarj__m { color: #5E5A66; font-size: 0.875rem; }
.rh-tarj__p { margin-top: 6px; color: #1D1B22; font-size: 0.9375rem; }
.rh-tarj__p b { font-weight: 600; }
.rh-tarj__r { font-size: 0.75rem; color: #6E6A78; }
.rh-vacio { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: #5E5A66; }
.rh-vacio svg { color: #6E6A78; margin-bottom: 0.5rem; }
.rh-vacio h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.rh-paginas { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 2rem; }
.rh-paginas a, .rh-paginas span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 0.875rem; text-decoration: none; }
.rh-paginas a { color: #1D1B22; border: 1px solid #E7E5EC; background: #FFFFFF; }
.rh-paginas a:hover { background: #F6F5F8; }
.rh-paginas__actual { background: #1D1B22; color: #FFFFFF; border: 1px solid #1D1B22; }
@media (max-width: 1100px) { .rh-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rh-rejilla { grid-template-columns: minmax(0, 1fr); } }

/* Con barra fija de reserva abajo (fichas en el móvil), los botones flotantes suben para no taparla. */
@media (max-width: 860px) {
  body:has(.fx-barra) .rh-cookies__ajustes { bottom: 84px; }
  body:has(.fx-barra) .inc { bottom: 84px; }
}

/* ==========================================================================
   Páginas sueltas del huésped (reclamación y su confirmación) con el diseño del bloque 14:
   caja blanca con borde y radio 20, campos y botones del diseño.
   ========================================================================== */
.reclamacion-container, .exito-container { max-width: 720px; margin: 40px auto 64px; padding: 28px; background: #FFFFFF; border: 1px solid #E7E5EC; border-radius: 20px; }
.reclamacion-container h1, .exito-container h1 { font-size: 30px; margin-bottom: 8px; }
.reclamacion-container > p, .exito-container > p { color: #5E5A66; }
.reclamacion-form { margin-top: 20px; display: grid; gap: 4px; }
.reclamacion-form .form-group { margin-bottom: 14px; }
.reclamacion-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #1D1B22; }
.reclamacion-form input[type=text], .reclamacion-form input[type=email], .reclamacion-form input[type=tel], .reclamacion-form select, .reclamacion-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #C9C6CF; border-radius: 12px; font: inherit; font-size: 15px; color: #1D1B22; background: #FFFFFF; }
.reclamacion-form input:focus, .reclamacion-form select:focus, .reclamacion-form textarea:focus { outline: none; border-color: #7B2AC5; box-shadow: 0 0 0 3px #F2EAFB; }
.reclamacion-form small { display: block; margin-top: 6px; color: #5E5A66; font-size: 13px; }
.btn-enviar, .btn-volver { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.75rem 1.25rem; border: 0; border-radius: 12px; background: #7B2AC5; color: #FFFFFF; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; justify-self: start; }
.btn-enviar:hover, .btn-volver:hover { background: #6420A6; color: #FFFFFF; }
@media (max-width: 760px) { .reclamacion-container, .exito-container { margin: 20px 16px 48px; padding: 20px; } .reclamacion-container h1, .exito-container h1 { font-size: 26px; } }

/* ==========================================================================
   Proceso de reserva, pago y confirmación (bloque 14): página gris clara y cajas blancas con
   borde y radio 20. Las pantallas que ya tenían sus contenedores (crear reserva, pago, «Mi
   reserva») los conservan y aquí solo se ajusta su aspecto.
   ========================================================================== */
.rh-flujo { background: #F6F5F8; padding: 48px 16px 72px; }
.rh-flujo__caja { max-width: 640px; margin: 0 auto; background: #FFFFFF; border: 1px solid #E7E5EC; border-radius: 20px; padding: 32px; }
.rh-flujo__caja--estrecha { max-width: 500px; text-align: center; }
.rh-flujo__caja--centro { text-align: center; }
.rh-flujo__caja h1 { font-size: 30px; margin-bottom: 10px; }
.rh-flujo__caja > p { color: #5E5A66; }
.rh-flujo__form { display: grid; gap: 12px; margin-top: 18px; }
.rh-codigo { font-size: 2rem !important; text-align: center; letter-spacing: 10px; padding: 12px !important; }
.rh-flujo__nota { font-size: 14px; color: #5E5A66; margin: 16px 0 0; }
.rh-flujo__ok { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #E5F5EC; color: #146B43; margin-bottom: 12px; }
.rh-flujo__datos { display: grid; gap: 8px; margin: 18px 0; padding: 16px 0; border-top: 1px solid #E7E5EC; border-bottom: 1px solid #E7E5EC; text-align: left; font-size: 15px; }
.rh-flujo__datos div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rh-flujo__datos dt { color: #5E5A66; }
.rh-flujo__datos dd { margin: 0; font-weight: 600; color: #1D1B22; overflow-wrap: anywhere; }
.rh-flujo__caja .btn { margin-top: 8px; }

/* Crear reserva, pago y «Mi reserva»: fondo gris y cajas con borde (sin sombras) */
body:has(.reserva-container, .pago-container, main.mr) .main-content { background: #F6F5F8; }
.reserva-container .alojamiento-card, .reserva-container .host-card, .reserva-container .form-card,
.pago-container .resumen-card, .pago-container .pago-card, .price-card { box-shadow: none !important; border: 1px solid #E7E5EC; border-radius: 20px !important; }
main.mr .mr-bloque { border-radius: 16px; }
@media (max-width: 760px) { .rh-flujo { padding: 24px 16px 56px; } .rh-flujo__caja { padding: 22px; } .rh-flujo__caja h1 { font-size: 26px; } }

/* Pantallas sencillas del panel (bloque 14) */
.rh-panel-pag h1 { font-size: 30px; margin-bottom: 16px; }
.rh-caja { background: #FFFFFF; border: 1px solid #E7E5EC; border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
.rh-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rh-fila p { margin: 4px 0 0; color: #5E5A66; font-size: 14.5px; }
.rh-vacio-caja { text-align: center; color: #5E5A66; }
.rh-datos { display: grid; gap: 10px; margin: 0; }
.rh-datos div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid #E7E5EC; padding-bottom: 10px; }
.rh-datos div:last-child { border-bottom: 0; padding-bottom: 0; }
.rh-datos dt { color: #5E5A66; }
.rh-datos dd { margin: 0; font-weight: 600; color: #1D1B22; }

/* En el panel del anfitrión el acceso a las cookies está al pie del menú lateral; el botón flotante
   tapaba el último enlace del menú (auditoría global). */
body:has(.db-side) .rh-cookies__ajustes { display: none !important; }
.db-side__cookies { display: block; margin: 1.5rem 1rem 1rem; padding: 0; background: none; border: 0; color: #A7A3B0; font: inherit; font-size: 0.8125rem; text-decoration: underline; cursor: pointer; text-align: left; }
.db-side__cookies:hover, .db-side__cookies:focus-visible { color: #FFFFFF; }

/* Auditoría 24-oct (107): las capas de Leaflet llevan z-index 400-1000 y, sin un contexto propio, el mapa
   pasaba por encima de la cabecera fija (z-index 100) al bajar por la página. Cada mapa queda en su propia capa. */
.leaflet-container { isolation: isolate; }

/* Tablas que en el móvil pasan a tarjetas (auditoría 24-oct: 79, 81, 82). Cada celda lleva data-label con el
   nombre de su columna; en pantallas estrechas la cabecera se oculta y cada fila se ve como una tarjeta. */
@media (max-width: 640px) {
  .rh-tabla-tarjetas, .rh-tabla-tarjetas tbody, .rh-tabla-tarjetas tr, .rh-tabla-tarjetas td { display: block; width: 100%; }
  .rh-tabla-tarjetas thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rh-tabla-tarjetas tr { border: 1px solid #E7E5EC; border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; background: #FFFFFF; }
  .rh-tabla-tarjetas td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 6px 0;
                          border: 0; border-bottom: 1px solid #F1EFF4; text-align: right; word-break: break-word; }
  .rh-tabla-tarjetas td:last-child { border-bottom: 0; }
  .rh-tabla-tarjetas td[data-label]::before { content: attr(data-label); flex: 0 0 auto; font-weight: 600; color: #5E5A66; text-align: left; }
  .rh-tabla-tarjetas td[colspan] { display: block; text-align: left; }
  .rh-tabla-tarjetas td.num { text-align: right; }
}
