/* El Vaso Verde — banner y panel de cookies */
.evv-consent {
  position: fixed; z-index: 200;
  left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  max-width: 520px; margin-left: auto;
  background: #0F2A1D; color: #F4EFE6;
  padding: 1.35rem 1.5rem 1.25rem;
  border: 1px solid rgba(127, 227, 161, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-family: 'DM Sans', system-ui, sans-serif;
  display: none;
}
.evv-consent.is-open { display: block; animation: evv-in .35s ease-out; }
@keyframes evv-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.evv-consent__title {
  font-family: 'Bai Jamjuree', system-ui, sans-serif;
  font-size: 1.05rem; font-weight: 600; margin: 0 0 .4rem; color: #F4EFE6;
}
.evv-consent__text { font-size: .88rem; line-height: 1.55; margin: 0 0 1rem; color: rgba(244, 239, 230, .78); }
.evv-consent__text a { color: #7FE3A1; }
.evv-consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.evv-btn {
  font: 500 .88rem/1 'DM Sans', system-ui, sans-serif;
  min-height: 42px; padding: 0 1.2rem; cursor: pointer;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
/* Aceptar y Rechazar con el mismo peso visual (criterio AEPD) */
.evv-consent .evv-btn--solid { background: #F4EFE6; color: #0F2A1D; flex: 1 1 120px; }
.evv-consent .evv-btn--solid:hover { background: #7FE3A1; }
.evv-btn--link {
  background: none; color: #F4EFE6; padding: 0 .5rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.evv-btn--link:hover { color: #7FE3A1; }
.evv-btn:focus-visible, .evv-switch input:focus-visible + span { outline: 2px solid #7FE3A1; outline-offset: 2px; }

.evv-modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(15, 42, 29, .55);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.evv-modal.is-open { display: flex; }
.evv-modal__panel {
  background: #F4EFE6; color: #0F2A1D;
  width: 100%; max-width: 540px; max-height: calc(100vh - 2rem); overflow-y: auto;
  padding: 2rem; font-family: 'DM Sans', system-ui, sans-serif;
}
.evv-modal__title { font-family: 'Bai Jamjuree', system-ui, sans-serif; font-size: 1.4rem; font-weight: 600; margin: 0 0 .5rem; }
.evv-modal__intro { font-size: .92rem; line-height: 1.55; color: #5C5C57; margin: 0 0 1.25rem; }
.evv-cat {
  display: flex; gap: 1.25rem; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-top: 1px solid rgba(15, 42, 29, .12);
}
.evv-cat:last-of-type { border-bottom: 1px solid rgba(15, 42, 29, .12); }
.evv-cat h3 { font-family: 'Bai Jamjuree', system-ui, sans-serif; font-size: 1rem; font-weight: 600; margin: 0 0 .2rem; }
.evv-cat p { font-size: .85rem; line-height: 1.5; color: #5C5C57; margin: 0; }
.evv-cat__fixed { font-size: .78rem; color: #3A7D5C; white-space: nowrap; font-weight: 500; }

.evv-switch { position: relative; flex: none; width: 46px; height: 26px; }
.evv-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.evv-switch span {
  position: absolute; inset: 0; background: rgba(15, 42, 29, .22); border-radius: 26px;
  transition: background-color .2s; pointer-events: none;
}
.evv-switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.evv-switch input:checked + span { background: #3A7D5C; }
.evv-switch input:checked + span::after { transform: translateX(20px); }

.evv-modal__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.evv-modal .evv-btn { flex: 1 1 auto; white-space: nowrap; }
.evv-modal .evv-btn--solid { flex-basis: 100%; }
.evv-modal .evv-btn--solid { background: #0F2A1D; color: #F4EFE6; }
.evv-modal .evv-btn--solid:hover { background: #3A7D5C; }
.evv-modal .evv-btn--ghost { background: transparent; color: #0F2A1D; border-color: rgba(15, 42, 29, .3); }
.evv-modal .evv-btn--ghost:hover { border-color: #0F2A1D; }

@media (max-width: 540px) {
  .evv-consent { left: .75rem; right: .75rem; bottom: .75rem; padding: 1.1rem 1.1rem 1rem; }
  .evv-modal__panel { padding: 1.5rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .evv-consent.is-open { animation: none; }
  .evv-btn, .evv-switch span, .evv-switch span::after { transition: none; }
}
