html {
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Main styles for RedFlete landing page */
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  padding-top: 60px;
  background: #fff; /* Change if you want a different background */
}
/* Ensure all anchor targets have scroll offset for fixed header */
[id] {
  scroll-margin-top: 60px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 0px 16px 0 48px; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgb(255, 255, 255);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.header-left {
  display: flex;
  align-items: center;
}
.header-logo {
  height: 60px;
  margin-left: 100px;
}

.header-nav {
  display: flex;
  gap: 38px;
  font-size: 18px;
  align-items: center;
  margin-right: 100px;
  
}
.header-nav a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.header-nav a.active, .header-nav a.pre {
  color: #e63a46;
  font-weight: 700;
}

/* ------ */


.hero {
  position: relative;
  text-align: center;
  padding: 20px 0 0 0;
  min-height: 900px;
}
.hero-title {
  padding: 0px 48px 0 48px;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 32px;
}

.hero-desc {
  font-family: 'Kalam', cursive;
  font-size: 1.6rem;
  font-weight: 600;
  display: inline-block;
  padding: 80px 185px 80px 185px;
  border-radius: 8px;
}
.hero-desc .highlight {
  color: #e63a46;
  font-weight: 700;
}

.hero-btn {
  background: #e63a46;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1rem;
  margin-top: 16px;
  margin-bottom: 120px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s;
}
.hero-btn:hover {
  background: #b71c2b;
}


/* ------ */


.section-dark {
  position: relative;
  background: #232224;
  color: #fff;
  text-align: center;
  min-height: 900px;

}

.section-dark .section-desc {
  font-family: 'Kalam', cursive;
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: #fff;
  padding: 80px 48px 0 48px;
}
.section-dark .section-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 45px;
  margin-right: 80px;
  color: #fff;

}

.dark-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}


.dark-content {
    position: relative;
    z-index: 1;
  }


.img-transportes {
  max-height: 350px !important;
  height: 350px !important;
  width: auto !important;
}

.img-manos {
  max-height: 160px !important;
  height: 160px !important;
  width: auto !important;
}

.img-personas {
  max-height: 430px !important;
  height: 430px !important;
  width: auto !important;
  margin-left: 15px !important;
}
.section-dark .section-note {
  font-family: 'Inter', Arial, sans-serif;;
  font-size: 1.8rem;
  color: #fff;
}

.section-dark .highlight {
  color: #e63a46;
  font-weight: 700;
}


/* ------ */


.preregistro-section {
  background: #232224;
  color: #fff;
  padding: 32px 0 48px 0;
  text-align: center;

}

/* Mobile-only cards section - hidden on desktop */
@media (min-width: 1001px) {
  .preregistro-cards-mobile {
    display: none;
  }
}

.preregistro-overlay-wrapper {
  position: relative;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preregistro-cards-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}
