/* Entel Recarga clone – matched to live site structure */
:root {
  --blue-primary: #002eff;
  --blue-primary-010: #f3f5ff;
  --text-primary: #191919;
  --text-neutral-7: #666666;
  --text-neutral-10: #0c0c0c;
  --green-150: #21745a;
  --success-010: #e6fffa;
  --success-100: #1ea67b;
  --border-neutral: #d7d7d7;
  --white: #ffffff;
  --max-width: 1312px;
  --font-inter: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-barlow: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.page { min-height: 100vh; display: flex; flex-direction: column; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.col-10 { width: 83.3333%; margin-left: auto; margin-right: auto; }
.col-7 { width: 58.3333%; }
.col-5 { width: 41.6667%; }

/* Visibility */
.hide-on-desktop { display: block; }
.hide-on-phone { display: none; }

@media (min-width: 1024px) {
  .hide-on-desktop { display: none !important; }
  .hide-on-phone { display: block; }
  .container { padding-left: 40px; padding-right: 40px; }
}

/* Header – logo only */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
}

.header-top { padding: 16px 0; }

.header-content { display: flex; align-items: center; }

.header-logo img { width: 46px; height: 47px; }

/* Breadcrumbs – separate below header */
.breadcrumbs { padding: 16px 0 8px; }

.breadcrumbs-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.breadcrumb-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-neutral-7);
  margin-right: 15px;
}

.breadcrumb-link:hover { color: var(--blue-primary); }

.breadcrumb-sep {
  font-size: 12px;
  color: var(--text-neutral-7);
}

.breadcrumb-current {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  margin-left: 15px;
}

.main { flex: 1; }

.main-content { padding-bottom: 40px; }

/* Hero carousel – splide-style */
.hero { margin-bottom: 20px; }

.hero-carousel { position: relative; }

.splide { position: relative; }

.splide__track { overflow: hidden; }

.splide__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.4s ease;
}

.splide__slide {
  flex: 0 0 100%;
  min-width: 100%;
  list-style: none;
}

.hero-image {
  width: 100%;
  height: 178px;
  border-radius: 8px;
  object-fit: cover;
}

.splide__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.splide__pagination li { list-style: none; }

.splide__pagination__page {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.splide__pagination__page.is-active {
  background: var(--blue-primary);
  transform: scale(1.4);
}

/* Page title */
.page-title {
  margin: 0 0 40px 40px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--blue-primary);
}

.page-title-mobile {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--blue-primary);
}

/* Custom card */
.custom-card {
  background: var(--white);
  border: 1px solid var(--border-neutral);
  border-radius: 8px;
  padding: 24px;
}

.mobile-card { padding: 16px; }

.form-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

.form-step { margin-bottom: 24px; }

.form-step:last-child { margin-bottom: 0; }

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 100px;
  background: var(--blue-primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.step-title-mobile { font-size: 18px; }

/* Phone input */
.phone-field { margin-top: 8px; }

.phone-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-neutral);
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}

.phone-input-wrap:focus-within { border-color: var(--blue-primary); }
.phone-input-wrap.is-error { border-color: #db110a; }

.phone-icon { flex-shrink: 0; opacity: 0.5; }

.phone-prefix {
  font-size: 18px;
  color: var(--text-neutral-7);
  flex-shrink: 0;
}

.phone-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font-inter);
  color: var(--text-primary);
  min-width: 0;
  background: transparent;
}

.phone-hint {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-neutral-7);
}

.phone-error { margin: 4px 0 0; font-size: 14px; color: #db110a; }

/* Promo banner */
.promo-banner {
  background: rgb(230, 255, 250);
  border: 1px solid rgb(30, 166, 123);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* Radio-box amount buttons */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.amount-grid-mobile { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 1024px) {
  .amount-grid:not(.amount-grid-mobile) { grid-template-columns: repeat(6, 1fr); }
}

.radio-box {
  padding: 12px 8px 8px;
  border: 2px solid var(--border-neutral);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-neutral-10);
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.radio-box:hover { border-color: var(--blue-primary); }

.radio-box.active {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.radio-box.horizontal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  flex: 1;
  min-width: 0;
}

.payment-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-option { cursor: pointer; }

.payment-option--static {
  cursor: default;
  pointer-events: none;
}

.payment-checkbox--static {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue-primary);
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  display: inline-block;
}

.payment-checkbox--static::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-primary);
  transform: translate(-50%, -50%);
}

.payment-image img {
  width: 106px;
  height: 40px;
  object-fit: contain;
}

.custom-amount-wrap { margin-bottom: 16px; }

.custom-amount-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--blue-primary);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-inter);
  outline: none;
}

.amount-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-neutral-7);
  margin-bottom: 4px;
}

.amount-notes li::before {
  content: '•';
  position: absolute;
  left: 0;
}

