:root {
  --white: #ffffff;
  --red: #dd1d16;
  --red-dark: #a90f0a;
  --yellow: #ffca2f;
  --yellow-dark: #e6ad00;
  --text: #171717;
  --muted: #5a5a5a;
  --gray-100: #f8f9fb;
  --gray-200: #e8ecf1;
  --success: #0b8f4b;
  --error: #c62828;
  --radius-sm: 0.625rem;
  --radius-md: 1.05rem;
  --radius-lg: 1.5rem;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-card: 0 14px 30px rgba(221, 29, 22, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

.prelaunch-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 202, 47, 0.25), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(221, 29, 22, 0.25), transparent 46%),
    linear-gradient(170deg, #fff, #fff7e2);
}

.prelaunch-gate[hidden] {
  display: none;
}

.prelaunch-gate__card {
  width: min(460px, 100%);
  border: 1px solid #ffd9d2;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 40px rgba(179, 34, 26, 0.2);
  padding: 1.2rem;
}

.prelaunch-gate__logo {
  width: 120px;
  margin: 0 auto 0.8rem;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.18));
}

.prelaunch-gate__card h1 {
  margin: 0;
  text-align: center;
  font-size: 1.4rem;
  color: var(--red-dark);
}

.prelaunch-gate__card p {
  margin: 0.4rem 0 1rem;
  text-align: center;
  color: var(--muted);
}

.prelaunch-gate__form {
  display: grid;
  gap: 0.8rem;
}

.prelaunch-gate__form.is-loading .btn {
  opacity: 0.9;
  pointer-events: none;
}

.prelaunch-gate__form.is-loading .form-status.is-success::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  border: 2px solid rgba(11, 143, 75, 0.25);
  border-top-color: var(--success);
  vertical-align: -2px;
  animation: gate-spin 0.8s linear infinite;
}

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

img {
  max-width: 100%;
  display: block;
}

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

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

.section {
  padding: clamp(4.2rem, 8vw, 6rem) 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--red);
  text-transform: uppercase;
  font-size: 0.77rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4.6vw, 2.9rem);
  margin: 0 0 0.8rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 4%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.brand__badge {
  background: var(--red);
  color: var(--white);
  padding: 0.28rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
}

.brand__text {
  color: var(--red-dark);
  font-size: 0.85rem;
}

.main-nav {
  display: none;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.main-nav a {
  opacity: 0.9;
}

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

.menu-toggle {
  border: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 99px;
}

.mobile-menu {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 4%;
  display: none;
  gap: 0.5rem;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 95;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 58px);
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  padding: 0.55rem;
  border-radius: 0.5rem;
}

.mobile-menu a:hover {
  background: var(--gray-100);
  color: var(--red);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 5.6rem;
  background:
    radial-gradient(circle at 5% 15%, rgba(255, 202, 47, 0.16), transparent 38%),
    radial-gradient(circle at 95% 0%, rgba(221, 29, 22, 0.12), transparent 42%),
    linear-gradient(to bottom, #fff 0%, #fff8f5 52%, #fff 100%);
}

.hero__bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.hero__bg-shape--red {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 30% 30%, #ff7f74, var(--red));
  top: -80px;
  right: -120px;
  opacity: 0.19;
}

.hero__bg-shape--yellow {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 50% 50%, #ffe488, var(--yellow));
  bottom: 30px;
  left: -100px;
  opacity: 0.2;
}

.hero__grid {
  display: grid;
  gap: 2.6rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1.01;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.13rem);
  color: #3b3b3b;
  margin: 1.1rem 0;
  max-width: 58ch;
}

.hero__benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: #3f3f3f;
  font-weight: 500;
}

.hero__benefits li::before {
  content: "• ";
  color: var(--red);
  font-weight: 800;
}

