/* Legal Bovur — acceso */

:root {
  --lg-side: #101c26;
  --lg-bg: #f7f6f2;
  --lg-ink: #17222c;
  --lg-text: #2a323a;
  --lg-muted: #646c74;
  --lg-faint: #9aa0a5;
  --lg-field: #d9d9d6;
  --lg-btn: #172531;
  --lg-btn-hover: #213444;
  --lg-brand: #00c79a;
  --lg-brand-ink: #0a7a5f;
  --lg-danger: #9b3b36;
  --lg-font: "Libre Franklin", "Segoe UI", system-ui, -apple-system, sans-serif;
  --lg-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --lg-photo: url("/assets/img/home-hero.jpg");

  /* Las medidas se adaptan a la altura de la pantalla para que el acceso quepa sin scroll */
  --lg-pad-x: clamp(36px, 4.2vw, 80px);
  --lg-field-h: clamp(46px, 5.4vh, 54px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

.lg-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--lg-bg);
  color: var(--lg-text);
  font-family: var(--lg-font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.lg-shell {
  display: grid;
  grid-template-columns: 54% 46%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
}

/* ── Panel izquierdo ─────────────────────────────────────── */
.lg-side {
  position: relative;
  overflow: hidden;
  background: var(--lg-side);
  color: #fff;
  isolation: isolate;
}

.lg-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--lg-photo) 58% 50% / cover no-repeat;
  transform: scale(1.06);
  animation: lg-photo-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lg-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 19, 27, 0.72) 0%, rgba(10, 19, 27, 0.18) 26%, rgba(10, 19, 27, 0.25) 48%, rgba(10, 19, 27, 0.9) 82%, #0d1821 100%),
    linear-gradient(90deg, rgba(10, 19, 27, 0.55) 0%, rgba(10, 19, 27, 0) 60%);
}

.lg-glow {
  position: absolute;
  z-index: -1;
  left: -12%;
  bottom: -28%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 199, 154, 0.28), rgba(0, 199, 154, 0));
  filter: blur(10px);
  pointer-events: none;
  animation: lg-breathe 9s ease-in-out infinite;
}

.lg-side-in {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 5vh, 52px) var(--lg-pad-x) clamp(54px, 9vh, 92px);
}

.lg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: lg-rise 0.6s ease-out both;
}
.lg-brand img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.lg-brand span {
  font-family: var(--lg-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff;
}

/* Tarjetas flotantes: muestran lo que hace la plataforma */
.lg-float {
  display: grid;
  justify-items: end;
  gap: 12px;
  margin: clamp(28px, 6vh, 64px) 0 0 auto;
  width: min(360px, 100%);
}
.lg-note {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(13, 24, 33, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0;
  animation: lg-note-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, lg-bob 7s ease-in-out infinite;
  animation-delay: calc(0.5s + var(--i) * 0.35s), calc(1.4s + var(--i) * 0.9s);
}
.lg-note:nth-child(2) { width: 92%; margin-right: 8%; }
.lg-note:nth-child(3) { width: 86%; }
.lg-note-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.lg-note-ico .lg-ico { width: 18px; height: 18px; }
.lg-note.k-doc .lg-note-ico { background: rgba(0, 199, 154, 0.22); color: #6ff0cd; }
.lg-note.k-cal .lg-note-ico { background: rgba(120, 170, 255, 0.22); color: #b9d2ff; }
.lg-note.k-plazo .lg-note-ico { background: rgba(255, 184, 92, 0.22); color: #ffd39b; }
.lg-note-tx { display: grid; gap: 1px; min-width: 0; flex: 1; }
.lg-note-tx b { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-note-tx small { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-note em {
  flex: none;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lg-brand);
  color: #062a20;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.lg-copy { margin-top: auto; animation: lg-rise 0.7s 0.15s ease-out both; }

.lg-claim {
  margin: 0;
  font-family: var(--lg-serif);
  font-size: clamp(36px, 5.4vh, 58px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.lg-claim i { font-style: italic; color: var(--lg-brand); }

.lg-claim-sub {
  margin: clamp(12px, 2.2vh, 20px) 0 0;
  max-width: 460px;
  font-size: clamp(15px, 1.8vh, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.lg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(16px, 2.8vh, 26px) 0 0;
  padding: 0;
  list-style: none;
}
.lg-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.lg-chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lg-brand); }

.lg-side-foot {
  position: absolute;
  left: var(--lg-pad-x);
  bottom: clamp(20px, 3.4vh, 32px);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Panel derecho ───────────────────────────────────────── */
.lg-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 4vh, 44px) clamp(28px, 4vw, 64px) clamp(24px, 6vh, 64px);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(0, 199, 154, 0.09), rgba(0, 199, 154, 0) 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(23, 37, 49, 0.05), rgba(23, 37, 49, 0) 70%),
    var(--lg-bg);
  overflow: hidden;
}
.lg-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 37, 49, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 85% 10%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 85% 10%, #000, transparent 75%);
  pointer-events: none;
}

.lg-panel {
  position: relative;
  width: min(440px, 100%);
  max-width: 100%;
  margin: 0 auto;
  animation: lg-rise 0.5s 0.1s ease-out both;
}

.lg-brand-mobile { display: none; }

.lg-title {
  margin: 0 0 clamp(8px, 1.2vh, 12px);
  font-family: var(--lg-serif);
  font-size: clamp(30px, 4.2vh, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--lg-ink);
}
.lg-title i { font-style: italic; color: var(--lg-brand-ink); white-space: nowrap; }

.lg-lead {
  margin: 0 0 clamp(22px, 3.8vh, 36px);
  font-size: 16px;
  line-height: 1.5;
  color: var(--lg-muted);
}

.lg-group { display: grid; }

.lg-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lg-text);
}
.lg-row + .lg-label { margin-top: clamp(14px, 2.2vh, 20px); }

.lg-row {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--lg-field-h);
  border: 1px solid var(--lg-field);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 34, 44, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.lg-row:hover { border-color: #c4c6c4; }
.lg-row:focus-within {
  border-color: var(--lg-brand-ink);
  box-shadow: 0 0 0 4px rgba(0, 199, 154, 0.16);
}
.lg-group.is-invalid .lg-row { border-color: var(--lg-danger); box-shadow: 0 0 0 4px rgba(155, 59, 54, 0.1); }

.lg-row > .lg-ico {
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: 16px;
  color: #8a9198;
  transition: color 160ms ease;
}
.lg-row:focus-within > .lg-ico { color: var(--lg-brand-ink); }

.lg-row input {
  flex: 1;
  min-width: 0;
  height: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 14px 0 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--lg-ink);
  outline: none;
}
.lg-row input::placeholder { color: var(--lg-faint); }
.lg-row input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #fff inset;
  -webkit-text-fill-color: var(--lg-ink);
}

.lg-eye {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a9198;
  cursor: pointer;
  transition: color 150ms ease;
}
.lg-eye .lg-ico { width: 18px; height: 18px; }
.lg-eye:hover { color: var(--lg-ink); }
.lg-eye:focus-visible { outline: 2px solid rgba(0, 199, 154, 0.5); outline-offset: -8px; border-radius: 8px; }
.lg-eye .lg-eye-off { display: none; }
.lg-eye.is-on .lg-eye-on { display: none; }
.lg-eye.is-on .lg-eye-off { display: block; }
.lg-eye span { display: block; line-height: 0; }

.lg-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--lg-field-h);
  margin-top: clamp(20px, 3.2vh, 30px);
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #1f3242 0%, var(--lg-btn) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 10px 24px -12px rgba(23, 37, 49, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.lg-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 700ms ease;
}
.lg-btn .lg-ico {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 8px;
  background: var(--lg-brand);
  color: #062a20;
  transform: translateY(-50%);
  transition: right 160ms ease;
}
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(23, 37, 49, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.lg-btn:hover::after { transform: translateX(100%); }
.lg-btn:hover .lg-ico { right: 6px; }
.lg-btn:active { transform: none; }
.lg-btn:focus-visible { outline: 3px solid rgba(0, 199, 154, 0.45); outline-offset: 2px; }
.lg-btn:disabled { opacity: 0.8; cursor: default; transform: none; }

.lg-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(14px, 2.2vh, 20px);
  font-size: 14px;
}

