/* Estilos para el banner de cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--darker);
  color: var(--text-light);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-text a:hover {
  text-decoration: none;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.875rem;
}

.cookie-btn-accept-all {
  background-color: var(--primary);
  color: white;
}

.cookie-btn-accept-all:hover {
  background-color: var(--primary-hover);
}

.cookie-btn-settings {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
  border-color: var(--text-light);
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
  border-color: var(--text-light);
}

/* Modal de configuración de cookies */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-content {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-light);
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.cookie-modal-close:hover {
  color: var(--text-light);
}

.cookie-modal-body {
  padding: 1rem;
}

.cookie-preference {
  margin-bottom: 1.5rem;
}

.cookie-preference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-preference-title {
  font-weight: 600;
  color: var(--text-light);
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
  background-color: var(--primary);
}

input:checked + .cookie-toggle-slider:before {
  transform: translateX(26px);
}

.cookie-preference-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.cookie-modal-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Estilos para la página de política de cookies */
.legal-section {
  padding: 4rem 0;
  background-color: var(--dark);
}

.legal-content {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-section-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-light);
}

.legal-section-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-light);
}

.legal-section-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-section-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.legal-section-content ul li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.legal-section-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-section-content a:hover {
  text-decoration: none;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}
