:root {
  --primary: #0b5fff;
  --primary-dark: #0047cc;
  --primary-light: #e8f0ff;
  --primary-glow: rgba(11, 95, 255, 0.35);
  --bg: #f4f7fc;
  --bg-white: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #0b5fff;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --success: #059669;
  --success-bg: #ecfdf5;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.anim-fade-up {
  animation: fadeUp 0.7s var(--ease) both;
}

.anim-delay-2 {
  animation-delay: 0.15s;
}

.anim-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.anim-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-modal-in {
  animation: scaleIn 0.4s var(--ease-spring) both;
}

.form-step--enter {
  animation: slideInRight 0.35s var(--ease) both;
}

.form-step--enter-back {
  animation: slideInLeft 0.35s var(--ease) both;
}

.form-step--exit {
  animation: slideInRight 0.25s var(--ease) reverse both;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  margin-right: auto;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  color: #fff;
}

.logo__accent {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.header__cta {
  padding: 0.55rem 1.15rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #fff 0%, var(--bg) 100%),
    radial-gradient(ellipse 70% 60% at 10% 0%, rgba(11, 95, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 95% 20%, rgba(11, 95, 255, 0.05), transparent);
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.hero__left {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: 1.75rem;
  align-items: center;
  min-width: 0;
}

.hero__copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  min-width: 0;
}

/* Celular: columna derecha, al lado del texto */
.hero-illustration {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 220px;
  height: 220px;
  margin: 0;
  justify-self: end;
  align-self: center;
}

.hero-illustration__glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(11, 95, 255, 0.18) 0%, transparent 70%);
  animation: glow-pulse 3s ease-in-out infinite;
}

