:root {
  --red: #E2231E;
  --green: #009C4E;
  --white: #FFFFFF;
  --ink: #252525;
  --field-bg: #DCEFE6;
  --error: #B31613;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background: var(--white);
}

/* =========================================================
   HEADER — MISMA LÓGICA VISUAL DE LA REFERENCIA
   ========================================================= */

.brand-hero {
  position: relative;
  width: 100%;
  height: clamp(270px, 25vw, 340px);
  overflow: hidden;
  background: var(--white);
}

.hero-art,
.footer-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-art--tablet,
.hero-art--mobile,
.footer-art--tablet,
.footer-art--mobile {
  display: none;
}

.shape-red {
  fill: var(--red);
}

.shape-green {
  fill: var(--green);
}

.brand-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(64px, 6.2vw, 88px) 24px 48px;
}

.brand-logo {
  display: block;
  width: clamp(330px, 35vw, 485px);
  max-width: 78vw;
  height: auto;
  object-fit: contain;
}

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

.registration-section {
  width: 100%;
  background: var(--white);
}

.registration-inner {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 68px;
}

.registration-inner h1 {
  margin: 0 0 31px;
  color: var(--red);
  font-size: clamp(24px, 2.15vw, 29px);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
}

.lead-form {
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 58px;
  row-gap: 30px;
}

.field label,
.radio-group legend {
  display: block;
  color: var(--red);
}

.field label {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.2;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 19px;
  outline: none;
  background: var(--field-bg);
  color: var(--ink);
  padding: 8px 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(0, 156, 78, .55);
  box-shadow: 0 0 0 3px rgba(0, 156, 78, .10);
}

.field input.is-invalid,
.field select.is-invalid {
  border-color: var(--red);
  background: #FFF7F7;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 13px;
  height: 13px;
  border-right: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
}

.field-error {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  color: var(--error);
  font-size: 12px;
  line-height: 1.3;
}

.store-address {
  display: block;
  min-height: 18px;
  margin-top: 3px;
  color: #4F6E60;
  font-size: 11.5px;
  line-height: 1.35;
}

.radio-group {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.radio-group legend {
  margin-bottom: 7px;
  font-size: 15px;
}

.radio-options {
  display: flex;
  align-items: center;
  gap: 48px;
}

.choice {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--red);
  cursor: pointer;
  user-select: none;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-control {
  flex: 0 0 auto;
  display: inline-block;
  border: 1.5px solid rgba(0, 156, 78, .48);
  background: var(--white);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.choice-control--radio {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border-color: transparent;
  background: var(--field-bg);
}

.choice-control--checkbox {
  width: 28px;
  height: 28px;
  margin-top: 1px;
}

.choice input:focus-visible + .choice-control {
  box-shadow: 0 0 0 3px rgba(0, 156, 78, .14);
}

.choice input:checked + .choice-control--radio {
  border: 5px solid var(--field-bg);
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(0, 156, 78, .35);
}

.choice input:checked + .choice-control--checkbox {
  position: relative;
  border-color: var(--green);
  background: var(--green);
}

.choice input:checked + .choice-control--checkbox::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 7px;
  height: 14px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.marketing-choice {
  max-width: 470px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.35;
}

.form-actions {
  display: flex;
  justify-content: center;
  padding-top: 32px;
}

.form-actions button {
  min-width: 142px;
  min-height: 44px;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: var(--white);
  color: var(--green);
  padding: 7px 22px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 120ms ease,
    opacity 160ms ease;
}

.form-actions button:hover {
  background: var(--green);
  color: var(--white);
}

.form-actions button:active {
  transform: translateY(1px);
}

.form-actions button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.form-status {
  min-height: 24px;
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.form-status.is-success {
  color: var(--green);
}

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

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================================
   FOOTER — ESPEJO DEL HEADER, SIN INVADIR TEXTO
   ========================================================= */

.site-footer {
  position: relative;
  width: 100%;
  height: clamp(150px, 13vw, 175px);
  overflow: hidden;
  background: var(--white);
}

.site-footer__content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 56px));
  height: 100%;
  margin: 0 auto;
  padding: 34px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.legal-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px 44px;
  flex-wrap: wrap;
  text-align: center;
}

