/* =============================================================
   DESBLOQUEA TU PIN BANELCO â€” replica hero seccion App Galicia
   Referencia: titular naranja + maqueta de telefono + barra
   Mobile first (link por mail / sms) Â· sin build
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --naranja:        #F15A24;
  --naranja-oscuro: #D4500A;
  --naranja-deep:   #B93C08;
  --naranja-tenue:  #FFF1EA;
  --naranja-linea:  #FBD3C1;
  --naranja-suave:  #F8B79A;

  --tinta:          #1A1A1A;
  --tinta-2:        #4A4A4A;
  --gris:           #9A9A9A;
  --gris-claro:     #C4C4C4;
  --linea:          #E7E7E7;
  --fondo:          #FFFFFF;
  --card:           #F7F7F7;

  --verde:          #1E9E6A;
  --error:          #C0392B;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --edge: clamp(34px, 5.5vw, 92px);

  --shadow-pantalla: 0 24px 60px rgba(20, 20, 20, .18), 0 6px 18px rgba(20, 20, 20, .10);
  --shadow-cta: 0 10px 26px rgba(241, 90, 36, .32);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--fondo);
  color: var(--tinta);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- 3. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--fondo);
}

.hero__wash {
  position: absolute;
  left: -8%;
  bottom: -18%;
  width: 56vw;
  height: 52vh;
  background: radial-gradient(ellipse at center,
      rgba(241, 90, 36, .09) 0%,
      rgba(241, 90, 36, .035) 42%,
      rgba(241, 90, 36, 0) 72%);
  filter: blur(28px);
  pointer-events: none;
}

.hero__bar {
  position: absolute;
  right: 0;
  top: 25%;
  height: 47%;
  width: var(--edge);
  background: var(--naranja);
  z-index: 1;
}

/* ---------- 4. COPY (titular + CTA) ---------- */
.hero__copy {
  position: absolute;
  left: clamp(24px, 7.5vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  max-width: min(46vw, 720px);
  animation: rise .8s cubic-bezier(.22, .8, .26, 1) both;
}

.hero__title-lead {
  display: block;
  font-size: clamp(42px, 8vw, 112px);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.035em;
  color: var(--naranja);
}

.hero__title-sub {
  display: block;
  margin-top: .34em;
  font-size: clamp(20px, 4.1vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--tinta);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(20px, 2.4vw, 34px);
  padding: 0 26px;
  height: clamp(48px, 4.2vw, 58px);
  border-radius: 999px;
  background: var(--naranja);
  color: #fff;
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: var(--shadow-cta);
  transition: background .2s ease, transform .16s ease, box-shadow .2s ease;
}

.cta svg {
  width: 20px;
  height: 20px;
  transition: transform .22s ease;
}

.cta:hover { background: var(--naranja-oscuro); }
.cta:hover svg { transform: translateX(4px); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 2px solid var(--naranja-deep); outline-offset: 3px; }

.hero__note {
  max-width: 40ch;
  margin-top: clamp(14px, 1.4vw, 20px);
  font-size: clamp(13px, .95vw, 15px);
  line-height: 1.5;
  color: var(--tinta-2);
}

.legal-note {
  max-width: 40ch;
  margin-top: 10px;
  font-size: clamp(10.5px, .78vw, 12px);
  line-height: 1.45;
  color: var(--gris);
}

.legal-note a {
  color: #6F6F6F;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .18s ease;
}

.legal-note a:hover { color: var(--naranja); }

/* ---------- 4b. BARRA LEGAL ---------- */
.legal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 14px clamp(24px, 7vw, 120px) 14px;
  border-top: 1px solid var(--linea);
  background: linear-gradient(to top, #FFFFFF 62%, rgba(255, 255, 255, .92));
}

.legal__inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 1180px;
}

.legal__entity,
.legal__data {
  font-size: clamp(10px, .72vw, 11px);
  line-height: 1.45;
  color: #8E8E8E;
}

.legal__data { color: #9A9A9A; }

.legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 4px;
}

.legal__links a {
  font-size: clamp(10px, .72vw, 11px);
  font-weight: 600;
  color: #6F6F6F;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .18s ease;
}

.legal__links a:hover { color: var(--naranja); }

.legal__copy {
  font-size: clamp(10px, .72vw, 11px);
  color: #ABABAB;
}

/* ---------- 5. STAGE + MAQUETA ---------- */
.hero__stage {
  position: absolute;
  right: var(--edge);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  animation: fade .6s .1s ease both;
}

