/* =========================================
   COOKIE CONSENT
========================================= */

.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cookie-banner__content {
  flex: 1;
}

.cookie-banner__content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.cookie-banner__content p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.cookie-banner__link {
  font-size: 13px;
  color: #db152d;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}


/* BUTTONS */

.cookie-btn {
  border: 1px solid #db152d;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.cookie-btn--primary {
  background: #db152d;
  color: #fff;
}

.cookie-btn--primary:hover {
  background: #bd1025;
}

.cookie-btn--secondary {
  background: #fff;
  color: #db152d;
}

.cookie-btn--secondary:hover {
  background: #f7f7f7;
}


/* =========================================
   SETTINGS MODAL
========================================= */

.cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.cookie-modal.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cookie-modal__box {
  position: relative;
  z-index: 1;
  width: calc(100% - 40px);
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 35px;
  background: #fff;
}

.cookie-modal__box h3 {
  margin: 0 0 15px;
  color: #333;
}

.cookie-modal__box > p {
  margin-bottom: 25px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}

.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 28px;
  cursor: pointer;
}


/* OPTIONS */

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 18px 0;
  border-top: 1px solid #eee;
}

.cookie-option__text {
  flex: 1;
}

.cookie-option__text strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.cookie-option__text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #777;
}

.cookie-required {
  font-size: 12px;
  color: #777;
}


/* SWITCH */

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

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

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #ccc;
  border-radius: 30px;
  transition: .2s;
}

.cookie-switch__slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: #db152d;
}

.cookie-switch input:checked + .cookie-switch__slider:before {
  transform: translateX(20px);
}

.cookie-modal__actions {
  padding-top: 25px;
  text-align: right;
}


/* RESPONSIVE */

@media (max-width: 768px) {

  .cookie-banner__inner {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .cookie-banner__actions {
    flex-wrap: wrap;
  }

  .cookie-btn {
    flex: 1;
  }

  .cookie-modal__box {
    padding: 30px 20px 20px;
  }

}
/* =========================================
   GOOGLE MAPS PLACEHOLDER
========================================= */

.map-consent {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 30px;
  background: #f5f5f5;
  text-align: center;
}

.map-consent__inner {
  max-width: 430px;
}

.map-consent strong {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-size: 16px;
}

.map-consent p {
  margin: 0 0 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}
/***************
botón cookies
************/
.cookie-settings-link {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus {
  text-decoration: underline;
}