/* Cookie Consent Banner — dentalulloa.mx */

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #172C62;
  color: #fff;
  padding: 1rem 1.5rem;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
}

.cc-banner.active {
  display: block;
}

.cc-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cc-text {
  margin-bottom: 1rem;
}

.cc-text a {
  color: #9CD2CE;
  text-decoration: underline;
}

.cc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cc-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.cc-btn:hover {
  transform: translateY(-1px);
}

.cc-btn-accept {
  background: #27ACAF;
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 1rem;
}

.cc-btn-accept:hover {
  background: #229a9d;
}

.cc-btn-config {
  background: transparent;
  color: #9CD2CE;
  text-decoration: underline;
  padding: 0.6rem 0.5rem;
}

/* Modal de configuración */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cc-modal-overlay.active {
  display: flex;
}

.cc-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  color: #172C62;
}

.cc-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.cc-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.cc-modal-body {
  padding: 1.5rem;
}

.cc-category {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e5e5;
}

.cc-category:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

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

.cc-category-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cc-category-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* Toggle switch */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

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

.cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.2s;
}

.cc-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cc-toggle input:checked + .cc-toggle-slider {
  background: #27ACAF;
}

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

.cc-toggle input:disabled + .cc-toggle-slider {
  background: #27ACAF;
  opacity: 0.7;
  cursor: not-allowed;
}

.cc-always-on {
  font-size: 0.75rem;
  color: #27ACAF;
  font-weight: 600;
}

.cc-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.cc-btn-save {
  background: #172C62;
  color: #fff;
}

.cc-btn-save:hover {
  background: #0f1f45;
}


/* Responsive */
@media (max-width: 600px) {
  .cc-banner {
    padding: 1rem;
    bottom: 60px; /* Espacio para sticky bar dolor */
  }

  .cc-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-btn {
    text-align: center;
  }

  .cc-btn-config {
    text-align: center;
  }
}