/* Summary inner card */
.summary-card {
  background: #f3f5ff;
  padding: 8px 0;
  border-radius: 8px;
  border: none;
  text-align: center;
}

.summary-total {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-neutral-10);
}

.summary-label { font-weight: 400; }

.summary-total strong {
  font-weight: 600;
  margin-left: 8px;
}

.summary-bonus {
  display: inline;
  margin-left: 8px;
  color: var(--green-150);
  font-weight: 600;
}

.summary-bonus.is-hidden { display: none; }

/* Validity row – app icons, not radios */
.validity-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.validity-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-neutral-10);
  cursor: pointer;
  transition: border-color 0.2s;
}

.validity-option.active { border-color: var(--blue-primary); }

.validity-option--static {
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.validity-option strong { font-weight: 600; margin-left: 4px; }

.validity-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.validity-icons img { flex-shrink: 0; }

.validity-separator {
  width: 1px;
  height: 24px;
  background: var(--border-neutral);
  flex-shrink: 0;
}

/* Pay button */
.btn-pay {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--blue-primary);
  color: var(--white);
  font-family: var(--font-barlow);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  border-radius: 12px;
  border: 1px solid var(--blue-primary);
  transition: opacity 0.2s, background 0.2s;
}

.btn-pay:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #ccc;
  border-color: #ccc;
}

.btn-pay:not(:disabled):hover { background: #0022bf; }

/* App section – desktop flex row */
.app-section {
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.app-icon { width: 64px; height: 64px; flex-shrink: 0; }

.app-section-text { flex: 1; min-width: 0; }

.section-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
}

.section-subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-neutral-7);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge img { height: 40px; width: auto; }

.app-qr { flex-shrink: 0; }

.app-qr img { width: 200px; height: 200px; }

/* App section – mobile */
.app-section-mobile {
  margin-top: 24px;
  text-align: center;
}

.app-promo-mobile {
  max-width: 280px;
  margin: 0 auto 16px;
  border-radius: 8px;
}

.app-section-mobile .store-badges { justify-content: center; }

/* Club Entel */
.club-section {
  margin-top: 40px;
  text-align: center;
}

.club-title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-neutral-7);
}

.club-gallery {
  display: flex;
  gap: 12px;
  justify-content: center;
  overflow-x: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.club-gallery::-webkit-scrollbar { display: none; }

.club-gallery img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
}

/* FAQ */
.faq-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid #eee; }

.faq-heading {
  margin: 0 0 24px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
}

.faq-accordion { border-top: 1px solid #eee; }

.faq-item { border-bottom: 1px solid #eee; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-primary);
  transition: transform 0.2s;
}

.faq-icon::before { width: 14px; height: 2px; top: 11px; left: 5px; }
.faq-icon::after { width: 2px; height: 14px; top: 5px; left: 11px; }

.faq-item.is-open .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-neutral-7);
}

.faq-answer p { margin: 0 0 12px; }
.faq-answer ul { margin: 0 0 12px; padding-left: 20px; list-style: disc; }
.faq-answer li { margin-bottom: 4px; }

/* Help center */
.help-center {
  margin-top: 40px;
  padding: 24px;
  background: var(--blue-primary-010);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.help-center-icon { width: 144px; flex-shrink: 0; }

.help-center-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.help-center-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-neutral-7);
}

.btn-help {
  padding: 12px 24px;
  border: 2px solid var(--blue-primary);
  border-radius: 12px;
  background: transparent;
  color: var(--blue-primary);
  font-family: var(--font-barlow);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
}

.btn-help:hover { background: var(--blue-primary-010); }

/* Footer – blue bar like entel.cl */
.footer {
  margin-top: auto;
}

.footer--blue {
  background: var(--blue-primary);
  color: var(--white);
  padding: 32px 0 40px;
}

.footer-blue-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-contact-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.footer-contact-line {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.footer-contact-line strong {
  font-weight: 600;
  color: var(--white);
}

.footer-contact-link {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact-link:hover {
  opacity: 0.85;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo--white {
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.footer-social--white {
  color: var(--white);
}

.footer-social--white img {
  filter: brightness(0) invert(1);
}

.social-link {
  display: flex;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 0.75;
}

/* Mobile form stacks vertically */
@media (max-width: 1023px) {
  .form-row { flex-direction: column; }
  .col-7, .col-5 { width: 100%; }
  .page-title { margin-left: 0; font-size: 24px; margin-bottom: 16px; }
  .col-10 { width: 100%; }
}

@media (min-width: 768px) {
  .help-center {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }

  .help-center-text { flex: 1; }

  .footer-contact-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }

  .footer-brand {
    align-items: flex-end;
    text-align: right;
  }

  .faq-question { font-size: 24px; }
}

@media (min-width: 1024px) {
  .mobile-recharge .form-step { margin-bottom: 20px; }
}
