/* ─────────────────────────────────────────────────
   LOGIN
───────────────────────────────────────────────── */
/* ── Grid principal ────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: start;
}

/* Columna izquierda: carrusel + contenido landing */
.login-left {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg1);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

@media (max-width: 960px) {
  .login-wrap  { grid-template-columns: 1fr; align-items: unset; }
  .login-left  { position: static; height: auto; min-height: unset; overflow-y: visible; }
}

/* panel artístico (carrusel) */
.login-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 60px 24px;
  flex-shrink: 0;
}
.login-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(124,58,237,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 70%, rgba(6,182,212,0.18) 0%, transparent 70%);
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
/* Wrapper de altura fija para que el carrusel no cambie de tamaño entre slides */
.art-carousel-area {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 290px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-content { text-align: center; width: 100%; }
.art-logo-big {
  font-family: var(--font-h);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--p2), var(--c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.art-tagline {
  color: var(--t2);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.art-dots {
  display: flex; gap: 8px;
  justify-content: center;
}
.art-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 8px;
}
.art-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border2);
  cursor: pointer;
  transition: background .3s, transform .2s, width .3s;
}
.art-dot:hover   { background: var(--t3); transform: scale(1.2); }
.art-dot.active  { background: var(--p2); width: 24px; border-radius: 4px; }

/* Icono de marca en slide 0 */
.art-icon-wrap {
  width: 96px; height: 96px; border-radius: 26px;
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(6,182,212,.18));
  border: 1px solid rgba(124,58,237,.35);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 8px 32px rgba(124,58,237,.22), 0 0 0 8px rgba(124,58,237,.06);
}
.art-icon-img {
  width: 68px; height: 68px; border-radius: 18px;
  object-fit: contain;
}

/* Iconos de slides 1 y 2 */
.art-slide-badge {
  width: 76px; height: 76px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.art-badge-cyan {
  background: linear-gradient(135deg, rgba(6,182,212,.18), rgba(6,182,212,.08));
  border: 1px solid rgba(6,182,212,.4);
  box-shadow: 0 8px 32px rgba(6,182,212,.18), 0 0 0 8px rgba(6,182,212,.06);
}
.art-badge-purple {
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(124,58,237,.08));
  border: 1px solid rgba(124,58,237,.4);
  box-shadow: 0 8px 32px rgba(124,58,237,.18), 0 0 0 8px rgba(124,58,237,.06);
}

.art-slide-title {
  font-family: var(--font-h);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--p2), var(--c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  min-height: 66px; /* reserva 2 líneas para que todos los slides tengan la misma altura */
  margin-bottom: 8px;
}
.art-slide-body {
  color: var(--t2);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto 12px;
}
.art-slide-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.art-pill {
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.25);
  color: var(--p2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Transición carrusel */
.art-fade-enter-active { transition: opacity .45s ease, transform .45s ease; }
.art-fade-leave-active { transition: opacity .3s ease,  transform .3s ease; }
.art-fade-enter-from   { opacity: 0; transform: translateY(16px); }
.art-fade-leave-to     { opacity: 0; transform: translateY(-10px); }

/* panel derecho: formulario */
.login-panel {
  background: var(--bg1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  border-left: 1px solid var(--border);
  /* Sticky en desktop: se queda en pantalla mientras el left scrollea */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.login-subtitle {
  font-family: var(--font-h);
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--p2), var(--c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.3px;
}

.login-form { width: 100%; max-width: 340px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  color: var(--t1);
  font-family: var(--font-b);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px var(--p3);
}
.form-input::placeholder { color: var(--t3); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.form-input:disabled { opacity: 0.5; cursor: not-allowed; }

.pass-wrap { position: relative; }
.pass-wrap .form-input { padding-right: 44px; }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--t3); display: flex; align-items: center; justify-content: center;
  transition: color .15s;
}
.eye-btn:hover { color: var(--t2); }

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, var(--p), #5b21b6);
  color: #fff;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--r2);
  padding: 13px;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  margin-top: 8px;
}
.btn-login:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--t3);
  font-size: 12px;
  margin: 20px 0;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.btn-register {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--t2);
  font-family: var(--font-b);
  font-size: 14px;
  border-radius: var(--r2);
  padding: 11px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-register:hover { border-color: var(--c); color: var(--c); background: var(--c2); }

.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-size: 13px;
  border-radius: var(--r2);
  padding: 10px 14px;
  margin-top: 14px;
  text-align: center;
}

