/* ============================================================
   LANDING PAGE — Pantalla de bienvenida del cotizador
   ============================================================ */

:root {
  --cv-primary:      #0E7C7B;
  --cv-primary-dark: #0a5c5b;
  --cv-secondary:    #F4A261;
  --cv-accent:       #2EC4B6;
  --cv-sidebar-bg:   #0d2b3e;
  --cv-text:         #1a2332;
  --cv-text-muted:   #64748b;
  --cv-surface:      #ffffff;
  --cv-border:       #e2e8f0;
  --cv-bg:           #f0f4f8;
  --cv-radius:       12px;
  --cv-shadow:       0 4px 24px rgba(0,0,0,.08);
  --cv-shadow-lg:    0 12px 48px rgba(0,0,0,.14);
}

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

body.cv-landing-body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cv-sidebar-bg);
  color: var(--cv-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── BACKGROUND ──────────────────────────────────────────── */
.cv-landing {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2b3e 0%, #0a3d4a 40%, #0d2b3e 100%);
}

.cv-landing__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.cv-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,124,123,.15), transparent 70%);
}
.cv-bg-circle--1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.cv-bg-circle--2 { width: 400px; height: 400px; bottom: -150px; left: -100px; background: radial-gradient(circle, rgba(244,162,97,.08), transparent 70%); }
.cv-bg-circle--3 { width: 300px; height: 300px; top: 40%; left: 40%; background: radial-gradient(circle, rgba(46,196,182,.06), transparent 70%); }

.cv-bg-orb {
  position: absolute;
  font-size: 28px;
  opacity: .08;
  animation: cv-float 8s ease-in-out infinite;
}
.cv-bg-orb--1 { top: 15%; left: 8%; animation-delay: 0s; }
.cv-bg-orb--2 { top: 60%; left: 5%; animation-delay: 2s; font-size: 22px; }
.cv-bg-orb--3 { top: 25%; right: 8%; animation-delay: 1s; }
.cv-bg-orb--4 { bottom: 20%; right: 10%; animation-delay: 3s; font-size: 22px; }

@keyframes cv-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(5deg); }
  66%       { transform: translateY(10px) rotate(-3deg); }
}

/* ── HEADER ──────────────────────────────────────────────── */
.cv-landing__header {
  position: relative;
  z-index: 10;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cv-landing__header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cv-landing__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-brand-icon {
  width: 40px; height: 40px;
  background: var(--cv-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(14,124,123,.4);
}
.cv-brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.cv-brand-logo { height: 36px; width: auto; }

.cv-btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(8px);
}
.cv-btn-login:hover {
  background: var(--cv-primary);
  border-color: var(--cv-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14,124,123,.4);
}

/* ── HERO ────────────────────────────────────────────────── */
.cv-landing__hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - 81px);
}

/* Hero Text */
.cv-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,124,123,.25);
  border: 1px solid rgba(14,124,123,.4);
  color: var(--cv-accent);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: .02em;
}

.cv-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cv-hero-highlight {
  position: relative;
  color: var(--cv-accent);
}
.cv-hero-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cv-accent), transparent);
  border-radius: 2px;
}

.cv-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 460px;
}

/* Features */
.cv-hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}
.cv-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: 13.5px;
  font-weight: 500;
}
.cv-feature i {
  width: 32px; height: 32px;
  background: rgba(14,124,123,.25);
  border: 1px solid rgba(14,124,123,.3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--cv-accent);
  flex-shrink: 0;
}

/* CTA Button */
.cv-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--cv-primary), var(--cv-accent));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 8px 32px rgba(14,124,123,.4);
  letter-spacing: .01em;
}
.cv-cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(14,124,123,.5);
  background: linear-gradient(135deg, var(--cv-primary-dark), var(--cv-primary));
}
.cv-cta-main i:last-child {
  transition: transform .25s;
}
.cv-cta-main:hover i:last-child { transform: translateX(4px); }

/* ── PREVIEW MOCKUP ──────────────────────────────────────── */
.cv-landing__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-preview-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  animation: cv-float-card 6s ease-in-out infinite;
}

