/* Aviso de cookies (vista vendor/cookieConsent/dialogContents): barra inferior a todo el ancho y compacta.
   Los selectores van con .js-cookie-consent delante: app.css (bundle heredado) trae
   `.js-cookie-consent { padding; text-align: justify; box-shadow !important }` y
   `.js-cookie-consent .js-cookie-consent-agree { pastilla azul en mayúsculas; color !important }`, que con
   menos especificidad pisaban este diseño. Esta hoja se carga en el cuerpo, después de app.css. */
.js-cookie-consent.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 0;
    text-align: left;
    z-index: 9999;
    background: #0c1222;
    border-top: 2px solid #e8a838;
    box-shadow: 0 -6px 24px rgba(12, 18, 34, 0.25) !important;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

/* oculto de verdad: fuera del tabulador y del lector de pantalla; la visibilidad cambia al final del fundido */
.js-cookie-consent.cookie-consent--hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.cookie-consent__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    padding: 14px 24px;
}

.cookie-consent__content {
    flex: 1 1 420px;
    min-width: 0;
}

.cookie-consent__message {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.cookie-consent__message strong {
    color: #ffffff;
    font-weight: 600;
}

.cookie-consent__link {
    margin-left: 6px;
    font-size: 13px;
    color: #e8a838;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.cookie-consent__link:hover {
    color: #ffffff;
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

/* PARIDAD VISUAL - Botones iguales (GDPR) */
.js-cookie-consent .cookie-consent__btn {
    min-width: 128px;
    margin: 0;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    border-radius: 0;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #e8a838;
    outline-offset: 2px;
}

.js-cookie-consent .cookie-consent__btn--decline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.js-cookie-consent .cookie-consent__btn--decline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.js-cookie-consent .cookie-consent__btn--accept {
    background: #e8a838;
    color: #0c1222 !important;
    border-color: #e8a838;
}

.js-cookie-consent .cookie-consent__btn--accept:hover,
.js-cookie-consent .cookie-consent__btn--accept:focus {
    background: #d4952e;
    border-color: #d4952e;
}

/* Teléfono: texto arriba y los dos botones, iguales, debajo */
@media (max-width: 600px) {
    .cookie-consent__inner {
        padding: 12px 16px;
        gap: 10px;
    }
    .cookie-consent__message {
        font-size: 13px;
    }
    .cookie-consent__actions {
        width: 100%;
    }
    .js-cookie-consent .cookie-consent__btn {
        flex: 1;
        min-width: 0;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-cookie-consent.cookie-consent,
    .js-cookie-consent.cookie-consent--hidden {
        transition: none;
    }
}