.device {
  position: relative;
  height: clamp(430px, 70vh, 800px);
  aspect-ratio: 165 / 330;
  container-type: inline-size;
}

.device__blob {
  position: absolute;
  top: 12.5%;
  bottom: 12.5%;
  left: -47%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--naranja);
  z-index: -2;
}

.device__shadow {
  position: absolute;
  left: -46%;
  bottom: -2.5%;
  width: 86%;
  height: 7%;
  transform: rotate(-9deg);
  background: radial-gradient(ellipse at center, rgba(15, 15, 15, .30) 0%, rgba(15, 15, 15, .12) 45%, rgba(15, 15, 15, 0) 72%);
  filter: blur(7px);
  z-index: -1;
}

/* ---------- 6. TELEFONO ---------- */
.phone {
  position: relative;
  height: 100%;
  padding: 1.3%;
  background: linear-gradient(160deg, #2b2b2b 0%, #0c0c0c 42%, #1c1c1c 100%);
  border-radius: 11% / 5.2%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 30px 60px rgba(15, 15, 15, .22),
    0 10px 24px rgba(15, 15, 15, .14);
}

.phone__notch {
  position: absolute;
  top: 1.3%;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 2.6%;
  background: #080808;
  border-radius: 0 0 42% 42% / 0 0 70% 70%;
  z-index: 4;
}

.phone__screen {
  --u: 12px;
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  border-radius: 9.6% / 4.5%;
  box-shadow: var(--shadow-pantalla);
}

@supports (width: 1cqw) {
  .phone__screen { --u: 4.2cqw; }
}

@media (min-width: 901px) {
  .phone__screen::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(var(--u) * .7);
    transform: translateX(-50%);
    width: 30%;
    height: calc(var(--u) * .22);
    border-radius: 999px;
    background: rgba(26, 26, 26, .18);
  }
}

/* ---------- 7. STATUS BAR ---------- */
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  padding: calc(var(--u) * 1.05) calc(var(--u) * 1.3) 0;
  color: var(--tinta);
}

.statusbar__time {
  font-size: calc(var(--u) * .92);
  font-weight: 700;
  letter-spacing: -.01em;
}

.statusbar__icons {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * .42);
}

.ic-signal { width: calc(var(--u) * 1.7); height: auto; fill: currentColor; }
.ic-wifi   { width: calc(var(--u) * 1.5); height: auto; fill: currentColor; }

.ic-battery {
  position: relative;
  display: inline-block;
  width: calc(var(--u) * 2.1);
  height: calc(var(--u) * 1.05);
  border: 1.4px solid rgba(26, 26, 26, .38);
  border-radius: calc(var(--u) * .28);
  padding: 1.2px;
}

.ic-battery::after {
  content: "";
  position: absolute;
  right: calc(var(--u) * -.34);
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--u) * .18);
  height: calc(var(--u) * .42);
  border-radius: 0 2px 2px 0;
  background: rgba(26, 26, 26, .38);
}

.ic-battery i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 1.5px;
  background: var(--tinta);
}

/* ---------- 8. BRAND LOCKUP ---------- */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * .5);
  flex: none;
  padding: calc(var(--u) * 3) 0 calc(var(--u) * .8);
}

.brand__mark {
  display: block;
  width: calc(var(--u) * 3.3);
  height: calc(var(--u) * 3.3);
  border-radius: calc(var(--u) * .95);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(241, 90, 36, .35);
}

.brand__mark img { width: 100%; height: 100%; object-fit: cover; }

.brand__word {
  display: inline-flex;
  align-items: center;
  height: calc(var(--u) * 3.3);
  padding: 0 calc(var(--u) * 1.1);
  border-radius: calc(var(--u) * .95);
  background: var(--naranja);
  color: #fff;
  font-size: calc(var(--u) * 1.8);
  font-weight: 700;
  letter-spacing: -.015em;
}

/* ---------- 9. SCREEN ---------- */
.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 calc(var(--u) * 1.6) calc(var(--u) * 1.7);
  text-align: center;
}

.screen__spacer { flex: 1; min-height: 0; }
.screen__spacer--mid { flex: 1.05; }

.screen__main {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 100%;
}

.screen[hidden] { display: none; }

.screen__title {
  font-size: calc(var(--u) * 1.8);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--tinta);
}

