/**
 * Historia 1.2 — Consentimiento de datos (Figma 13131:112989, 13131:113005)
 */

.phone-shell--consent {
  background: var(--background-page);
}

.screen--consent.is-active {
  display: flex;
  flex-direction: column;
  height: var(--frame-min-height);
  min-height: var(--frame-min-height);
  background: var(--background-page);
  position: relative;
}

.consent-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 var(--spacer-5) var(--spacer-5);
  background: transparent;
}

/* Sin X de cierre: este paso no se puede saltar */
.consent-screen__close {
  display: none !important;
}

.consent-screen__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding-top: var(--screen-title-offset-top);
}

.consent-screen__top {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-3);
}

.consent-screen__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-3);
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--spacer-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consent-checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.consent-checkbox__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background: var(--background-default);
}

.consent-checkbox__input:focus-visible + .consent-checkbox__box {
  outline: 2px solid var(--color-brand-600);
  outline-offset: 2px;
}

.consent-checkbox__input:checked + .consent-checkbox__box {
  border-color: var(--color-brand-600);
  background: var(--color-brand-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l2.5 2.5L10 3' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.consent-checkbox__label {
  flex: 1;
  font-family: var(--font-family-default);
  font-size: var(--body-xs-size);
  font-weight: var(--body-xs-weight);
  line-height: 16px;
  color: var(--color-neutral-1000);
}

.consent-checkbox__link {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
}

.consent-checkbox__brand {
  font-weight: 500;
}

.consent-screen__illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  padding: var(--spacer-4) 0;
  background: transparent;
}

.consent-screen__illustration img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: transparent;
}

.consent-screen__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-3);
  width: 100%;
}

.consent-screen__info.btn {
  min-height: auto;
  padding: var(--spacer-1) 0;
  background: transparent;
  color: var(--color-neutral-500);
  font-size: var(--body-sm-strong-size);
  font-weight: var(--body-sm-strong-weight);
  line-height: 18px;
  cursor: pointer;
}

.consent-screen__info.btn:disabled,
.consent-screen__info.btn.btn--disabled {
  background: transparent;
  color: var(--color-neutral-500);
  cursor: pointer;
  opacity: 1;
}

.consent-screen__accept.btn--primary {
  border-radius: 8px;
}

/* ── Bottom sheet — Más información (Figma 13131:122185) ── */

.consent-more-info-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.consent-more-info-sheet[hidden] {
  display: none;
}

.consent-more-info-sheet:not([hidden]) {
  pointer-events: auto;
}

.consent-more-info-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.consent-more-info-sheet__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(403px, 78%);
  padding: var(--spacer-4) var(--content-margin-x) var(--spacer-5);
  background: var(--background-default);
  border-radius: var(--spacer-4) var(--spacer-4) 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.consent-more-info-sheet__handle {
  flex-shrink: 0;
  width: 95px;
  height: 4px;
  margin: 0 auto var(--spacer-4);
  border-radius: 2px;
  background: var(--color-neutral-300);
}

.consent-more-info-sheet__header {
  position: relative;
  flex-shrink: 0;
  margin-bottom: var(--spacer-3);
}

.consent-more-info-sheet__title {
  margin: 0;
  padding: 0 40px;
  font-family: var(--font-family-default);
  font-size: var(--heading-sm-size);
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  color: var(--color-neutral-1000);
}

.consent-more-info-sheet__close {
  display: none;
}

.consent-more-info-sheet__scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 var(--spacer-1);
}

.consent-more-info-sheet__sections {
  display: flex;
  flex-direction: column;
  gap: var(--spacer-5);
}

.consent-more-info-sheet__section-heading {
  margin: 0 0 var(--spacer-2);
  font-family: var(--font-family-default);
  font-size: var(--body-sm-size);
  font-weight: var(--body-sm-strong-weight);
  line-height: var(--body-sm-line);
  color: var(--color-neutral-1000);
}

.consent-more-info-sheet__section-body {
  margin: 0;
  font-family: var(--font-family-default);
  font-size: var(--body-sm-size);
  font-weight: var(--body-sm-weight);
  line-height: var(--body-sm-line);
  color: var(--color-neutral-600);
}

.consent-more-info-sheet__list {
  margin: var(--spacer-2) 0 0;
  padding: 0;
  list-style: none;
}

.consent-more-info-sheet__list-item {
  margin: 0 0 var(--spacer-2);
  font-family: var(--font-family-default);
  font-size: var(--body-sm-size);
  font-weight: var(--body-sm-weight);
  line-height: var(--body-sm-line);
  color: var(--color-neutral-600);
}

.consent-more-info-sheet__list-item:last-child {
  margin-bottom: 0;
}

.consent-more-info-sheet__list-item--emphasis {
  font-style: italic;
}

.consent-more-info-sheet__link {
  color: inherit;
  text-decoration: underline;
  text-underline-position: from-font;
}
