styles.css
/* ====== RESET BÁSICO ====== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
}

/* ====== TOPBAR ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
 background: rgba(255, 255, 255, 0.61);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
   background: transparent;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 36px; width: auto; display: block; transform: translateX(-250px) }

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__hint {
  font-size: 13px;
  color: #444;
  white-space: nowrap;
}
.topbar__login {
  display: flex;
  gap: 8px;
  align-items: center;
}
.topbar__login input {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  outline: none;
  min-width: 160px;
}
.topbar__login input:focus { border-color: rgba(200,0,0,0.6); }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: calc(100vh - 58px);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-top: -58px;      /* sube el hero */
  padding-top: 58px;      /* mantiene el contenido sin quedar tapado */
}

/* Fondo con tu imagen roja */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("/Variedad\ de\ variadores\ de\ velocidad.png"); /* <- tu imagen */
  background-size: cover;
  background-position: center 50%;
  transform: scale(1.03);
}

/* Oscurecer un poco para legibilidad (tipo “rosada”) */
.hero__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 45%, rgba(0,0,0,0.05) 100%);
}

/* Contenedor principal */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 28px 16px 44px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

/* ====== COPY IZQUIERDA ====== */
.hero__copy {
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.hero__kicker {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 12px;
  opacity: 0.9;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__titleAccent {
  color: #e9d677;
  text-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.hero__subtitle {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.45;
  max-width: 52ch;
  opacity: 0.95;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.hero__bullets li {
  font-size: 14px;
  opacity: 0.95;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.pill {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
}

/* ====== CARD FORM DERECHA ====== */
.card {
  background: rgba(255,255,255,0.70);
  border-radius: 18px;
  padding: 18px 45px 18px 20px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  justify-self: end;   /* lo pega al lado derecho de su columna */
  margin-left: 40px;  /* lo empuja aún más a la derecha */
  transform: translateX(310px);

}


.card__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #b30000;
}
.card__subtitle {
  margin: 0 0 14px;
  font-size: 13px;
  color: #444;
}

/* ====== FORM ====== */
.form { display: grid; gap: 10px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.success-msg {
  display: none;
  margin-top: 14px;
  font-weight: 700;
  color: #0a7a2f;
}

.error-msg {
  display: none;
  margin-top: 14px;
  font-weight: 700;
  color: #b30000;
}

.field { display: grid; gap: 6px; }
.field span {
  font-size: 12px;
  color: #333;
  font-weight: 700;
}
.field input, .field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.16);
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: rgba(179,0,0,0.55);
  box-shadow: 0 0 0 4px rgba(179,0,0,0.12);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: #333;
}
.check input { margin-top: 3px; }

/* ====== BOTONES ====== */
.btn {
  height: 44px;
  border-radius: 12px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.btn--primary {
  background: #b30000;
  color: #fff;
}
.btn--primary:hover { filter: brightness(0.95); }

.btn--ghost {
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(179,0,0,0.35);
  color: #b30000;
  font-weight: 800;
}
.btn--ghost:hover { background: rgba(179,0,0,0.06); }

.btn--whatsapp {
  background: #1aa34a;
  color: #fff;
}
.btn--whatsapp:hover { filter: brightness(0.95); }

.card__or {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin: 2px 0;
}
.card__fineprint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #666;
  line-height: 1.35;
}

/* ====== FOOTER ====== */
.footer {
  background: #0f0f0f;
  color: rgba(255,255,255,0.85);
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
  .topbar__hint { display: none; }
  .topbar__login input { min-width: 130px; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__copy { padding: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__bg::after{
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.10) 100%);
  }
}
/* ====== MOBILE PRO: layout vertical limpio ====== */
@media (max-width: 768px){

  /* 1) Topbar más compacta */
  .topbar{
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .topbar__inner{
    padding: 10px 12px !important;
    gap: 10px !important;
  }
  .topbar__hint{ display: none !important; } /* opcional: oculta texto largo */
  .brand__logo{ height: 26px !important; }
  .btn--ghost{ padding: 10px 14px !important; }

  /* 2) Hero sin “cortes” */
  html, body{
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  .hero, .hero__content{
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* 3) Columna vertical (texto arriba, formulario abajo) */
  .hero__content{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px 12px 22px !important;
    gap: 16px !important;
  }

  /* 4) Fondo: menos invasivo para que se lea el formulario */
  .hero__bg{
    background-position: center top !important;
    background-size: cover !important;
  }

  /* 5) Copy más cómodo */
  .hero__title{
    font-size: 32px !important;
    line-height: 1.05 !important;
  }
  .hero__subtitle{
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  /* 6) Formulario centrado y legible */
  .card{
    position: static !important;
    width: 100% !important;
    max-width: 520px !important;
    margin: 10px auto 0 !important;
    padding: 16px 14px !important;

    /* fondo más sólido para que NO se “mezcle” con la imagen */
    background: rgba(255,255,255,0.92) !important;
    border-radius: 16px !important;
     transform: none !important;
    margin-left: 0 !important;
    justify-self: stretch !important;
  }
  @media (max-width: 480px){

  /* Caja del formulario un poco más compacta */
  .card{
    max-width: 92vw !important;
    padding: 12px 12px !important;
  }

  /* Títulos del formulario más pequeños */
  .card__title{
    font-size: 14px !important;
  }
  .card__subtitle{
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }

  /* Labels más pequeños */
  .field span{
    font-size: 11px !important;
  }

  /* Inputs más bajitos */
  .field input,
  .field textarea{
    font-size: 13px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }

  /* Textarea menos alta */
  .field textarea{
    min-height: 90px !important;
  }

  /* Menos espacios entre campos */
  .form{ gap: 8px !important; }
  .form__row{ gap: 8px !important; }

  /* Botones más compactos */
  .btn{
    height: 40px !important;
    font-size: 14px !important;
  }

  /* “o” y texto pequeño más compactos */
  .card__or{ margin: 0 !important; }
  .card__fineprint{ font-size: 10px !important; }
  @media (max-width: 480px){
  .hero__copy{
    padding: 14px !important;
  }
  .hero__title{
    font-size: 28px !important;
  }
}
}


  /* 7) Nombre/Empresa en 1 columna en móvil */
  .form__row{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* 8) Botones al 100% */
  .btn{
    width: 100% !important;
  }
}
@media (max-width: 768px){

  /* Asegura que todo calcule bien el ancho */
  *, *::before, *::after{
    box-sizing: border-box !important;
  }

  /* El formulario y sus campos nunca deben superar el ancho */
  .card, .form, .field, .form__row{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Inputs y textarea no se desbordan */
  .field input,
  .field textarea{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
  }

  /* Por si algún padding/margen suma más de la cuenta */
  .card{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}