/* Trazos Cookie Consent Styles */

:root {
  --red: #C1282C;
  --black: #111111;
  --paper: #E8E4DD;
  --offwhite: #F5F3EE;
  --gray: #6B6B6B;
}

/* Container - barra fija en el fondo */
.cookie-consent-container {
  background-color: var(--paper) !important;
  border-top: 1px solid #d0c8bf !important;
  padding: 1.25rem !important;
  font-family: 'DM Sans', sans-serif !important;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  flex-wrap: wrap;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  pointer-events: none !important;
}

/* Mostrar con transición suave */
.cookie-consent-container.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Ocultar con transición suave */
.cookie-consent-container.hiding {
  opacity: 0 !important;
  transform: translateY(20px) !important;
  pointer-events: none !important;
}

/* Texto del cookie */
.cookie-text {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
  flex: 1;
  min-width: 250px;
}

.cookie-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.cookie-link:hover {
  opacity: 0.8;
}

/* Contenedor de botones */
.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Botones */
.cookie-consent-button {
  background-color: var(--red) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.65rem 1.5rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  white-space: nowrap;
}

.cookie-consent-button:hover {
  opacity: 0.9 !important;
}

.cookie-consent-decline-button {
  background-color: transparent !important;
  color: var(--red) !important;
  border: 1px solid var(--red) !important;
  padding: 0.65rem 1.5rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap;
}

.cookie-consent-decline-button:hover {
  background-color: var(--red) !important;
  color: #fff !important;
}

/* Responsivo */
@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem !important;
    gap: 1rem !important;
  }

  .cookie-text {
    text-align: center;
    font-size: 0.85rem;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-consent-button,
  .cookie-consent-decline-button {
    width: 100%;
    padding: 0.75rem 1rem !important;
  }
}

