/* CookieFirst custom styles */
.cookiefirst-root{
  font-family: "Avenir", "Helvetica Neue", Arial, sans-serif;
} 

/**************************************************
 COOKIEFIRST – Banner centrado (como referencia)
 - Título encima del texto (no inline)
 - Título misma fuente/tamaño/peso que el texto
 - Contenido centrado verticalmente en el banner
 - Respira entre bloque texto y bloque botones
 - Botones apilados, largos, redondeados
**************************************************/

/* ===== BARRA GENERAL ===== */
[data-cookiefirst-widget="banner"]{
  background: #3b3b3b !important;
  color: #dddddd !important;
  padding: 18px 56px !important;
  font-family: inherit !important;
  
	width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* Oculta logo */
[data-cookiefirst-widget="banner"] img{
  display: none !important;
}

/* ===== CONTENEDOR PRINCIPAL: 50/50 y centrado ===== */
[data-cookiefirst-widget="banner"] .cf7ddU{
  width: min(1200px, 100%) !important;
  margin: 0 auto !important;

  display: grid !important;
  grid-template-columns: 1fr 1fr !important; /* 50/50 */
  align-items: center !important;
  column-gap: 64px !important;               /* “respiración” entre bloques */
}

/* ===== BLOQUE TEXTO: SIEMPRE EN COLUMNA ===== */
[data-cookiefirst-widget="banner"] .cf1XPf{
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}

/* Título = mismo que texto */
[data-cookiefirst-widget="banner"] h2{
  display: block !important;
  margin: 0 0 8px 0 !important;
  font-size: 12px !important;
  font-weight: 100 !important;
  line-height: 1.4 !important;
  color: #dddddd !important;
}

/* Texto */
[data-cookiefirst-widget="banner"] p{
  display: block !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: #dddddd !important;
  max-width: 520px !important; /* evita que se “estire” demasiado */
}

/* ===== COLUMNA DERECHA: alinear botonera a la derecha ===== */
[data-cookiefirst-widget="banner"] .cf7ddU > .cf2L3T{
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

/* Botonera: apilada siempre y ocupa ~25% del total */
[data-cookiefirst-widget="banner"] .cf3Tgk{
  width: min(320px, 25vw) !important;  /* ~25% total aprox */
  display: flex !important;
  flex-direction: column !important;   /* APILADO */
  gap: 0px !important;
  align-items: stretch !important;
}

/* Wrappers del botón a full */
[data-cookiefirst-widget="banner"] .cf1lHZ{
  width: 100% !important;
}

/* Botones */
[data-cookiefirst-widget="banner"] button[data-cookiefirst-action]{
  width: 100% !important;
  height: 34px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  padding: 0 18px !important;
  box-shadow: none !important;
  text-transform: none !important;
  margin: 0 !important;
}

/* Accept (blanco) */
[data-cookiefirst-widget="banner"] button[data-cookiefirst-action="accept"]{
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
}

/* Deny + Adjust (negro) */
[data-cookiefirst-widget="banner"] button[data-cookiefirst-action="reject"],
[data-cookiefirst-widget="banner"] button[data-cookiefirst-action="adjust"]{
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
}

/* Hover suave */
[data-cookiefirst-widget="banner"] button[data-cookiefirst-action]:hover{
  filter: brightness(1.06) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  [data-cookiefirst-widget="banner"]{
    padding: 14px 16px !important;
  }

  [data-cookiefirst-widget="banner"] .cf7ddU{
    grid-template-columns: 1fr !important;
    row-gap: 16px !important;
    column-gap: 0 !important;
  }

  [data-cookiefirst-widget="banner"] .cf7ddU > .cf2L3T{
    justify-content: flex-start !important;
  }

  [data-cookiefirst-widget="banner"] .cf3Tgk{
    width: 100% !important;
  }

  [data-cookiefirst-widget="banner"] p{
    max-width: none !important;
  }
}
/* FIX anti-scroll horizontal sin tocar botones */
[data-cookiefirst-widget="banner"] .cf7ddU{
  min-width: 0 !important;
  max-width: min(1200px, calc(100vw - 112px)) !important; /* 56px izq + 56px der */
  box-sizing: border-box !important;
}

[data-cookiefirst-widget="banner"] .cf1XPf,
[data-cookiefirst-widget="banner"] .cf7ddU > .cf2L3T{
  min-width: 0 !important;
}
.cf2L3T.cfysV4.cf2mE1.cft\/zhdb {
    margin: 0 auto;
}

[data-cookiefirst-widget="banner"] .cfZo2x h2 {
font-weight: 100 !important;
}

/* Columna izquierda: apila logo + titulo + texto y alinea todo a la izquierda */
[data-cookiefirst-widget="banner"] .cf1XPf.cf2L3T.cf3ItN{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;  /* <- clave */
  text-align: left !important;
}

/* Por si algún wrapper impone centrado */
[data-cookiefirst-widget="banner"] .cfZo2x,
[data-cookiefirst-widget="banner"] .cfZo2x h2{
  width: 100% !important;
  text-align: left !important;
}

/* Texto */
[data-cookiefirst-widget="banner"] .cfT5lw,
[data-cookiefirst-widget="banner"] .cfEa3L{
  width: 100% !important;
  text-align: left !important;
}

/* El logo (span + a) que no empuje el centrado */
[data-cookiefirst-widget="banner"] .cf1f8N.cf1uIq{
  align-self: flex-start !important;
}




/********************************************************
COOKIEFIRST – MODAL (panel de preferencias)
Objetivo:
- Fondo blanco
- Texto negro
- Contornos NEGROS visibles en todos los botones
- Sin accent naranja
********************************************************/

/* =====================================================
0) Base del modal
===================================================== */
[data-cookiefirst-widget="modal"],
.cookiefirst-root .cf1AP_,
.cookiefirst-root .cf1AP_ .cf3F2u,
.cookiefirst-root .cf1AP_ .cf11wW,
.cookiefirst-root .cf1AP_ .cflmka,
.cookiefirst-root .cf1AP_ .cf1jsC {
  background: #fff !important;
}

/* Texto siempre negro */
.cookiefirst-root .cf1AP_,
.cookiefirst-root .cf1AP_ * {
  color: #000 !important;
}

/* =====================================================
1) BOTONES – regla base (la más importante)
===================================================== */
.cookiefirst-root .cf1AP_ button {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #000 !important; /* CONTORNO NEGRO */
  box-shadow: none !important;
}

/* Asegura texto negro incluso en spans internos */
.cookiefirst-root .cf1AP_ button *,
.cookiefirst-root .cf1AP_ button span {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

/* =====================================================
2) FOCUS / ACCESSIBILIDAD (negro, no naranja)
===================================================== */
.cookiefirst-root .cf1AP_ button:focus,
.cookiefirst-root .cf1AP_ button:focus-visible,
.cookiefirst-root .cf1AP_ a:focus,
.cookiefirst-root .cf1AP_ a:focus-visible {
  outline: 2px solid #000 !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

/* Desactiva variables accent */
button[data-cookiefirst-outline-accent-color="true"] {
  --banner-outline-color: #000 !important;
}

/* =====================================================
3) HOVER (feedback sutil)
===================================================== */
.cookiefirst-root .cf1AP_ button:hover {
  background: #f5f5f5 !important;
}

/* =====================================================
4) TABS (Ajustes / Cookies / Política)
===================================================== */

/* Tab inactivo */
.cookiefirst-root .cf1AP_ button[role="tab"][aria-selected="false"] {
  border: 1px solid #ccc !important;
  background: #fff !important;
}

/* Tab activo */
.cookiefirst-root .cf1AP_ button[role="tab"][aria-selected="true"] {
  border: 1px solid #000 !important;
  border-bottom: 2px solid #000 !important;
  background: #fff !important;
}

/* =====================================================
5) BOTONES DE ACCIÓN INFERIORES
===================================================== */

/* Primarios (Aceptar / Guardar) */
.cookiefirst-root .cf1AP_ button[data-cookiefirst-button="primary"] {
  background: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
}

.cookiefirst-root .cf1AP_ button[data-cookiefirst-button="primary"] span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Secundarios (Rechazar) */
.cookiefirst-root .cf1AP_ button[data-cookiefirst-button="secondary"] {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #000 !important;
}

/* =====================================================
6) BOTONES TIPO LINK (categorías, más info)
===================================================== */
.cookiefirst-root .cf1AP_ button[data-cookiefirst-button="link"] {
  background: transparent !important;
  border: 1px solid #000 !important; /* visible */
  color: #000 !important;
}