.hero__cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__metrics {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero__metrics article {
  border: 1px solid var(--gray-200);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.65rem 0.7rem;
}

.hero__metrics strong {
  display: block;
  font-size: 1rem;
  color: var(--red-dark);
}

.hero__metrics span {
  color: var(--muted);
  font-size: 0.77rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  min-height: 48px;
  padding: 0.85rem 1.18rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn--primary {
  background: linear-gradient(135deg, var(--red), #ff4034);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn--ghost {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--text);
}

.whatsapp-assistant {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid #bdeccf;
  background: linear-gradient(140deg, #f3fff8, #e6fff0);
}

.whatsapp-assistant__avatar {
  width: 58px;
  height: 58px;
  border-radius: 0.7rem;
  object-fit: cover;
  border: 1px solid #9fe2bc;
}

.whatsapp-assistant__text strong {
  display: block;
  color: #0c6d3c;
  font-size: 0.92rem;
}

.whatsapp-assistant__text small {
  display: block;
  color: #256646;
  font-size: 0.74rem;
}

.whatsapp-assistant__icon {
  width: 20px;
  height: 20px;
  background: #1fad59;
  border-radius: 50%;
  padding: 4px;
}

.hero__visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.hero__halo {
  position: absolute;
  width: min(92vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 202, 47, 0.25) 0%, rgba(221, 29, 22, 0.12) 45%, transparent 68%);
  filter: blur(6px);
}

.hero__ring {
  width: min(84vw, 420px);
  aspect-ratio: 1;
  border: 16px solid #ffcf43;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff 22%, #fff4cf 120%);
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.7), 0 18px 40px rgba(225, 37, 27, 0.13);
}

.hero__mascot {
  position: absolute;
  width: min(78vw, 390px);
  object-fit: contain;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.22));
}

.hero__chip {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.1);
}

.hero__chip--one {
  top: 16px;
  left: 6%;
}

.hero__chip--two {
  right: 3%;
  top: 44%;
}

.hero__chip--three {
  bottom: 16px;
  left: 12%;
}