.preregistro-form-center {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.preregistro-title {
  position: relative;
  color: #e63a46;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-shadow: 1px 2px 4px #111;
}
.preregistro-cards {
  display: flex;
  justify-content: center;
  gap: 410px !important;
  margin-bottom: 16px;
  padding: 0px 48px 0px  !important;
}


.preregistro-card {
  width: 842px;
  height: 738px;
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: center top;
  margin-bottom: 12px;
  transition: background-image 0.3s ease;
}

.cliente-card {
  background-image: url('../images/cliente1-2.png');
}

.proveedor-card {
  background-image: url('../images/proveedor1-2.png');
}

/* Show hover images when form is hovered (desktop only) */
@media (min-width: 1001px) {
  .preregistro-overlay-wrapper:hover .cliente-card {
    background-image: url('../images/cliente2-2.png');
  }
  
  .preregistro-overlay-wrapper:hover .proveedor-card {
    background-image: url('../images/proveedor2-2.png');
  }
}

.preregistro-form {
  margin: 0 auto;
  max-width: 420px;
  background: #232224;
  padding: 32px 24px;

  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  color: #ffffff;
}
.preregistro-form label {
  display: block;
  margin-bottom: 6px;
  text-align: left;
}
.preregistro-form input[type="text"],
.preregistro-form input[type="email"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.preregistro-form select {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  color: #232224;
  box-sizing: border-box;
  font-family: inherit;
}
.preregistro-form input[type="checkbox"] {
  margin-right: 8px;
}
.preregistro-form .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.preregistro-form button {
  background: #e63a46;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 32px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s;
}
.preregistro-form button:hover {
  background: #b71c2b;
}


/* ------ */


.footer {
  background: #fff;
  color: #111;
  padding: 32px 0 16px 0;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
}
.footer-logo {
  height: 48px;
  margin-bottom: 8px;
}
.footer-links {
  margin-top: 8px;
}
.footer-links a {
  color: #111;
  text-decoration: underline;
  margin: 0 8px;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: #e63a46;
}
.footer-contact {
  margin-top: 8px;
  font-size: 0.95rem;
}
.telefono-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.lada-select {
  flex: 0 0 130px;
  min-width: 110px;
  max-width: 150px;
  padding: 8px 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  color: #232224;
  font-family: inherit;
}
.telefono-group input[type="text"] {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #fff;
  color: #232224;
  font-family: inherit;
  box-sizing: border-box;
}
.preregistro-warning {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 1.08rem;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}
.preregistro-warning .highlight{
  color: #e63a46;
  font-weight: 700;
}

.footer-info > div {
  margin-bottom: 12px;
}
.footer-info > div:last-child {
  margin-bottom: 0;
}
.preregistro-thanks {
  margin-top: 24px;
  color: #e63a46;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.aviso-container {
  padding-left: 48px;
  padding-right: 48px;
  text-align: justify;
  font-weight: 400;
  font-size: 1.08rem;
  color: #232224;
}

.aviso-container p {
  margin-bottom: 1.2em;
  font-weight: 400;
}


/* ------ */


@media (max-width: 1000px)

{

  .aviso-container {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 1rem;
  }

  .preregistro-cards-bg {
    display: none;
  }

  .preregistro-cards {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .preregistro-card {
    width: 300px !important;
    height: 300px !important;
    background-size: 90% !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
  }

  .cliente-card {
    background-image: url('../images/cliente2-2.png');
  }

  .proveedor-card {
    background-image: url('../images/proveedor2-2.png');
  }

  
  .preregistro-form {
    padding: 20px 16px;
    max-width: 95vw;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  }


  .header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 0 0 0;
    width: 100vw;
    min-height: 100px;
  }
  .header-logo {
    height: 60px;
    margin-left: 0;
  }

  
  .hero-title {
    font-size: 2rem;
    margin-top: -15px;
    margin-bottom: 18px;
    padding: 0 12px;
  }

  .header-nav {
    justify-content: center;
    margin-right: 0;
    width: 100%;
    font-size: 13px;
    gap: 42px;
  }
  .hero {
    position: relative;
    text-align: center;
    padding: 80px 0 0 0;
    min-height: 900px;
  }

  .hero-desc {
    font-size: 1.3rem;
    padding: 32px 18px;
    margin-bottom: 16px;
  }
  .hero-btn {
    font-size: 1rem;
    padding: 10px 20px;
    margin-bottom: 40px;
  }
  .section-dark .section-desc {
    padding: 32px 12px 0 12px;
    font-size: 1.2rem;
  }
  .dark-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
  }

 .dark-content {
    position: relative;
    /* z-index: 0; */
    height: 800px;
  }


  .section-dark .section-graphic {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0px;
    margin-right: 0px;
  }

  .img-transportes,
  .img-manos,
  .img-personas {
    max-width: 90vw !important;
    height: auto !important;
  }
 
  .img-transportes {
    margin-left: 50px !important;
    max-height: 200px !important
  }
   .img-manos {
    margin-left: 5px !important;
    margin-top: -8px !important;
    max-height: 190px !important
  }
   .img-personas {
    margin-left: 15px;
    max-height: 220px !important
  }
  .section-dark .section-note {
    margin-bottom: 35px;
  }
  
  [id] {
    scroll-margin-top: 100px;
  }
  .telefono-group {
    flex-direction: row;
    gap: 8px;
  }
  .lada-select {
    flex: 0 0 110px;
    min-width: 100px;
    max-width: 140px;
    font-size: 0.98rem;
    padding: 8px 2px;
  }
  .telefono-group input[type="text"] {
    font-size: 1rem;
    padding: 8px;
  }


}