.screen__lead {
  margin-top: calc(var(--u) * .25);
  font-size: calc(var(--u) * 1.2);
  font-weight: 400;
  line-height: 1.35;
  color: var(--gris);
}

/* ---------- 10. PROGRESO (STEPPER) ---------- */
.progress {
  flex: none;
  margin-bottom: calc(var(--u) * .9);
}

.progress__bar {
  display: flex;
  gap: calc(var(--u) * .3);
}

.progress__bar i {
  flex: 1;
  height: calc(var(--u) * .34);
  border-radius: 999px;
  background: var(--linea);
  transition: background .3s ease;
}

.progress__bar i.is-active { background: var(--naranja-suave); }
.progress__bar i.is-done { background: var(--naranja); }

.progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * .8);
  margin-top: calc(var(--u) * .45);
  font-size: calc(var(--u) * 1.05);
}

.progress__meta span:first-child {
  font-weight: 700;
  color: var(--tinta-2);
  letter-spacing: -.01em;
}

.progress__meta span:last-child {
  font-weight: 700;
  color: var(--naranja);
  font-variant-numeric: tabular-nums;
}

/* ---------- 11. FORM + PASOS ---------- */
.form {
  display: flex;
  flex-direction: column;
  flex: none;
  margin-top: calc(var(--u) * 1);
}

.step {
  margin-top: calc(var(--u) * .7);
}

.step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(var(--u) * 1.5);
  height: calc(var(--u) * 1.5);
  border-radius: 50%;
  background: var(--naranja-tenue);
  border: 1px solid var(--naranja-linea);
  color: var(--naranja-oscuro);
  font-size: calc(var(--u) * .9);
  font-weight: 800;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.step.is-done .step__badge {
  background: var(--naranja);
  border-color: var(--naranja);
  color: #fff;
}

.field {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * .2);
  padding: calc(var(--u) * .6) calc(var(--u) * .85) calc(var(--u) * .7);
  border: 1px solid var(--linea);
  border-radius: calc(var(--u) * .9);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field:focus-within {
  border-color: var(--naranja);
  box-shadow: 0 0 0 3px rgba(241, 90, 36, .10);
}

.field.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .08);
}

.field__top {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * .5);
}

.field__label {
  font-size: calc(var(--u) * 1.05);
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--tinta-2);
}

.field__row {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * .5);
}

.field input {
  flex: 1;
  min-width: 0;
  font-size: calc(var(--u) * 1.35);
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--tinta);
}

.field input::placeholder {
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gris-claro);
}

.field__eye {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--gris);
}

.field__eye svg { width: calc(var(--u) * 1.7); height: calc(var(--u) * 1.7); }
.field__eye:hover { color: var(--naranja); }
.field__eye[aria-pressed="true"] { color: var(--naranja); }

.field__error {
  min-height: calc(var(--u) * .9);
  padding: calc(var(--u) * .3) 0 0;
  text-align: left;
  font-size: calc(var(--u) * .92);
  font-weight: 500;
  color: var(--error);
}

.field__error:empty { min-height: calc(var(--u) * .35); padding: 0; }

/* ---------- 12. BOTONES ---------- */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * .5);
  width: 100%;
  height: calc(var(--u) * 3.2);
  border-radius: calc(var(--u) * .6);
  background: var(--naranja);
  color: #fff;
  font-size: calc(var(--u) * 1.08);
  font-weight: 700;
  letter-spacing: .12em;
  transition: background .2s ease, transform .12s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(241, 90, 36, .32);
}

.btn:hover { background: var(--naranja-oscuro); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--naranja-deep); outline-offset: 3px; }
.btn[disabled] { opacity: .8; cursor: progress; }

.btn.is-ready {
  background: var(--naranja);
  box-shadow: 0 8px 22px rgba(241, 90, 36, .45);
  animation: ready 2.2s ease-in-out infinite;
}