.scroll-indicator {
  width: fit-content;
  margin: 2rem auto 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.scroll-indicator__mouse {
  width: 24px;
  height: 38px;
  border: 2px solid #bbb;
  border-radius: 24px;
  position: relative;
  margin-top: 0.45rem;
}

.scroll-indicator__mouse::before {
  content: "";
  width: 4px;
  height: 8px;
  background: var(--red);
  border-radius: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6px;
  animation: scroll-dot 1.4s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

.brands {
  background: linear-gradient(to bottom, #fff, #fff7f3);
  border-top: 1px solid #ffe6df;
  border-bottom: 1px solid #ffece6;
}

.brands__legend {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.brands__legend span {
  background: #fff;
  border: 1px solid #ffe2dc;
  color: var(--red-dark);
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.brands__marquee {
  overflow: hidden;
  display: flex;
  margin-top: 1.55rem;
  padding: 0.4rem 0 0.2rem;
}

.brands__track {
  display: flex;
  gap: 0.95rem;
  min-width: max-content;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-item {
  width: 170px;
  height: 82px;
  padding: 0.6rem 0.75rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #f0d7d0;
  border-radius: 1rem;
  box-shadow: 0 14px 25px rgba(219, 85, 56, 0.08);
}

.brand-img {
  width: 100%;
    height: 65px;
  object-fit: contain;
  display: block;
  border-radius: 0.4rem;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid #f1d7cf;
  object-fit: contain;
  padding: 0.28rem;
}

.benefits__grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.85rem;
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.coverage {
  background: linear-gradient(to bottom, #f8faff, #f7f9fc);
}

.coverage__grid {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}

.coverage__info ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.coverage__map-card {
  min-height: 320px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 20% 20%, #fff9cc, #ffd975);
  border: 2px dashed rgba(184, 15, 8, 0.28);
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.coverage__map-frame {
  width: 100%;
  height: 210px;
  border: 0;
  border-radius: 0.9rem;
  opacity: 0.95;
}

.coverage__maps-grid {
  display: grid;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.coverage__tabs {
  margin-top: 2rem;
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #f1d8b4;
  border-radius: 999px;
  padding: 0.3rem;
  position: relative;
  z-index: 1;
}

.coverage__tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #7f4515;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
}

.coverage__tab.is-active {
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.coverage__map-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #f1d8b4;
  border-radius: 1rem;
  padding: 0.55rem;
}

.coverage__map-panel:not(.is-active) {
  display: none;
}

.coverage__map-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  color: #7f4515;
}

.map-dot {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  z-index: 1;
}

.map-dot--hub {
  top: 28%;
  left: 18%;
}

.map-dot--nuble {
  bottom: 24%;
  right: 12%;
}

.form-section {
  background: var(--white);
}

.form-section--alt {
  background: #fff6f4;
}

.form {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 0.92rem;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
  display: grid;
  gap: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d3d9e2;
  border-radius: 0.72rem;
  padding: 0.8rem 0.82rem;
  font: inherit;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ff7a6f;
  box-shadow: 0 0 0 3px rgba(225, 37, 27, 0.13);
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.55rem;
  font-weight: 600;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.full {
  grid-column: 1 / -1;
}

.form__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.form__actions .btn {
  width: 100%;
}

.form-status {
  margin: 0;
  font-weight: 700;
}

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

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

.is-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12) !important;
}

.dynamic-fields {
  background: linear-gradient(145deg, #fffdf7, #fff6da);
  border: 1px solid #efdca1;
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.file-chip {
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.5rem;
}

.image-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
}

.faq {
  background: var(--gray-100);
}

.faq-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1rem 1rem;
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  position: relative;
  padding-right: 1.5rem;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  color: var(--red);
  font-size: 1.2rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.footer {
  background: #121212;
  color: #ededed;
  padding-bottom: 2rem;
}

.footer__grid {
  display: grid;
  gap: 1.2rem;
}

.footer h3 {
  margin: 0 0 0.7rem;
}

.footer p,
.footer a {
  margin: 0 0 0.45rem;
  color: #d3d3d3;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.footer__social a {
  border: 1px solid #3a3a3a;
  padding: 0.32rem 0.55rem;
  border-radius: 0.45rem;
}

.footer__legal {
  margin-top: 1.1rem;
  border-top: 1px solid #2d2d2d;
  padding-top: 1rem;
  font-size: 0.88rem;
}

.wa-float {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 120;
  display: grid;
  align-items: center;
  gap: 0.45rem;
  width: min(330px, calc(100vw - 28px));
  border-radius: 999px;
  padding: 0.48rem 0.62rem;
  background: #1fad59;
  color: #fff;
  box-shadow: 0 14px 30px rgba(16, 101, 58, 0.35);
}

/* Tablet y escritorio: avatar Francisca alineado a la izquierda + texto a la derecha */
@media (min-width: 561px) {
  .wa-float {
    grid-template-columns: auto 1fr;
    justify-items: stretch;
  }

  .wa-float__avatar {
    justify-self: start;
  }

  .wa-float span {
    justify-self: start;
    text-align: left;
  }
}

.wa-float__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.wa-float strong {
  display: block;
  font-size: 0.82rem;
}

.wa-float small {
  display: block;
  opacity: 0.95;
  font-size: 0.69rem;
}

@media (max-width: 560px) {
  .hero__chip--two {
    right: 0;
    top: 54%;
  }

  .hero__chip--three {
    display: none;
  }

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

  .brand-item {
    width: 148px;
    height: 76px;
  }

  .brand-img {
    width: 100%;
    height: 61px;
  }

  .wa-float {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 0;
    display: grid;
    grid-template-columns: unset;
    place-items: center;
    right: 12px;
    bottom: 14px;
  }

  .wa-float__avatar {
    width: 58px;
    height: 58px;
    margin: 0;
  }

  .wa-float span {
    display: none;
  }

  .wa-float::before {
    content: "Atencion clientes registrados";
    position: absolute;
    right: 78px;
    bottom: 22px;
    white-space: nowrap;
    background: rgba(18, 18, 18, 0.88);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.36rem 0.54rem;
    border-radius: 999px;
  }
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__metrics article {
    padding: 0.75rem 0.8rem;
  }

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .form__actions .btn {
    width: auto;
  }
}

@media (min-width: 920px) {
  .main-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  .hero {
    min-height: 86vh;
    display: grid;
    align-items: center;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .hero__metrics {
    max-width: 560px;
  }

  .benefits__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