.legal-nav a,
.site-footer__content p {
  margin: 16px auto 0;
  max-width: 720px;
  padding: 0 10px;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

.legal-nav a {
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.legal-nav a:hover {
  text-decoration: underline;
}

.site-footer__content p {
  margin: 16px 0 0;
  font-size: 17px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablets: conserva las ondas separadas del logo y el footer centrado. */
@media (min-width: 601px) and (max-width: 1024px) {
  .hero-art--desktop,
  .hero-art--mobile,
  .footer-art--desktop,
  .footer-art--mobile {
    display: none;
  }

  .hero-art--tablet,
  .footer-art--tablet {
    display: block;
  }

  .brand-hero {
    height: 285px;
  }

  .brand-hero__content {
    padding: 66px 28px 50px;
    align-items: flex-start;
  }

  .brand-logo {
    width: clamp(285px, 39vw, 350px);
    max-width: 46vw;
  }

  .registration-inner {
    width: min(720px, calc(100% - 56px));
    padding: 28px 0 60px;
  }

  .registration-inner h1 {
    margin-bottom: 28px;
    font-size: 25px;
  }

  .form-grid {
    column-gap: 42px;
    row-gap: 28px;
  }

  .field label {
    font-size: 19px;
  }

  .site-footer {
    height: 205px;
  }

  .site-footer__content {
    width: min(670px, calc(100% - 72px));
    padding: 46px 0 34px;
    justify-content: flex-start;
  }

  .legal-nav {
    gap: 10px 24px;
  }

  .legal-nav a {
    font-size: 12.5px;
    white-space: normal;
  }

  .site-footer__content p {
    margin-top: 14px;
    max-width: 520px;
    font-size: 16px;
  }
}

/* Teléfonos grandes y medianos */
@media (max-width: 600px) {
  .hero-art--desktop,
  .hero-art--tablet,
  .footer-art--desktop,
  .footer-art--tablet {
    display: none;
  }

  .hero-art--mobile,
  .footer-art--mobile {
    display: block;
  }

  .brand-hero {
    height: 235px;
  }

  .brand-hero__content {
    padding: 58px 18px 42px;
    align-items: flex-start;
  }

  .brand-logo {
    width: min(245px, 63vw);
    max-width: 245px;
  }

  .registration-inner {
    width: min(calc(100% - 30px), 520px);
    padding: 26px 0 50px;
  }

  .registration-inner h1 {
    margin-bottom: 27px;
    font-size: 22px;
    line-height: 1.2;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .field label {
    font-size: 17px;
  }

  .field input,
  .field select {
    min-height: 46px;
    border-radius: 20px;
  }

  .radio-group {
    margin-top: 19px;
  }

  .radio-group legend {
    font-size: 13.5px;
    line-height: 1.4;
  }

  .radio-options {
    gap: 28px;
  }

  .marketing-choice {
    max-width: 100%;
    font-size: 13px;
  }

  .form-actions {
    padding-top: 29px;
  }

  .form-actions button {
    min-width: 132px;
    font-size: 22px;
  }

  .site-footer {
    height: 245px;
  }

  .site-footer__content {
    width: calc(100% - 54px);
    max-width: 360px;
    padding: 54px 0 30px;
    justify-content: flex-start;
  }

  .legal-nav {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .legal-nav a {
    width: 100%;
    font-size: 12.5px;
    line-height: 1.35;
    white-space: normal;
  }

  .site-footer__content p {
    width: 100%;
    max-width: 315px;
    margin: 14px auto 0;
    padding: 0 8px;
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Teléfonos estrechos */
@media (max-width: 390px) {
  .brand-hero {
    height: 228px;
  }

  .brand-hero__content {
    padding-top: 60px;
  }

  .brand-logo {
    width: min(220px, 60vw);
    max-width: 220px;
  }

  .registration-inner {
    width: calc(100% - 28px);
  }

  .registration-inner h1 {
    font-size: 21px;
  }

  .site-footer {
    height: 250px;
  }

  .site-footer__content {
    width: calc(100% - 50px);
    max-width: 330px;
    padding-top: 56px;
  }

  .legal-nav a {
    font-size: 12px;
  }

  .site-footer__content p {
    max-width: 290px;
    font-size: 13.5px;
  }
}


/* Corrección V7.1: restaurar color oficial del footer legal */
.legal-nav a,
.legal-nav a:visited,
.legal-nav a:active,
.site-footer__content p {
  color: var(--red);
}
