:root {
  --blue-dark: #0b2a5d;
  --blue: #1456c8;
  --blue-light: #eef5ff;
  --text: #14213d;
  --muted: #5d6b82;
  --white: #ffffff;
  --border: rgba(20, 33, 61, 0.10);
  --shadow: 0 18px 45px rgba(20, 33, 61, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:26px clamp(24px,5vw,72px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.legal-header { position: sticky; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.brand-text{
    font-size:20px;
    font-weight:700;
}
.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

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

.hero {
  min-height: 100vh;
  width: 100%;
  display: grid;
  align-items: center;
  padding: 120px clamp(22px, 7vw, 90px) 80px;
  background-color: #ffffff;
  background-image: url('../assets/hero-desktop.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 720px;
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 850px;
}

.hero-text {
  max-width: 620px;
  margin: 26px 0 34px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue-dark);
  font-weight: 800;
  box-shadow: 0 18px 30px rgba(11, 42, 93, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(11, 42, 93, 0.24);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 80px clamp(22px, 7vw, 90px) 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  transition: transform .25s ease;
}

.card:hover .card-icon {
  transform: scale(1.08);
}

.card h2,
.info-section h2,
.contact h2 {
  margin: 16px 0 12px;
  color: var(--blue-dark);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.card p,
.info-section p,
.contact p { color: var(--muted); margin: 0; }

.info-section {
  max-width: 1120px;
  margin: 50px auto;
  padding: 60px clamp(28px, 6vw, 72px);
  border-radius: 36px;
  background: linear-gradient(135deg, var(--blue-light), #ffffff);
  border: 1px solid var(--border);
}

.info-section h2 {
  font-size: clamp(32px, 4vw, 56px);
  max-width: 760px;
}

.info-section p:not(.eyebrow) {
  max-width: 830px;
  font-size: 18px;
}

.contact {
  max-width: 900px;
  margin: 70px auto 90px;
  padding: 0 clamp(22px, 6vw, 72px);
  text-align: center;
}

.contact h2 { font-size: clamp(30px, 4vw, 52px); }
.contact p { font-size: 18px; }
.small-note { margin-top: 14px !important; font-weight: 800; color: var(--blue-dark) !important; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.footer-links { display: flex; gap: 20px; font-weight: 700; }
.footer-links a:hover { color: var(--blue); }

.legal-page { background: #fbfdff; }

.legal-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 70px clamp(22px, 6vw, 72px) 90px;
  background: var(--white);
}

.legal-content h1 {
  font-size: clamp(38px, 5vw, 62px);
  margin-bottom: 12px;
}

.legal-content h2 {
  margin-top: 34px;
  color: var(--blue-dark);
}

.legal-content p { color: var(--muted); }
.updated { color: var(--blue) !important; font-weight: 800; }

@media (max-width: 780px) {
  .site-header {
    padding: 16px 18px;
  }

  .brand-text {
    font-size: 15px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
  min-height: 100vh;
  width: 100%;
  padding: 105px 22px 60px;
  align-items: start;
  background-image: url('../assets/hero-mobile.png');
  background-size: 100% 100%;
  background-position: center top;
}

  .hero-content { padding-top: 50px; }
  h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-text { font-size: 17px; margin: 22px 0 28px; }

  .cards {
    grid-template-columns: 1fr;
    padding: 56px 22px 24px;
  }

  .card { padding: 28px; border-radius: 24px; }

  .info-section {
    margin: 36px 22px;
    padding: 40px 28px;
    border-radius: 28px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================================================
   FORMULARIO CONVERSACIONAL
================================================== */

.contact {
  max-width: 1120px;
  margin: 70px auto 90px;
  padding: 0 clamp(22px, 6vw, 72px);
  text-align: center;
}

.contact-intro {
  max-width: 900px;
  margin: 0 auto 54px;
}

.contact-button {
  margin-top: 28px;
}

.form-wrapper {
  scroll-margin-top: 125px;
  width: 100%;
  max-width: 880px;
  min-height: 590px;
  margin: 0 auto;
  padding: 44px 50px;
  text-align: left;
  background: var(--white);
  border: 1px solid rgba(20, 33, 61, 0.09);
  border-radius: 30px;
  box-shadow:
    0 22px 60px rgba(20, 33, 61, 0.11);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.form-wrapper.form-highlight {
  transform: translateY(-4px);
  box-shadow:
    0 28px 70px rgba(20, 33, 61, 0.16);
}

/* ==================================================
   ENCABEZADO DEL FORMULARIO
================================================== */

.form-header {
  text-align: center;
  margin-bottom: 36px;
}

.form-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.form-kicker {
  margin: 0 0 10px !important;
  color: var(--blue) !important;
  font-size: 14px !important;
  font-weight: 800;
}

.form-header h2 {
  max-width: 700px;
  margin: 0 auto 14px;
  color: var(--blue-dark);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.form-subtitle {
  max-width: 610px;
  margin: 0 auto !important;
  color: var(--muted) !important;
  font-size: 18px !important;
}

.form-subtitle strong {
  color: var(--blue);
  font-weight: 850;
}

/* ==================================================
   INDICADORES DE PROGRESO
================================================== */

.step-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
}

.step-indicator {
  display: block;
  width: 18px;
  height: 9px;
  border-radius: 999px;
  background: #e1e6ee;
  transition:
    width 0.28s ease,
    background-color 0.28s ease,
    transform 0.28s ease;
}

.step-indicator.active {
  width: 52px;
  background: var(--blue);
}

.step-indicator.completed {
  background: #20bd63;
}

/* ==================================================
   PASOS DEL FORMULARIO
================================================== */

.form-step {
  display: none;
  min-height: 290px;
  animation: formFadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

.form-step[hidden] {
  display: none !important;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.single-question > label {
  display: block;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  color: var(--text);
  text-align: center;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

/* ==================================================
   OPCIONES DE RESPUESTA
================================================== */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  margin: 0;
  padding: 18px 22px 18px 58px;
  color: var(--text);
  background: #ffffff;
  border: 2px solid #d5dce6;
  border-radius: 16px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.choice-option:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow:
    0 9px 20px rgba(20, 86, 200, 0.08);
}

.choice-option:has(input:focus-visible) {
  border-color: var(--blue);
  box-shadow:
    0 0 0 4px rgba(20, 86, 200, 0.12);
}

.choice-option:has(input:checked) {
  color: var(--blue-dark);
  border-color: var(--blue);
  background: var(--blue-light);
}

.choice-option-wide {
  grid-column: 1 / -1;
}

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

.choice-circle {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 23px;
  height: 23px;
  border: 3px solid #cfd6e1;
  border-radius: 50%;
  transform: translateY(-50%);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.choice-option input:checked + span + .choice-circle {
  border-color: var(--blue);
}

.choice-option input:checked + span + .choice-circle::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* ==================================================
   CAMPOS INDIVIDUALES
================================================== */

.single-question {
  width: 100%;
}

.single-question input,
.single-question select {
  display: block;
  width: 100%;
  min-height: 68px;
  padding: 16px 20px;
  color: var(--text);
  background: #ffffff;
  border: 3px solid #dce1e8;
  border-radius: 15px;
  outline: none;
  font: inherit;
  font-size: 18px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.single-question input::placeholder {
  color: #9ba5b5;
}

.single-question input:focus,
.single-question select:focus {
  border-color: var(--blue);
  box-shadow:
    0 0 0 4px rgba(20, 86, 200, 0.10);
}

.single-question select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 56px;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231456c8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 19px;
}

/* ==================================================
   TELÉFONO
================================================== */

.phone-input-wrapper {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 68px;
  padding: 0 18px;
  color: var(--text);
  background: #ffffff;
  border: 3px solid #dce1e8;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 800;
}

.phone-input-wrapper input {
  min-width: 0;
}

/* ==================================================
   CONSENTIMIENTO
================================================== */

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 26px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.consent-option input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.consent-option a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
}

/* ==================================================
   BOTONES
================================================== */

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.form-actions .button {
  flex: 1;
}

.single-action .button {
  width: 100%;
}

.next-button,
.submit-button {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 15px;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 850;
}

.next-button::after {
  content: "›";
  margin-left: 12px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.back-button {
  flex: 0 0 auto;
  min-width: 145px;
  min-height: 62px;
  padding: 0 24px;
  color: var(--muted);
  background: #ffffff;
  border: 3px solid #dce1e8;
  border-radius: 15px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 850;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.back-button::before {
  content: "‹";
  margin-right: 8px;
  font-size: 25px;
  font-weight: 500;
  vertical-align: -1px;
}

.back-button:hover {
  color: var(--blue-dark);
  background: var(--blue-light);
  border-color: var(--blue);
}

.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* ==================================================
   ERRORES
================================================== */

.form-error {
  min-height: 24px;
  margin: 12px 0 2px !important;
  color: #b42318 !important;
  text-align: center;
  font-size: 14px !important;
  font-weight: 750;
}

.input-invalid {
  border-color: #b42318 !important;
  box-shadow:
    0 0 0 4px rgba(180, 35, 24, 0.08) !important;
}

/* ==================================================
   CAMPO ANTIBOTS
================================================== */

.hidden-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* ==================================================
   MENSAJE FINAL
================================================== */

.success-message {
  min-height: 470px;
  padding: 55px 20px 35px;
  text-align: center;
  animation: formFadeIn 0.4s ease;
}

.success-message[hidden] {
  display: none !important;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  color: #ffffff;
  background: #20bd63;
  border-radius: 50%;
  box-shadow:
    0 14px 28px rgba(32, 189, 99, 0.24);
  font-size: 38px;
  font-weight: 900;
}

.success-message h2 {
  max-width: 620px;
  margin: 0 auto 18px;
  color: var(--blue-dark);
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.08;
}

.success-message p {
  max-width: 590px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.success-note {
  margin-top: 18px !important;
  color: var(--blue-dark) !important;
  font-weight: 800;
}

.success-home-button {
  margin-top: 28px;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {
  .form-wrapper {
    max-width: 760px;
    padding: 38px 34px;
  }

  .choice-option {
    padding-left: 55px;
  }
}

/* ==================================================
   CELULAR
================================================== */

@media (max-width: 780px) {
  .contact {
    margin-top: 54px;
    margin-bottom: 60px;
    padding: 0 14px;
  }

  .contact-intro {
    margin-bottom: 38px;
    padding: 0 8px;
  }

  .contact-button {
    width: 100%;
  }

  .form-wrapper {
    scroll-margin-top: 90px;
    min-height: 560px;
    padding: 28px 18px;
    border-radius: 24px;
  }

  .form-header {
    margin-bottom: 29px;
  }

  .form-logo {
    width: 58px;
    height: 58px;
  }

  .form-header h2 {
    font-size: clamp(27px, 8vw, 36px);
  }

  .form-subtitle {
    font-size: 16px !important;
  }

  .step-indicators {
    gap: 7px;
    margin-top: 25px;
  }

  .step-indicator {
    width: 13px;
    height: 8px;
  }

  .step-indicator.active {
    width: 39px;
  }

  .form-step {
    min-height: 310px;
  }

  legend,
  .single-question > label {
    margin-bottom: 22px;
    font-size: clamp(22px, 6.3vw, 28px);
  }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .choice-option,
  .choice-option-wide {
    grid-column: auto;
  }

  .choice-option {
    min-height: 66px;
    padding:
      14px
      14px
      14px
      52px;
    border-radius: 14px;
    font-size: 16px;
  }

  .choice-circle {
    left: 18px;
    width: 22px;
    height: 22px;
  }

  .single-question input,
  .single-question select {
    min-height: 62px;
    padding: 14px 16px;
    font-size: 16px;
    border-width: 2px;
    border-radius: 13px;
  }

  .single-question select {
    padding-right: 48px;
    background-position: right 15px center;
  }

  .phone-input-wrapper {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
  }

  .phone-prefix {
    min-width: 0;
    min-height: 62px;
    padding: 0 9px;
    border-width: 2px;
    border-radius: 13px;
    font-size: 15px;
  }

  .consent-option {
    font-size: 12px;
  }

  .form-actions {
    gap: 10px;
  }

  .form-actions .button,
  .next-button,
  .submit-button,
  .back-button {
    min-height: 58px;
  }

  .back-button {
    min-width: 105px;
    padding: 0 13px;
    border-width: 2px;
    font-size: 14px;
  }

  .next-button,
  .submit-button {
    font-size: 16px;
  }

  .success-message {
    min-height: 430px;
    padding: 42px 5px 20px;
  }

  .success-message p {
    font-size: 16px;
  }
}

/* ==================================================
   CELULARES PEQUEÑOS
================================================== */

@media (max-width: 430px) {
  .form-wrapper {
    padding: 25px 14px;
  }

  .form-header h2 {
    font-size: 27px;
  }

  .step-indicators {
    gap: 6px;
  }

  .step-indicator {
    width: 11px;
  }

  .step-indicator.active {
    width: 33px;
  }

  .phone-input-wrapper {
    grid-template-columns: 85px minmax(0, 1fr);
  }

  .phone-prefix {
    font-size: 14px;
  }

  .form-actions {
    align-items: stretch;
  }

  .back-button {
    min-width: 93px;
    padding: 0 9px;
  }
}

  /* ==================================================
   MODO SOLO FORMULARIO
================================================== */

.form-only-mode {
  background:
    linear-gradient(
      180deg,
      #f4f8ff 0%,
      #ffffff 100%
    );
}

.form-only-mode .hero,
.form-only-mode .cards,
.form-only-mode .info-section,
.form-only-mode .contact-intro,
.form-only-mode .site-footer {
  display: none !important;
}

.form-only-mode .site-header {
  position: fixed;
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
}

.form-only-mode .contact {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding:
    125px
    clamp(14px, 4vw, 34px)
    34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-only-mode .form-wrapper {
  width: 100%;
  max-width: 880px;
  margin: 0;
}

@media (max-width: 780px) {
  .form-only-mode .site-header {
    padding: 10px 14px;
  }

  .form-only-mode .site-header .nav a:first-child {
    display: none;
  }

  .form-only-mode .contact {
    min-height: 100svh;
    padding:
      88px
      8px
      12px;
    align-items: flex-start;
  }

  .form-only-mode .form-wrapper {
    min-height: calc(100svh - 100px);
    border-radius: 20px;
  }
}

  /* ==================================================
   HEADER COMPACTO EN MODO FORMULARIO
================================================== */

.form-only-mode .site-header {
  min-height: 54px;
  padding:
    7px
    clamp(18px, 4vw, 48px);
}

.form-only-mode .brand {
  gap: 9px;
}

.form-only-mode .brand-logo {
  width: 38px;
  height: 38px;
}

.form-only-mode .brand-text {
  font-size: 14px;
}

.form-only-mode .nav {
  gap: 18px;
  font-size: 12px;
}

.form-only-mode .contact {
  padding-top: 82px;
}

@media (max-width: 780px) {
  .form-only-mode .site-header {
    min-height: 50px;
    padding: 6px 12px;
  }

  .form-only-mode .brand-logo {
    width: 34px;
    height: 34px;
  }

  .form-only-mode .brand-text {
    font-size: 12px;
  }

  .form-only-mode .nav {
    gap: 11px;
    font-size: 10px;
  }

  .form-only-mode .contact {
    padding-top: 68px;
  }
}