/* ========================================
   BANNER DE COOKIES - ESTILOS AISLADOS
   Prefijo .cookie-consent-banner y .cb- para
   evitar conflictos con .header-* y resto del sitio
   ======================================== */

.cookie-consent-banner {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  z-index: 9999;
  font-family: inherit;
}

.cookie-consent-banner *,
.cookie-consent-banner *::before,
.cookie-consent-banner *::after {
  box-sizing: border-box;
}

/* Barra principal del banner */
.cb-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-height: 56px;
}

/* Contenedor interno para ancho máximo */
.cb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Bloque de texto */
.cb-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.9375rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.cb-text .cb-link {
  color: #f59e0b;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cb-text .cb-link:hover {
  color: #fbbf24;
}

/* Contenedor de botones */
.cb-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Botones del banner (solo dentro de .cookie-consent-banner) */
.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cb-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.cb-btn--accept {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.cb-btn--accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

.cb-btn--reject {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cb-btn--reject:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Oculto por defecto hasta que JS decida mostrarlo */
.cookie-consent-banner.cb-hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .cb-bar {
    padding: 1rem;
    min-height: auto;
  }

  .cb-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cb-text {
    min-width: 100%;
    font-size: 0.875rem;
  }

  .cb-btns {
    justify-content: center;
  }

  .cb-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}
