:root {
  --primary: #0b5ed7;
  --primary-dark: #084298;
  --primary-soft: #eaf2ff;
  --secondary: #163b8c;
  --success: #16a34a;
  --success-dark: #12813b;
  --text: #101828;
  --muted: #667085;
  --border: #dbe4f0;
  --card: rgba(255, 255, 255, 0.96);
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.10);
  --shadow-soft: 0 12px 30px rgba(16, 24, 40, 0.08);
  --danger: #d92d20;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #dbe9ff 0%, transparent 35%),
    radial-gradient(circle at top right, #e7f3ff 0%, transparent 32%),
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.hero-card,
.success-card {
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border: 1px solid rgba(219, 228, 240, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.success-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.brand-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.brand-kicker,
.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--secondary);
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.brand-title {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--secondary);
  text-transform: uppercase;
}

.brand-subtitle {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
}

.intro-box,
.highlight-box,
.summary-box {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.intro-box {
  text-align: center;
  margin-bottom: 22px;
}

.intro-box h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: var(--secondary);
}

.intro-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.form-card h3 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--text);
}

.card-text {
  margin: 0 0 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.success-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  color: var(--secondary);
}

.success-text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.success-text.soft {
  margin-bottom: 20px;
}

form {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

label,
.label-like {
  font-size: 0.95rem;
  font-weight: 800;
  color: #243447;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  border: 1.5px solid #cfdae7;
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #98a2b3;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(11, 94, 215, 0.12);
}

.error {
  min-height: 16px;
  font-size: 0.83rem;
  color: var(--danger);
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2px;
}

.payment-options input[type="radio"] {
  display: none;
}

.payment-btn {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cfdae7;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.payment-btn:hover {
  border-color: var(--primary);
  background: #f5f9ff;
  transform: translateY(-1px);
}

.payment-options input[type="radio"]:checked + .payment-btn {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 12px 24px rgba(11, 94, 215, 0.18);
}


.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-icon {
  width: 22px;
  height: 22px;
}

.phone-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.wa-icon {
  width: 34px;   /* AQUI cambias el tamaño del icono de WhatsApp */
  height: 34px;  /* AQUI cambias el tamaño del icono de WhatsApp */
}

.wa-icon svg {
  width: 34px;   /* AQUI cambias el tamaño del icono de WhatsApp */
  height: 34px;  /* AQUI cambias el tamaño del icono de WhatsApp */
  display: block;
}
.submit-btn,
.action-btn {
  min-height: 60px;
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.action-btn {
  justify-content: flex-start;
  gap: 14px;
}
.submit-btn:hover,
.action-btn:hover {
  transform: translateY(-1px);
}

.submit-btn {
  margin-top: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(11, 94, 215, 0.22);
}

.submit-btn:hover {
  box-shadow: 0 16px 32px rgba(11, 94, 215, 0.28);
}

.submit-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}


.summary-box {
  margin-bottom: 18px;
}

.summary-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--secondary);
}

#resumenMensaje {
  margin: 0;
  white-space: pre-line;
  line-height: 1.75;
  color: var(--text);
}

.summary-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #c9d7ea;
  color: var(--primary-dark);
  font-size: 0.93rem;
  font-weight: 700;
}

.cta-box {
  background: linear-gradient(180deg, #eff8ff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}

.cta-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
}

.cta-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.call-btn {
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.call-btn:hover {
  background: #000;
}

.wa-btn {
  background: linear-gradient(180deg, var(--success) 0%, var(--success-dark) 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.24);
  transform: scale(1.01);
}

.wa-btn:hover {
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.3);
}

.mini-help {
  margin: 14px 0 0;
  text-align: center;
  color: var(--success-dark);
  font-size: 0.93rem;
  font-weight: 800;
}

.back-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--secondary);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .hero-card,
  .success-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .brand-title {
    letter-spacing: 1px;
  }

  .payment-options,
  .actions {
    grid-template-columns: 1fr;
  }

 

  .success-title {
    font-size: 2rem;
  }
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.success-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.success-modal {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
  padding: 28px 24px;
  text-align: center;
  animation: popIn 0.25s ease;
}

.success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #16a34a 0%, #12813b 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.25);
}

.success-modal h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #163b8c;
}

.success-modal p {
  margin: 0;
  color: #667085;
  line-height: 1.65;
  font-size: 0.98rem;
}

@keyframes popIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}