.btn__spinner {
  display: none;
  width: calc(var(--u) * 1.25);
  height: calc(var(--u) * 1.25);
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__label { opacity: .9; }

.btn--ghost {
  margin-top: calc(var(--u) * .9);
  height: calc(var(--u) * 2.9);
  background: transparent;
  border: 1.5px solid var(--naranja);
  color: var(--naranja);
  box-shadow: none;
  letter-spacing: .16em;
}

.btn--ghost:hover { background: var(--naranja-tenue); }

.form__status {
  min-height: calc(var(--u) * 1.1);
  padding-top: calc(var(--u) * .45);
  font-size: calc(var(--u) * .95);
  font-weight: 500;
  color: var(--tinta-2);
}

.form__status.is-error { color: var(--error); }

/* ---------- 15. RESULTADO ---------- */
.screen--result {
  align-items: center;
  justify-content: center;
}

.screen--result .screen__main {
  align-items: center;
}

.screen--result .progress,
.screen--result .trust {
  align-self: stretch;
}

.result__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 4);
  height: calc(var(--u) * 4);
  margin-top: calc(var(--u) * .6);
  border-radius: 50%;
  background: var(--naranja-tenue);
  color: var(--naranja);
  border: 1.5px solid var(--naranja-linea);
}

.result__check svg { width: 55%; height: 55%; }

.result__pin {
  margin: calc(var(--u) * 1.1) 0 calc(var(--u) * .3);
  font-size: calc(var(--u) * 2.6);
  font-weight: 800;
  letter-spacing: .1em;
  text-indent: .1em;
  white-space: nowrap;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}

.linkbtn {
  margin-top: calc(var(--u) * .3);
  padding: calc(var(--u) * .4) calc(var(--u) * .6);
  font-size: calc(var(--u) * 1.02);
  font-weight: 600;
  color: var(--naranja);
}

.linkbtn:hover { text-decoration: underline; }

/* ---------- 16. BLOQUE DE CONFIANZA ---------- */
.trust {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * .65);
  margin-top: calc(var(--u) * .9);
  padding-top: calc(var(--u) * .85);
  border-top: 1px solid var(--linea);
  text-align: left;
}

.trust__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * 2.2);
  height: calc(var(--u) * 2.2);
  border-radius: 50%;
  background: var(--naranja-tenue);
  color: var(--naranja);
}

.trust__icon svg { width: 58%; height: 58%; }

.trust__copy {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * .08);
  min-width: 0;
}

.trust__title {
  font-size: calc(var(--u) * 1.05);
  font-weight: 700;
  color: var(--tinta-2);
}

.trust__text {
  font-size: calc(var(--u) * .98);
  line-height: 1.3;
  color: var(--gris-claro);
}

/* ---------- 17. ANIMACIONES ---------- */
@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ready {
  0%, 100% { box-shadow: 0 8px 22px rgba(241, 90, 36, .45); }
  50%      { box-shadow: 0 10px 30px rgba(241, 90, 36, .68); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .hero__copy { max-width: min(50vw, 560px); }
  .hero__note { max-width: 34ch; }
}

@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: auto;
    padding: clamp(30px, 8vw, 56px) 0 clamp(40px, 9vw, 72px);
    overflow: hidden;
  }

  .hero__bar { display: none; }

  .hero__wash {
    left: -25%;
    bottom: -4%;
    width: 140vw;
    height: 36vh;
  }

  .hero__copy {
    position: static;
    transform: none;
    max-width: none;
    padding: 0 clamp(20px, 6vw, 40px);
  }

  .hero__title-lead { font-size: clamp(40px, 11vw, 72px); }
  .hero__title-sub  { font-size: clamp(19px, 5.4vw, 32px); margin-top: .28em; }

  .cta {
    margin-top: 20px;
    height: 50px;
    width: 100%;
    justify-content: center;
  }

  .hero__note {
    max-width: none;
    margin-top: 12px;
    font-size: 14px;
  }

  .hero__stage {
    position: static;
    transform: none;
    margin: clamp(26px, 6vw, 40px) auto 0;
    padding: 0 clamp(16px, 5vw, 32px);
    max-width: 460px;
  }

  .device {
    height: auto;
    aspect-ratio: auto;
  }

  .device__blob,
  .device__shadow { display: none; }

  .phone {
    height: auto;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }

  .phone__notch { display: none; }

  .phone__screen {
    --u: 13px;
    height: auto;
    min-height: 0;
    max-width: 100%;
    border-radius: 22px;
    box-shadow: var(--shadow-pantalla);
    padding: calc(var(--u) * .6) 0 calc(var(--u) * 1.2);
  }

  .cta,
  .hero__note,
  .legal-note { display: none; }

  .legal {
    position: static;
    padding: 18px clamp(20px, 6vw, 40px) 22px;
    background: #fff;
  }

  .legal__links { gap: 6px 16px; }
}

@media (max-width: 380px) {
  .hero__title-lead { font-size: 38px; }
}
