:root {
  --green: #47786e;
  --purple: #514fc7;
  --ink: #17191b;
  --soft: #f5f6f8;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--ink);
  line-height: 1.55;
}
header {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  position: sticky;
  top: 0;
  background: #fffc;
  backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid #eee;
}
.brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green);
  text-decoration: none;
}
nav {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
nav a,
footer a {
  color: inherit;
  text-decoration: none;
}
section {
  padding: 82px max(24px, calc((100% - var(--max)) / 2));
}
h1 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  line-height: 1.02;
  margin: 0.2em 0;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 18px;
}
h3 {
  margin: 8px 0;
}
.lead {
  max-width: 850px;
  font-size: 1.08rem;
}
.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding-right: 0;
}
.hero > div {
  padding-right: 50px;
}
.hero img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: center;
}
.eyebrow {
  color: var(--purple);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-block;
  border: 0;
  background: var(--purple);
  color: white;
  padding: 13px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
}
.btn.small {
  padding: 9px 14px;
  width: 90px;
}
.btn.outline {
  background: transparent;
  color: var(--purple);
  box-shadow: inset 0 0 0 1px var(--purple);
}
.btn.light {
  background: #fff;
  color: var(--purple);
}
.cards {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}
.cards.three {
  grid-template-columns: repeat(3, 1fr);
}
.cards.two {
  grid-template-columns: repeat(2, 1fr);
}
.cards article,
.cards blockquote {
  margin: 0;
  background: #fff;
  border: 1px solid #e3e5ea;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 28px #0000000a;
}
.cards i {
  font-style: normal;
  font-size: 2rem;
}
.dark {
  background: var(--green);
  color: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 42px;
}
.steps b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e5e3ff;
  color: var(--purple);
  font-size: 1.2rem;
}
.tracking {
  position: relative;
  min-height: 500px;
  background:
    linear-gradient(90deg, #fffffff5, #ffffffc7),
    url("assets/tracking.jpg") center/cover;
}
.tracking > div {
  max-width: 800px;
}
.tracking li {
  margin: 15px 0;
}
.split,
.forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-top: 32px;
}
.split article {
  padding: 30px;
  border-left: 5px solid var(--purple);
  background: var(--soft);
}
.soft {
  background: var(--soft);
}
.team .gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 35px 0;
}
.stats article {
  text-align: center;
  padding: 30px;
  border-right: 1px solid #ddd;
}
.stats article:last-child {
  border: 0;
}
.stats strong {
  font-size: 3.3rem;
  color: var(--purple);
}
blockquote b {
  display: block;
  margin-top: 18px;
}
.advanced {
  background:
    linear-gradient(#ffffffec, #ffffffec),
    url("assets/advanced.jpg") center/cover;
}
.forms form {
  padding: 30px;
  background: var(--soft);
  border-radius: 14px;
}
label {
  display: block;
  font-weight: 650;
  margin: 14px 0;
}
.input-dom,select,input:not([type="checkbox"]) {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd3d8;
  border-radius: 7px;
  margin-top: 5px;
  font: inherit;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
}
.cta {
  text-align: center;
  background: var(--purple);
  color: #fff;
}
.legal {
  padding-top: 35px;
  padding-bottom: 35px;
}
.legal details {
  border-top: 1px solid #ddd;
  padding: 18px 0;
}
.legal summary {
  font-weight: 800;
  cursor: pointer;
}
footer {
  padding: 35px max(24px, calc((100% - var(--max)) / 2));
  background: #202422;
  color: #fff;
  display: flex;
  gap: 25px;
  justify-content: space-between;
  flex-wrap: wrap;
}
@media (max-width: 780px) {
  header nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 0 0;
  }
  .hero > div {
    padding: 0 24px 45px;
  }
  .hero img {
    height: 420px;
  }
  .cards.three,
  .cards.two,
  .steps,
  .split,
  .forms,
  .stats {
    grid-template-columns: 1fr;
  }
  .team .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .stats article {
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }
  .btn.small {
    margin-left: auto;
  }
  section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* =========================================================
   REGISTRO DE REPARTIDORES
   Conserva IDs, names y eventos JS del formulario original
   ========================================================= */

.driver-register .contenedor-formulario {
  margin-top: 32px;
}

.driver-form {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
}

/* Tres columnas principales */
.container-grid-late {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

/* Cada campo */
.driver-form .grupo_input {
  margin-bottom: 24px;
}

/* =========================================================
   LABELS
   ========================================================= */

.driver-form .grupo_input > label {
  display: block;
  position: static;
  width: 100%;
  margin: 0 0 10px 0;
  padding: 0;

  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;

  transform: none;
}

/* =========================================================
   INPUTS NORMALES
   ========================================================= */

.driver-form select,
.driver-form input:not([type="button"]):not([type="file"]) {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd3d8;
  border-radius: 7px;
  margin-top: 5px;
  font: inherit;
  background: #fff;
}

/* =========================================================
   ÁREA PARA SUBIR FOTOGRAFÍAS
   ========================================================= */

.driver-form .prev-cust-back {
  position: relative;

  width: 100%;
  height: 300px;

  padding: 12px;

  border: 1px dashed #b9bec7;
  border-radius: 10px;

  background: #fafbfc;

  overflow: hidden;
}

/* Contenedor donde JS muestra la imagen seleccionada */
.driver-form .prev-cust-back .vp {
  width: 100%;
  height: 100%;
  min-height: 0;

  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Capa del botón "Subir fotografía" */
.driver-form .prev-cust-back .cover {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texto/botón "Subir fotografía" */
.driver-form .prev-cust-back .cover span {
  display: inline-block;

  margin: 0;
  padding: 10px 14px;

  color: #fff;

  background: #818181;

  border-radius: 6px;

  font-size: 16px;
  line-height: 1.3;
  font-weight: 650;

  white-space: nowrap;

  pointer-events: none;
}

/*
 * El input file ocupa todo el recuadro.
 * Sigue siendo clickeable, pero es invisible.
 */
.driver-form .prev-cust-back input[type="file"] {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  opacity: 0;

  cursor: pointer;
}

/* =========================================================
   LOADING Y BOTÓN REGISTRARSE
   ========================================================= */

.driver-form .loadingio-minispinner {
  min-height: 8px;
}

.driver-form .btn-submit {
  width: 100%;
  margin-top: 10px;
}

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

@media (max-width: 900px) {

  .container-grid-late {
    grid-template-columns: 1fr;
  }

  .driver-form {
    padding: 22px;
  }

  .driver-form .prev-cust-back {
    height: 280px;
  }
}

@media (max-width: 500px) {

  .driver-form {
    padding: 16px;
  }

  .driver-form .grupo_input > label {
    font-size: 16px;
  }

  .driver-form .prev-cust-back {
    height: 250px;
  }

  .driver-form .prev-cust-back .cover span {
    font-size: 16px;
    padding: 10px 14px;
  }
}