.lg-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lg-text);
  cursor: pointer;
  user-select: none;
}
.lg-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #b9bdc0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.lg-check input::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 1.75px 1.75px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.lg-check input:checked { background: var(--lg-brand-ink); border-color: var(--lg-brand-ink); }
.lg-check input:checked::after { opacity: 1; }
.lg-check input:focus-visible { outline: 2px solid rgba(0, 199, 154, 0.5); outline-offset: 2px; }

.lg-forgot {
  color: var(--lg-brand-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}
.lg-forgot:hover { color: var(--lg-ink); text-decoration: underline; text-underline-offset: 4px; }

.lg-alert {
  margin: calc(clamp(22px, 3.8vh, 36px) * -0.5) 0 clamp(14px, 2.4vh, 22px);
  padding: 10px 12px;
  border: 1px solid #e5c9c5;
  border-left: 3px solid var(--lg-danger);
  border-radius: 8px;
  background: #f8eeec;
  color: var(--lg-danger);
  font-size: 14px;
  line-height: 1.4;
}

@keyframes lg-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes lg-photo-in {
  from { opacity: 0; transform: scale(1.12); }
  to { opacity: 1; transform: scale(1.06); }
}
@keyframes lg-note-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes lg-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
@keyframes lg-breathe {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
/* ── Tablet ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .lg-shell { grid-template-columns: 48% 52%; }
  .lg-brand span { font-size: 19px; }
  .lg-claim { font-size: clamp(32px, 4.4vh, 42px); }
  .lg-claim-sub { font-size: 15px; }
  .lg-title { font-size: clamp(28px, 3.6vh, 36px); }
  .lg-lead { font-size: 15px; }
  .lg-float { width: min(320px, 100%); }
}

@media (max-height: 720px) and (min-width: 761px) {
  .lg-note:nth-child(3) { display: none; }
  .lg-chips { display: none; }
}

/* ── Móvil ───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .lg-shell { display: block; height: auto; min-height: 0; }
  .lg-side { min-height: 0; }
  .lg-side-in { height: auto; padding: 22px 22px 30px; }
  .lg-photo { background-position: 50% 40%; }
  .lg-photo::after { background: linear-gradient(180deg, rgba(10, 19, 27, 0.55) 0%, rgba(10, 19, 27, 0.35) 40%, rgba(10, 19, 27, 0.92) 100%); }
  .lg-float, .lg-chips, .lg-side-foot { display: none; }
  .lg-copy { margin-top: 64px; }
  .lg-claim { font-size: 32px; }
  .lg-claim-sub { font-size: 15px; }
  .lg-main {
    justify-content: flex-start;
    padding: 28px 22px 32px;
  }
  .lg-main::before { display: none; }
  .lg-panel { width: 100%; }
  .lg-title { font-size: 28px; }
  .lg-lead { font-size: 15px; margin-bottom: 24px; }
  :root { --lg-field-h: 50px; }
  .lg-opts { font-size: 13.5px; }
}

/* Pantallas muy bajas: se permite scroll en vez de recortar */
@media (max-height: 600px) and (min-width: 761px) {
  .lg-shell { height: auto; min-height: 100vh; }
  .lg-float { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lg-note { opacity: 1; }
}