.hero-illustration__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 2px solid rgba(11, 95, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-illustration__ring--1 {
  width: 140px;
  height: 140px;
  animation: ring-expand 2.5s ease-out infinite;
}

.hero-illustration__ring--2 {
  width: 140px;
  height: 140px;
  animation: ring-expand 2.5s ease-out 1.25s infinite;
}

.hero-phone {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 118px;
  height: 190px;
  animation: phone-float 4s ease-in-out infinite;
}

.hero-phone__device {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border-radius: 22px;
  padding: 8px;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(15, 23, 42, 0.1);
}

.hero-phone__speaker {
  width: 36px;
  height: 4px;
  margin: 4px auto 8px;
  background: #334155;
  border-radius: 999px;
}

.hero-phone__screen {
  height: calc(100% - 20px);
  background: linear-gradient(180deg, #f8fafc 0%, #e8f0ff 100%);
  border-radius: 16px;
  padding: 10px 10px 12px;
  overflow: hidden;
}

.hero-phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hero-phone__signal {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 10px;
}

.hero-phone__signal::before,
.hero-phone__signal::after {
  content: "";
  display: block;
  width: 3px;
  background: var(--primary);
  border-radius: 1px;
  animation: signal-bars 1.2s ease-in-out infinite;
}

.hero-phone__signal::before {
  height: 6px;
}

.hero-phone__signal::after {
  height: 10px;
  animation-delay: 0.2s;
}

.hero-phone__battery {
  width: 18px;
  height: 8px;
  border: 1.5px solid #94a3b8;
  border-radius: 2px;
  position: relative;
}

.hero-phone__battery::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  bottom: 1px;
  width: 70%;
  background: var(--success);
  border-radius: 1px;
  animation: battery-charge 3s ease-in-out infinite;
}

.hero-phone__label {
  margin: 0 0 2px;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-phone__balance {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-phone__currency {
  font-size: 0.85rem;
  color: var(--primary);
  vertical-align: top;
}

.hero-phone__amount {
  display: inline-block;
  animation: balance-pop 3s ease-in-out infinite;
}

.hero-phone__recharge-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.hero-phone__recharge-fill {
  display: block;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--success), #34d399);
  border-radius: 999px;
  animation: recharge-progress 2.5s ease-in-out infinite;
}

.hero-phone__recharge-text {
  margin: 0;
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--success);
  animation: text-flash 2.5s ease-in-out infinite;
}

.hero-coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-coin {
  position: absolute;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
  animation: coin-fly 2.8s ease-in-out infinite;
}

.hero-coin--1 {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  left: -8px;
  top: 35%;
  animation-delay: 0s;
}

.hero-coin--2 {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  right: -6px;
  top: 28%;
  animation-delay: 0.6s;
}

.hero-coin--3 {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  left: 20%;
  top: 8%;
  animation-delay: 1.2s;
}

.hero-coin--4 {
  width: auto;
  height: auto;
  min-width: 42px;
  padding: 5px 8px;
  font-size: 0.55rem;
  border-radius: 999px;
  right: -18px;
  top: 52%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 14px var(--primary-glow);
  animation-delay: 0.9s;
}

.hero-coin--5 {
  width: 26px;
  height: 26px;
  font-size: 1rem;
  right: 12%;
  top: 2%;
  background: linear-gradient(135deg, var(--success), #047857);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
  animation-delay: 1.8s;
}

.hero-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0;
  animation: spark-pop 2s ease-in-out infinite;
}

.hero-spark--1 {
  left: 5%;
  top: 45%;
  animation-delay: 0.3s;
}

.hero-spark--2 {
  right: 0;
  top: 18%;
  animation-delay: 1s;
  background: var(--success);
}

.hero-spark--3 {
  left: 35%;
  top: 0;
  animation-delay: 1.6s;
  width: 6px;
  height: 6px;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes ring-expand {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.85);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

@keyframes phone-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes coin-fly {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  70% {
    opacity: 1;
    transform: translateY(-35px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-55px) scale(0.6);
  }
}

@keyframes recharge-progress {
  0% { width: 15%; }
  40% { width: 100%; }
  60% { width: 100%; }
  100% { width: 15%; }
}

@keyframes balance-pop {
  0%, 30%, 100% { transform: scale(1); color: var(--text); }
  45% { transform: scale(1.06); color: var(--success); }
}

@keyframes text-flash {
  0%, 35%, 100% { opacity: 0.4; }
  50%, 65% { opacity: 1; }
}

@keyframes signal-bars {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes battery-charge {
  0%, 100% { width: 50%; }
  50% { width: 85%; }
}

@keyframes spark-pop {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  30% { opacity: 1; transform: scale(1) rotate(45deg); }
  60% { opacity: 0; transform: scale(0.5) rotate(90deg); }
}

/* Tuenti logo — compensa viewBox más compacto */
.logo-tuenti {
  transform: scale(1.22);
  transform-origin: center center;
}

.hero__brands .logo-tuenti {
  height: 34px;
  max-height: none;
}

.carrier__logo.logo-tuenti {
  max-height: 44px;
  max-width: 95%;
}

.operator-card__logo.logo-tuenti {
  height: 44px;
  max-height: none;
  margin-bottom: 1rem;
}

.summary__carrier .logo-tuenti {
  max-height: 28px;
  transform: scale(1.18);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  background: var(--primary-light);
  border: 1px solid rgba(11, 95, 255, 0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 44ch;
}

.hero__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__features .icon-sm {
  color: var(--success);
  flex-shrink: 0;
}

.hero__brands {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero__brands img {
  height: 26px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(10%);
  transition: opacity 0.25s, filter 0.25s, transform 0.25s;
}

.hero__brands img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
}

/* Recharge card */
.recharge-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.recharge-card__head {
  margin-bottom: 1.5rem;
}

.recharge-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.recharge-card__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Progress */
.progress {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--primary), #3b82f6);
  border-radius: 999px;
  transition: width 0.45s var(--ease);
}

/* Steps */
.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

.step--active,
.step--done {
  opacity: 1;
}

.step__num {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.35s var(--ease);
}

.step--active .step__num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.2);
  transform: scale(1.08);
}

.step--done .step__num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step--active .step__label {
  color: var(--primary);
}

.step--done .step__label {
  color: var(--success);
}

/* Form */
.form-panels {
  position: relative;
  min-height: 420px;
}

.form-step {
  border: none;
  margin: 0;
  padding: 0;
}

.form-step:not(.form-step--active) {
  display: none;
}

.form-step__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.form-step__hint {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-error {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--error);
  background: var(--error-bg);
  border-radius: var(--radius-sm);
  animation: fadeUp 0.3s var(--ease);
}

.field-error:not([hidden]) {
  display: block;
}

.field-error[hidden] {
  display: none;
}

/* Carriers */
.carriers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.carrier input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.carrier__box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s var(--ease);
}

.carrier__box:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.carrier input:checked + .carrier__box {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow);
  background: color-mix(in srgb, var(--brand) 4%, white);
}

.carrier__logo {
  display: block;
  max-width: 92%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carrier__box--claro .carrier__logo {
  max-height: 40px;
}

/* Phone */
.phone-input {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.phone-input:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12);
}