/* ── MOBILE (≤960px): cabecera + landing apilados ─────────── */
@media (max-width: 960px) {
  .login-art {
    height: 430px;
    padding: 28px 32px 20px;
    transition: height 0.45s cubic-bezier(.4,0,.2,1),
                padding 0.45s cubic-bezier(.4,0,.2,1);
  }
  .login-art.art-compact {
    height: 130px;
    padding: 16px 32px;
  }
  .login-art.art-compact .art-carousel-area { height: 100%; }
  .login-art.art-compact .art-icon-wrap  { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 10px; box-shadow: none; }
  .login-art.art-compact .art-icon-img   { width: 36px; height: 36px; }
  .login-art.art-compact .art-logo-big   { font-size: 28px; margin-bottom: 0; }
  .login-art.art-compact .art-tagline    { display: none; }

  /* Ocultar landing cuando el formulario está abierto */
  .form-mode .landing-sections { display: none; }

  /* Panel login mobile */
  .login-panel {
    position: static;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 32px 24px 48px;
  }

  /* Transición de entrada del formulario */
  .lp-form-enter-enter-active { transition: opacity .35s ease, transform .35s ease; }
  .lp-form-enter-enter-from   { opacity: 0; transform: translateY(18px); }
}

/* ── DESKTOP (>960px): layout de dos columnas ─────────────── */
@media (min-width: 961px) {
  .login-art { background: transparent; } /* login-left tiene el bg */
  /* CTA (Iniciar sesión / Crear cuenta) solo es para mobile */
  .lp-cta    { display: none; }
  /* Los dots del carrusel se pueden ver igual */
}

/* ── LANDING SECTIONS ─────────────────────────────────────── */
.landing-sections {
  padding: 8px 60px 48px; /* desktop: mismo margen que el art panel */
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 960px) {
  .landing-sections { padding: 4px 20px 52px; gap: 12px; }
}

.lp-section {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 20px 20px 20px;
}

.lp-title {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

/* Tarjetas de funcionalidades */
.lp-feats { display: flex; flex-direction: column; gap: 10px; }

.lp-feat-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  transition: border-color .2s;
}
.lp-feat-card:hover { border-color: var(--border2); }

.lp-feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lp-icon-green  { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.25);  color: #4ade80; }
.lp-icon-blue   { background: rgba(6,182,212,.12);  border: 1px solid rgba(6,182,212,.25);  color: var(--c); }
.lp-icon-orange { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); color: #fbbf24; }
.lp-icon-purple { background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.25); color: var(--p2); }

.lp-feat-name { font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 3px; }
.lp-feat-desc { font-size: 12px; color: var(--t3); line-height: 1.5; }

/* Tipos de negocio */
.lp-biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lp-biz-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 6px 12px;
  font-size: 11px; font-weight: 500;
  color: var(--t2); text-align: center;
  transition: border-color .2s, background .2s;
}
.lp-biz-item:hover { border-color: var(--p); background: var(--bg3); }
.lp-biz-emoji { font-size: 24px; line-height: 1; }

/* Lista de ventajas */
.lp-why { display: flex; flex-direction: column; gap: 12px; }
.lp-why-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--t2); line-height: 1.5;
}
.lp-why-item strong { color: var(--t1); }
.lp-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3);
  color: #4ade80; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* CTA final */
.lp-cta {
  padding: 28px 0 0;
  display: flex; flex-direction: column; align-items: stretch;
}
.lp-btn-main { width: 100%; }
.lp-btn-sec  { width: 100%; }

/* ── BOTÓN GET STARTED (landing mobile) ───────────────────── */
.art-get-started {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  background: linear-gradient(135deg, var(--p), #0e7490);
  box-shadow: 0 4px 18px rgba(124,58,237,.4), 0 0 0 3px rgba(124,58,237,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.art-get-started:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(124,58,237,.5), 0 0 0 4px rgba(124,58,237,.18);
}
.art-get-started:active { transform: scale(.96); }

/* ── BOTÓN CANCELAR (volver al landing) ───────────────────── */
.btn-cancelar {
  display: none; /* solo visible en mobile */
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--t3);
  font-family: var(--font-b);
  font-size: 13px;
  cursor: pointer;
  transition: color .15s;
}
.btn-cancelar:hover { color: var(--t2); }

@media (max-width: 960px) {
  .btn-cancelar { display: block; }
}
