
/* === Banner de cookies fijo abajo === */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: none;
  align-items: center;
  padding: 20px 25px;
  box-shadow: 0 4px 15px var(--box-shadow-color);
  border: 3px solid var(--text-color);
  border-radius: 16px;
  z-index: 10000;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto 15px auto;
}

/* Icono cookie */
.cookie-banner .icono-cookie {
  font-size: 2.4rem;
  color: var(--text-color);
}

.cookie-banner .cookie-texto {
  flex: 1;
}

.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.cookie-banner a {
  color: var(--text-color);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-botones {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-botones button {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease, transform 0.15s ease;
}

.cookie-botones button:hover,
.cookie-botones button:focus {
  background-color: var(--button-bg-hover);
  outline: none;
  transform: translateY(-2px);
}

/* === Panel de configuración como VENTANA MODAL === */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenido del modal */
.cookie-modal-content {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 10px var(--box-shadow-color);
  animation: fadeIn 0.3s ease-in-out;
}

.cookie-modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-color);
  font-size: 1.5rem;
}

.cookie-modal-content p {
  color: var(--text-color);
  font-size: 0.95rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--input-border);
}

.cookie-option span {
  font-weight: 500;
}

.cookie-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-color);
  margin: 4px 0 10px 0;
}

/* Switch personalizado */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch:hover .slider {
  box-shadow: 0 0 0 3px rgba(202, 166, 77, 0.3);
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: var(--cancel-bg-hover);
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: var(--input-bg);
  border-radius: 50%;
  transition: 0.4s;
}

.switch input:checked + .slider {
  background-color: var(--button-bg);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

/* Ocultar el panel por defecto */
.oculto {
  display: none;
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Botones del banner adaptativos en móvil */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    max-width: unset;
  }

  .cookie-banner .icono-cookie {
    font-size: 2rem;
    align-self: center;
  }

  .cookie-banner .cookie-texto {
    width: 100%;
  }

  .cookie-botones {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .cookie-botones button {
    flex: 1 1 auto;
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}


