/* ==========================================================================
   DISEÑO GDPR - ACORDE PERFECTO (DARK THEME)
   ========================================================================== */

/* 1. Definimos la paleta exacta de Acorde Perfecto */
:root {
    /* Mapeo de colores del sitio web al banner */
    --gdpr-background: #1b150d;       /* Fondo tipo "Tarjeta" (marrón muy oscuro) */
    --gdpr-text-primary: #ffffff;     /* Títulos en blanco */
    --gdpr-text-secondary: #cbad90;   /* Texto descriptivo en beige */

    --gdpr-accent: #f27f0c;           /* Naranja Corporativo */
    --gdpr-accent-hover: #d9720b;     /* Naranja más oscuro para hover */

    --gdpr-button-bg: #231a10;        /* Fondo botones secundarios (marrón base) */
    --gdpr-button-border: #493622;    /* Bordes sutiles */
    --gdpr-button-text: #ffffff;      /* Texto botones secundarios */

    --gdpr-primary-btn-text: #231a10; /* Texto del botón Aceptar (Oscuro sobre Naranja) */

    --gdpr-border: #493622;           /* Borde del banner */
}

/* 2. Estilos del Banner */

/* Contenedor principal */
#gdpr-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    max-height: 90vh;
    background-color: var(--gdpr-background);
    color: var(--gdpr-text-primary);
    border: 1px solid var(--gdpr-border);
    /* Sombra suave para separarlo del fondo */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    z-index: 10000;
    /* Fuente del sitio */
    font-family: "Be Vietnam Pro", "Noto Sans", sans-serif;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Vista detallada (oculta por defecto) */
#gdpr-consent-detailed {
    display: none;
    padding: 24px;
    overflow-y: auto;
    /* Scrollbar fina para webkit */
    scrollbar-width: thin;
    scrollbar-color: var(--gdpr-accent) var(--gdpr-background);
}

#gdpr-consent-simple {
    padding: 24px;
}

/* Títulos */
#gdpr-consent-banner h1 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gdpr-text-primary);
    line-height: 1.2;
}

/* Textos */
#gdpr-consent-banner p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gdpr-text-secondary);
    margin-bottom: 20px;
}

/* Enlaces dentro del texto */
#gdpr-consent-banner a {
    color: var(--gdpr-accent);
    text-decoration: underline;
    transition: color 0.2s;
}
#gdpr-consent-banner a:hover {
    color: #ffffff;
}

/* Contenedor de botones */
.gdpr-consent-banner-buttons {
    display: flex;
    flex-direction: column; /* En móvil mejor columna, luego ajustamos */
    gap: 10px;
    margin-top: 10px;
}

@media (min-width: 400px) {
    .gdpr-consent-banner-buttons {
        flex-direction: row;
    }
}

/* Estilo Base de Botones */
#gdpr-consent-banner button {
    flex-grow: 1;
    padding: 10px 16px;
    border: 1px solid var(--gdpr-button-border);
    border-radius: 8px;
    background-color: var(--gdpr-button-bg);
    color: var(--gdpr-button-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

/* Hover botones secundarios */
#gdpr-consent-banner button:hover {
    border-color: var(--gdpr-text-secondary);
    background-color: #2a1f15;
}

/* BOTÓN ACEPTAR (Estilo "Pedir Presupuesto") */
#gdpr-consent-banner button#gdpr-consent-accept {
    background-color: var(--gdpr-accent);
    border-color: var(--gdpr-accent);
    color: var(--gdpr-primary-btn-text); /* Texto oscuro para contraste */
}

#gdpr-consent-banner button#gdpr-consent-accept:hover {
    background-color: var(--gdpr-accent-hover);
    border-color: var(--gdpr-accent-hover);
}

/* Toggles (Interruptores) en vista detallada */
.gdpr-consent-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gdpr-border);
}

.gdpr-consent-toggle:last-child {
    border-bottom: none;
}

.gdpr-consent-toggle-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--gdpr-text-primary);
}

/* Checkboxes personalizados (opcional, para que encajen mejor) */
input[type="checkbox"] {
    accent-color: var(--gdpr-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* --- ESTILOS PARA LA VISTA EXPANDIDA --- */
#gdpr-consent-banner.is-expanded {
    width: 450px; /* Un poco más ancho para leer mejor */
    max-width: 90vw;
}

#gdpr-consent-banner.is-expanded #gdpr-consent-detailed {
    display: block;
}
#gdpr-consent-banner.is-expanded #gdpr-consent-simple {
    display: none;
}
