/* Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background-color: #ece5da;
  color: #5a5030;
  font-family: 'Cormorant Garamond', serif;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.2);
  z-index: 9999;
  padding: 1.2em 1em;
  display: none;
}

.cookie-banner-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
  text-align: center;
}

.cookie-banner-text {
  font-size: 1rem;
}

.cookie-link {
  color: #5a5030;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1em;
  box-sizing: border-box;
}

.btn-cookie {
  background-color: #5a5030;
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Cormorant Garamond', serif;
  transition: background-color 0.3s ease;
}

.btn-cookie:hover {
  background-color: #3c3620;
}

.btn-rechazar {
  background-color: #a3a097;
}

.btn-rechazar:hover {
  background-color: #88857f;
}
/* Panel de preferencias: conserva la gama crema y chocolate del sitio. */
.cookie-buttons { flex-wrap: wrap; justify-content: center; }
.btn-cookie, .btn-rechazar, .btn-configurar { min-height: 44px; border-radius: 999px; font-weight: 600; }
.btn-rechazar { background-color: #766d59; color: #fff; }
.btn-configurar { background: transparent; color: #5a5030; border: 1px solid #5a5030; }
.btn-configurar:hover { background: #ded3c3; }
.cookie-preferences { width: min(100%, 760px); padding: 1em; border-top: 1px solid rgba(90,80,48,.25); text-align: left; }
.cookie-preferences[hidden] { display: none; }
.cookie-preferences-intro { margin: 0 0 .7em; }
.cookie-option { display: flex; align-items: center; gap: .8em; padding: .7em .2em; border-bottom: 1px solid rgba(90,80,48,.16); }
.cookie-option input { width: 1.1em; height: 1.1em; accent-color: #766044; flex: 0 0 auto; }
.cookie-option span { display: grid; gap: .15em; flex: 1; }
.cookie-option small { font-size: .88em; }
.cookie-option b { font-size: .85em; }
.cookie-preferences-actions { display: flex; justify-content: center; padding-top: .9em; }
.cookie-map-placeholder { min-height: 12rem; display: grid; place-content: center; justify-items: center; gap: .5rem; padding: 1.5rem; background: #ece5da; color: #5a5030; text-align: center; }
.cookie-map-placeholder[hidden] { display: none; }
.cookie-map-placeholder p { margin: 0; }
iframe[data-cookie-map-src] { display: none; }
iframe[data-cookie-map-src][data-cookie-map-loaded="true"] { display: block; }
@media (max-width: 640px) {
  .cookie-banner { max-height: 85vh; overflow-y: auto; }
  .cookie-buttons { width: 100%; gap: .55em; }
  .cookie-buttons .btn-cookie {
    box-sizing: border-box;
    flex: 1 1 calc(50% - .5em);
    min-width: 0;
    padding-right: .75em;
    padding-left: .75em;
    text-align: center;
    white-space: normal;
  }
  .cookie-option { align-items: flex-start; }
  .cookie-option b { max-width: 7em; text-align: right; }
}