.phone-input__icon {
  display: grid;
  place-items: center;
  padding-left: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.phone-input__prefix {
  padding: 0.85rem 0.35rem 0.85rem 0;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.85rem 1rem 0.85rem 0;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  outline: none;
  letter-spacing: 0.02em;
}

/* Amounts */
.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.amount input {
  position: absolute;
  opacity: 0;
}

.amount__box {
  display: block;
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.amount__box:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.amount input:checked + .amount__box {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.custom-amount label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.custom-amount__row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.custom-amount__row:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12);
}

.custom-amount__currency {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
  margin-right: 0.25rem;
}

.custom-amount__symbol {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.1rem;
}

.custom-amount input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.95rem 0;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

/* Summary */
.summary {
  background: linear-gradient(135deg, var(--primary-light), #f8fafc);
  border: 1px solid rgba(11, 95, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  animation: fadeUp 0.35s var(--ease);
}

.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.summary__row:last-child {
  margin-bottom: 0;
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  border-top: 1px dashed rgba(11, 95, 255, 0.2);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}

.summary__label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
}

.summary__carrier {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary__carrier img {
  height: 22px;
  width: auto;
}

/* Payments */
.payments {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.payment input {
  position: absolute;
  opacity: 0;
}

.payment__box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.2s var(--ease);
}

.payment__box:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.payment input:checked + .payment__box {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.1);
}

.payment__logo {
  height: 28px;
  width: auto;
}

.payment__icon {
  color: var(--primary);
  flex-shrink: 0;
}

.email-field {
  display: block;
}

.email-field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.email-field input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.email-field input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12);
}

/* Card payment form */
.payment-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.payment-form__row {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 0.85rem;
}

.payment-form__col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-field {
  display: block;
}

.form-field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-field input {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12);
}

.payment-form .field-error {
  margin: -0.35rem 0 0;
}

/* Phone field en paso 1 */
.phone-field {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.phone-field__label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.phone-field .form-step__hint {
  margin: 0 0 0.85rem;
}

/* Buttons */
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-actions #btn-next {
  flex: 0 1 auto;
  min-width: min(100%, 280px);
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px var(--primary-glow);
  transform: translateY(-1px);
}

.btn--pay {
  background: linear-gradient(135deg, var(--success), #047857);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

.btn--pay:hover {
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

.btn--ghost {
  flex: 0 0 auto;
  min-width: 100px;
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 2px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Sections */
.operators,
.trust,
.faq {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 52ch;
}

.operators {
  background: var(--bg-white);
  border-block: 1px solid var(--border);
}

.operators__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.operator-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.operator-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.operator-card__logo {
  height: 36px;
  width: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.operator-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust__item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.trust__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.trust__icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  background: var(--primary-light);
  border-radius: 14px;
  color: var(--primary);
}

.trust__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.trust__item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.faq__item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq__item:hover {
  border-color: rgba(11, 95, 255, 0.25);
}

.faq__item[open] {
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  padding: 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq__item summary:hover {
  color: var(--primary);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq__item p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  animation: fadeUp 0.3s var(--ease);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  background: var(--text);
  color: #94a3b8;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: left;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: auto 1fr;
  }
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer__brand .logo__mark {
  width: 32px;
  height: 32px;
}

.footer__sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer__section {
  text-align: left;
}

.footer__section h3 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__section ul li {
  margin: 0.7rem 0;
}

.footer__section a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__section a:hover {
  color: #fff;
}

.footer__disclaimer {
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer__bottom {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  margin: 0.3rem 0;
  font-size: 0.88rem;
}

.footer__note {
  font-size: 0.78rem !important;
  opacity: 0.65;
}

/* Modal */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 92vw;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  animation: fadeUp 0.25s var(--ease);
}

.modal__content {
  background: var(--bg-white);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.modal__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
}

.modal__icon--error {
  background: var(--error-bg);
  color: var(--error);
}

.modal__state[hidden] {
  display: none;
}

.modal__spinner {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(11, 95, 255, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: modal-spin 0.8s linear infinite;
}

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

.modal h2 {
  margin-bottom: 0.75rem;
}

.modal p {
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
}

.modal__ref {
  font-size: 0.85rem;
  margin-bottom: 1.5rem !important;
}

.modal__ref strong {
  color: var(--primary);
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.modal .btn {
  width: 100%;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .hero__left {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .hero-illustration {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 720px) {
  .hero__left {
    grid-template-columns: minmax(0, 1fr) 170px;
    column-gap: 0.75rem;
  }

  .hero-illustration {
    width: 170px;
    height: 185px;
  }

  .hero-phone {
    width: 100px;
    height: 165px;
  }
}

@media (max-width: 520px) {
  .hero__left {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
  }

  .hero__brands {
    grid-row: 3;
  }
}

@media (max-width: 960px) {
  .operators__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .header__cta {
    display: none;
  }

  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .operators__grid {
    grid-template-columns: 1fr;
  }

  .recharge-card {
    padding: 1.35rem;
  }

  .step__label {
    font-size: 0.58rem;
  }

  .hero__brands {
    gap: 1rem;
  }

  .hero__brands img {
    height: 22px;
  }

  .hero__brands .logo-tuenti {
    height: 28px;
  }

  .hero-illustration {
    width: 200px;
    height: 180px;
  }

  .hero-phone {
    width: 108px;
    height: 175px;
  }
}
