/* Consent banner — estilos del fragmento Consentimiento Opcion Yo.html */

@keyframes oy-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes oy-pop {
  from { transform: translateY(10px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes oy-toast-in {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Banner inferior: no bloquea navegación (sin overlay ni scroll lock) */

.oyo-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  display: flex;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}

.oyo-consent-panel {
  pointer-events: auto;
  width: 100%;
  max-width: 1080px;
  background: #fff;
  border: 1px solid #eaf0ef;
  border-radius: 20px;
  box-shadow:
    0 18px 50px -12px rgba(31, 59, 67, .28),
    0 6px 18px -8px rgba(31, 59, 67, .18);
  padding: 26px 30px;
  animation: oy-slide-up .5s cubic-bezier(.22, 1, .36, 1) both;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

.oyo-consent-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.oyo-consent-intro {
  flex: 1 1 420px;
  min-width: 0;
}

.oyo-consent-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.oyo-consent-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8f6f3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.oyo-consent-icon-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid #3bb489;
  display: block;
}

.oyo-consent-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #243b43;
}

.oyo-consent-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #5a6b72;
}

.oyo-consent-link {
  color: #1fb6a6;
  font-weight: 600;
  text-decoration: underline;
}

.oyo-consent-link:hover {
  color: #179e90;
}

.oyo-consent-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 230px;
}

.oyo-consent-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  transition: background .15s ease, border-color .15s ease;
}

.oyo-consent-btn--primary {
  background: #3bb489;
  color: #fff;
  padding: 14px 26px;
  box-shadow: 0 6px 14px -4px rgba(59, 180, 137, .5);
}

.oyo-consent-btn--primary:hover {
  background: #34a37c;
}

.oyo-consent-btn--secondary {
  background: #fff;
  color: #2c3a43;
  padding: 13px 26px;
  border: 1.5px solid #d9e2e1;
}

.oyo-consent-btn--secondary:hover {
  background: #f4f8f7;
}

.oyo-consent-btn--link {
  background: transparent;
  color: #1fb6a6;
  font-size: 14px;
  padding: 4px;
}

.oyo-consent-btn--save {
  background: #243b43;
  color: #fff;
  font-size: 14.5px;
  padding: 12px 28px;
}

.oyo-consent-btn--save:hover {
  background: #16282f;
}

.oyo-consent-prefs {
  margin-top: 22px;
  border-top: 1px solid #eef2f2;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: oy-pop .35s ease both;
}

.oyo-consent-pref {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #eef3f2;
  border-radius: 14px;
}

.oyo-consent-pref:first-child {
  background: #f7faf9;
}

.oyo-consent-pref-text {
  flex: 1;
  min-width: 0;
}

.oyo-consent-pref-title {
  font-size: 15px;
  font-weight: 600;
  color: #243b43;
  margin-bottom: 3px;
}

.oyo-consent-pref-desc {
  font-size: 13.5px;
  color: #6b7a80;
  line-height: 1.5;
}

.oyo-consent-pref-control {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.oyo-consent-always {
  font-size: 12.5px;
  font-weight: 600;
  color: #3bb489;
}

.oyo-consent-toggle {
  flex: none;
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #d9e2e1;
  border: none;
  padding: 0;
  margin-top: 2px;
  position: relative;
  cursor: pointer;
  transition: background .2s ease;
}

.oyo-consent-toggle--disabled {
  background: #b8e3d5;
  opacity: .8;
  cursor: default;
  pointer-events: none;
}

.oyo-consent-toggle.is-on {
  background: #3bb489;
}

.oyo-consent-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: left .2s ease;
}

.oyo-consent-toggle.is-on .oyo-consent-toggle-knob {
  left: 21px;
}

.oyo-consent-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.oyo-consent-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1110;
  transform: translateX(-50%);
  background: #243b43;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 12px;
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: oy-toast-in .35s ease both;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

.oyo-consent-toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3bb489;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .oyo-consent-banner {
    padding: 12px;
  }

  .oyo-consent-panel {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .oyo-consent-actions {
    width: 100%;
    min-width: 0;
  }
}
