/* ===== Landing — Portal de selección Guaca Repuestos ===== */
:root { color-scheme: dark; }

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* ══════════════════════════════════════
   LAYOUT RAÍZ
══════════════════════════════════════ */
.ld-root {
  position: relative;
  width: 100vw;
  height: 100dvh;
  display: flex;
  overflow: hidden;
}

/* ══════════════════════════════════════
   MITADES — 50% cada una, full height
   La línea amarilla ES el border-right
   de la mitad izquierda — siempre recta
══════════════════════════════════════ */
.ld-half {
  position: relative;
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: filter .25s ease;
  overflow: hidden;
  cursor: pointer;
}
.ld-half:hover  { filter: brightness(1.07); }
.ld-half:active { filter: brightness(1.12); }

/* Mitad izquierda — borde derecho amarillo ES la línea */
.ld-half-left {
  background: linear-gradient(145deg, #0b2270 0%, #1a3fbe 55%, #0b2270 100%);
  border-right: 16px solid #f5b800;
  box-shadow: inset -2px 0 0 #f5b800,
              4px 0 24px rgba(245,184,0,.7),
              8px 0 60px rgba(245,184,0,.35);
}

/* Mitad derecha — azul oscuro marca */
.ld-half-right {
  background: #222842;
}

/* ══════════════════════════════════════
   BADGE CENTRAL sobre el borde
══════════════════════════════════════ */
.ld-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
  pointer-events: none;
}
.ld-badge svg { width: 14px; height: 14px; color: #555; }

/* ══════════════════════════════════════
   CONTENIDO
══════════════════════════════════════ */
.ld-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 380px;
  /* margen izquierdo fijo — aleja del borde exterior, acerca al divisor */
  margin-left: auto;
  margin-right: 8%;
}

.ld-half-right .ld-content {
  margin-left: 8%;
  margin-right: auto;
}

/* ══════════════════════════════════════
   TEXTOS
══════════════════════════════════════ */
.ld-chip {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.ld-chip-yellow {
  background: rgba(247,185,25,.18);
  color: #f7d050;
  border: 1px solid rgba(247,185,25,.35);
}
.ld-chip-red {
  background: rgba(196,22,43,.22);
  color: #ff6b7a;
  border: 1px solid rgba(196,22,43,.4);
}

.ld-title {
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -.025em;
}
.ld-title em { font-style: normal; }
.ld-title-yellow em { color: #f8b81b; }
.ld-title-red    em { color: #ff4d5e; }

.ld-desc {
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(255,255,255,.52);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 280px;
}

/* ══════════════════════════════════════
   BOTÓN CTA
══════════════════════════════════════ */
.ld-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  pointer-events: none;
  transition: transform .18s, box-shadow .18s;
}
.ld-half:hover .ld-btn {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.ld-btn-yellow {
  background: #f8b81b;
  color: #1a1000;
  box-shadow: 0 4px 18px rgba(247,185,25,.45);
}
.ld-btn-red {
  background: #c4162b;
  color: #fff;
  box-shadow: 0 4px 18px rgba(196,22,43,.45);
}

/* ══════════════════════════════════════
   DECORATIVO DE FONDO
══════════════════════════════════════ */
.ld-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ld-half-left .ld-deco {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 65%);
  top: -160px; right: -200px;
}
.ld-half-right .ld-deco {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,80,80,.05) 0%, transparent 65%);
  bottom: -120px; left: -120px;
}

/* ══════════════════════════════════════
   PREGUNTA SUPERIOR Y FOOTER
══════════════════════════════════════ */
.ld-question {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 25;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  /* fondo degradado para legibilidad sobre cualquier fondo */
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.ld-foot {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  font-size: 10px;
  color: rgba(255,255,255,.2);
  white-space: nowrap;
  letter-spacing: .04em;
  pointer-events: none;
}

/* ══════════════════════════════════════
   RESPONSIVE móvil (<= 640px)
══════════════════════════════════════ */
@media (max-width: 640px) {
  html, body { overflow: auto; }

  .ld-root {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
  }
  .ld-half {
    flex: none;
    width: 100%;
    min-height: 50dvh;
    align-items: flex-start;
    padding: 48px 32px;
  }
  .ld-half-left {
    border-right: none;
    border-bottom: 12px solid #f5b800;
    box-shadow: 0 4px 24px rgba(245,184,0,.5);
  }
  .ld-content,
  .ld-half-right .ld-content {
    padding: 0;
    max-width: 100%;
  }
  .ld-badge   { display: none; }
  .ld-question { display: none; }
  .ld-foot {
    position: relative;
    bottom: auto; left: auto;
    transform: none;
    padding: 20px 32px;
    text-align: center;
    display: block;
  }
}