@keyframes cv-float-card {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.cv-preview-header {
  background: rgba(0,0,0,.2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cv-preview-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cv-preview-dot--red    { background: #ff5f57; }
.cv-preview-dot--yellow { background: #febc2e; }
.cv-preview-dot--green  { background: #28c840; }
.cv-preview-title {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  margin-left: 6px;
  font-weight: 600;
}

.cv-preview-body {
  display: grid;
  grid-template-columns: 70px 1fr 100px;
  gap: 0;
  min-height: 220px;
}

.cv-preview-modules {
  background: rgba(0,0,0,.15);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv-preview-module {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  font-size: 16px;
  cursor: default;
  border-radius: 0;
}
.cv-preview-module span {
  font-size: 8px;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  text-transform: uppercase;
}
.cv-preview-module--active {
  background: rgba(14,124,123,.3);
}
.cv-preview-module--active span { color: var(--cv-accent); }

.cv-preview-catalog {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cv-preview-card-item {
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.06);
}
.cv-preview-item-img {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0E7C7B, #2EC4B6);
  flex-shrink: 0;
}
.cv-preview-item-img--2 { background: linear-gradient(135deg, #F4A261, #e76f51); }
.cv-preview-item-info { flex: 1; }
.cv-preview-item-title { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.85); }
.cv-preview-item-price { font-size: 9px; color: var(--cv-accent); font-weight: 700; }
.cv-preview-item-btn {
  width: 20px; height: 20px;
  background: var(--cv-primary);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}

.cv-preview-panel {
  background: rgba(14,124,123,.2);
  border-left: 1px solid rgba(255,255,255,.06);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.cv-preview-panel-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--cv-accent);
}
.cv-preview-panel-btn {
  background: var(--cv-primary);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 5px 6px;
  border-radius: 5px;
  text-align: center;
}

/* Floating cards */
.cv-float-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cv-text);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: cv-float 6s ease-in-out infinite;
}
.cv-float-card--1 { bottom: 20px; right: -20px; animation-delay: 1s; }
.cv-float-card--2 { top: 30px;   left: -30px;  animation-delay: 2.5s; }
.cv-float-card--3 { bottom: 80px; left: -20px; animation-delay: 0.5s; }

/* ══ MODAL LOGIN ══════════════════════════════════════════════ */
.cv-login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(6px);
}
.cv-login-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cv-login-modal {
  background: var(--cv-surface);
  border-radius: 20px;
  width: 400px;
  max-width: 95vw;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  transform: scale(.9) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  opacity: 0;
  position: relative;
}
.cv-login-overlay.active .cv-login-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-6px); }
  80%       { transform: translateX(6px); }
}
.cv-login-modal.shake { animation: shake .4s ease; }

/* Decoración del modal */
.cv-login-modal__deco {
  background: linear-gradient(135deg, var(--cv-primary), var(--cv-accent));
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cv-login-modal__deco::before {
  content: '';
  position: absolute;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  top: -60px; right: -40px;
}
.cv-login-deco-icon {
  font-size: 36px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
  position: relative;
  z-index: 1;
}

.cv-login-modal__body { padding: 28px; }

.cv-login-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--cv-text);
  margin-bottom: 4px;
  text-align: center;
}
.cv-login-sub {
  font-size: 13px;
  color: var(--cv-text-muted);
  text-align: center;
  margin-bottom: 22px;
}

.cv-login-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-login-error::before { content: '⚠️'; }

.cv-login-field { margin-bottom: 16px; }
.cv-login-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--cv-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.cv-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cv-login-input-wrap i {
  position: absolute;
  left: 13px;
  color: var(--cv-text-muted);
  font-size: 14px;
  pointer-events: none;
}
.cv-login-input-wrap input {
  width: 100%;
  padding: 12px 44px;
  border: 2px solid var(--cv-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--cv-text);
  outline: none;
  transition: all .2s;
  background: #f8fafc;
}
.cv-login-input-wrap input:focus {
  border-color: var(--cv-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14,124,123,.12);
}
.cv-toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cv-text-muted);
  font-size: 14px;
  padding: 4px;
  transition: color .2s;
}
.cv-toggle-pass:hover { color: var(--cv-primary); }

.cv-login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.cv-login-remember label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cv-text-muted);
  cursor: pointer;
}
.cv-login-remember input { accent-color: var(--cv-primary); width: 15px; height: 15px; }

.cv-login-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--cv-primary), var(--cv-accent));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(14,124,123,.3);
}
.cv-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(14,124,123,.4);
}
.cv-login-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.cv-login-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cv-spin .7s linear infinite;
  display: inline-block;
}
@keyframes cv-spin { to { transform: rotate(360deg); } }

#cv-login-btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-login-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .2s;
  z-index: 1;
}
.cv-login-close:hover { background: rgba(255,255,255,.35); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .cv-landing__hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px 60px;
    gap: 40px;
  }
  .cv-hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .cv-hero-features { grid-template-columns: 1fr 1fr; justify-items: start; max-width: 340px; margin: 0 auto 32px; }
  .cv-cta-main { width: 100%; max-width: 320px; justify-content: center; }
  .cv-landing__preview { display: none; }
}

@media (max-width: 480px) {
  .cv-landing__header-inner { padding: 0 20px; }
  .cv-hero-features { grid-template-columns: 1fr; }
  .cv-login-modal__body { padding: 20px; }
}
