/* ============================
   BANNER FAUNISM COOKIES
============================ */
.fauni-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: 640px;
  width: calc(100% - 32px);
  background-color: rgba(20, 20, 20, 0.95);
  color: #ffffff;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: none;           /* JS lo cambiará a flex */
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  z-index: 99999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fauni-cookie-banner__text {
  margin: 0;
  line-height: 1.5;
}

.fauni-cookie-banner__text a,
.fauni-cookie-banner__text a:visited {
  color: #ffd966;
  text-decoration: underline;
}

.fauni-cookie-banner__text a:hover,
.fauni-cookie-banner__text a:focus {
  color: #ffeb99;
}

/* Cerrar (X) */
.fauni-cookie-banner__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* Botones del banner */
.fauni-cookie-banner__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Botones base */
.fauni-btn {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fauni-btn--primary {
  background-color: #0073aa;
  color: #ffffff;
}

.fauni-btn--primary:hover {
  background-color: #005f8a;
}

.fauni-btn--outline {
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.fauni-btn--outline:hover {
  background-color: #ffffff;
  color: #111111;
}

.fauni-btn--ghost {
  background-color: transparent;
  color: #ffffff;
  border: none;
  text-decoration: underline;
}

.fauni-btn--ghost:hover {
  color: #ffeb99;
}

/* ============================
   ICONO FLOTANTE
============================ */
.fauni-cookie-icon {
    position: fixed;
    bottom: 20px;
    right: 70px;        /* ← MOVIDO 50px a la izquierda del scroll-up */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;    /* ← REDUCIDO */
    line-height: 1;     /* ← CLAVE para centrar emoji */
    padding: 0 !important; 
    margin: 0;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}



/* ============================
   MODAL DE CONFIGURACIÓN
============================ */
.fauni-cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999999;
}

.fauni-cookie-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fauni-cookie-modal__content {
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 10px;
    max-width: 480px;
    width: 90%;
    padding: 12px 16px;     /* ← REDUCIDO aún más */
    margin: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    color: #222222;
}


.fauni-cookie-modal__header,
.fauni-cookie-modal__body,
.fauni-cookie-modal__buttons {
  margin: 0;
  padding: 0;
}

.fauni-cookie-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 !important;           /* ← ZERO margen */
    padding: 0 !important;          /* ← ZERO padding */
    min-height: 24px;               /* ← Altura mínima exacta */
}

.fauni-cookie-modal__title {
    margin: 0 !important;           /* ← MÁS FUERTE */
    padding: 0 !important;          /* ← MÁS FUERTE */
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;               /* ← SIN espacios extra */
    display: inline-block;          /* ← Evita bloques raros */
}

.fauni-cookie-modal__header,
.fauni-cookie-modal__header * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


.fauni-cookie-modal__close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.fauni-cookie-modal__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px 0;    /* ← SIN espacios extra */
    padding: 0;
}


.fauni-cookie-modal__body p {
  margin: 0 0 6px 0;
}

.fauni-cookie-modal__buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;              /* ← SIN espacios extra */
    padding: 0;
}


/* ============================
   RESPONSIVE
============================ */
@media (max-width: 480px) {
  .fauni-cookie-banner {
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 12px 14px;
    font-size: 13px;
  }

  .fauni-cookie-modal__buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;              /* ← SIN espacios extra */
    padding: 0;
}

  .fauni-cookie-icon {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .fauni-cookie-modal__content {
    width: 94%;
    padding: 16px 18px;
    font-size: 13px;
  }
}

/* X VISIBLE en modal */
.fauni-cookie-modal__close {
    background: transparent;
    border: none;
    font-size: 24px;        /* ← MÁS GRANDE */
    color: #666 !important; /* ← COLOR VISIBLE */
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    margin: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fauni-cookie-modal__close:hover {
    color: #0073aa !important;
    background: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
}