/* ============================================================
   Vendly POS — Estilos globales
   assets/css/app.css
   Paleta: #0057FF | #00C853 | #1E293B | #F1F5F9
   Tipografía: Poppins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --azul:      #0057FF;
  --azul-dark: #0041CC;
  --verde:     #00C853;
  --verde-dark:#00A040;
  --marino:    #1E293B;
  --marino2:   #0F172A;
  --gris:      #F1F5F9;
  --gris2:     #E2E8F0;
  --gris3:     #94A3B8;
  --texto:     #1E293B;
  --texto2:    #64748B;
  --blanco:    #FFFFFF;
  --exito:     #22C55E;
  --alerta:    #F59E0B;
  --error:     #EF4444;
  --info:      #3B82F6;
  --gradiente: linear-gradient(135deg, #0057FF 0%, #00C853 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--texto); background: #fff; line-height: 1.6; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── BOTONES ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--radius); font-family: inherit; font-weight: 700; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--azul); color: #fff; padding: 14px 28px; font-size: 15px; }
.btn-primary:hover { background: var(--azul-dark); text-decoration: none; color: #fff; }
.btn-gradient  { background: var(--gradiente); color: #fff; padding: 14px 28px; font-size: 15px; }
.btn-gradient:hover { opacity: .9; text-decoration: none; color: #fff; }
.btn-outline   { background: transparent; color: var(--azul); border: 2px solid var(--azul); padding: 12px 26px; font-size: 15px; }
.btn-outline:hover { background: var(--azul); color: #fff; text-decoration: none; }
.btn-white     { background: #fff; color: var(--azul); padding: 14px 28px; font-size: 15px; }
.btn-white:hover { background: var(--gris); text-decoration: none; }
.btn-verde     { background: var(--verde); color: #fff; padding: 14px 28px; font-size: 15px; }
.btn-verde:hover { background: var(--verde-dark); text-decoration: none; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: 14px; }
.btn-full { width: 100%; }

/* ── INPUTS ── */
.input { width: 100%; background: var(--gris); border: 1.5px solid var(--gris2); border-radius: var(--radius); padding: 13px 16px; color: var(--texto); font-size: 15px; font-family: inherit; outline: none; transition: border-color .2s, background .2s; }
.input:focus { border-color: var(--azul); background: #fff; }
.input::placeholder { color: var(--gris3); }
.input-group { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gris3); pointer-events: none; }
.input-group .input { padding-left: 42px; }
label.lbl { display: block; font-size: 12px; font-weight: 700; color: var(--texto2); letter-spacing: .5px; margin-bottom: 6px; }
.field { margin-bottom: 18px; }

/* ── CARDS ── */
.card { background: #fff; border: 1.5px solid var(--gris2); border-radius: var(--radius-lg); padding: 24px; }
.card-flat { background: var(--gris); border-radius: var(--radius); padding: 18px; }
.card-shadow { box-shadow: var(--shadow); border: none; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-azul  { background: #dbeafe; color: var(--azul); }
.badge-verde { background: #dcfce7; color: var(--verde-dark); }
.badge-rojo  { background: #fee2e2; color: var(--error); }
.badge-amber { background: #fef3c7; color: var(--alerta); }

/* ── NAVBAR ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gris2); padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar-brand svg { width: 36px; height: 36px; }
.navbar-brand span { font-size: 22px; font-weight: 800; color: var(--marino); }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a { font-size: 14px; font-weight: 600; color: var(--texto2); text-decoration: none; transition: color .2s; }
.navbar-links a:hover { color: var(--azul); }
.navbar-ctas { display: flex; align-items: center; gap: 12px; }

/* ── HERO ── */
.hero { min-height: 100vh; background: linear-gradient(135deg, var(--marino2) 0%, #1e3a5f 50%, var(--marino) 100%); display: flex; align-items: center; padding: 100px 24px 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: 100%; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,200,83,.15); border: 1px solid rgba(0,200,83,.3); border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--verde); margin-bottom: 24px; }
.hero h1 { font-size: 52px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { background: var(--gradiente); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: #94a3b8; margin-bottom: 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat-val { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat-lbl { font-size: 12px; color: #64748b; margin-top: 2px; }
.hero-visual { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl); padding: 24px; backdrop-filter: blur(10px); }
.hero-screen { background: var(--marino2); border-radius: var(--radius-lg); overflow: hidden; }
.hero-topbar { background: var(--marino); padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-url { background: rgba(255,255,255,.1); border-radius: 6px; padding: 4px 12px; font-size: 11px; color: #64748b; flex: 1; margin-left: 8px; }
.hero-body { padding: 16px; }
.hero-row { display: flex; gap: 10px; margin-bottom: 10px; }
.hero-card-sm { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 12px; flex: 1; }
.hero-card-val { font-size: 18px; font-weight: 800; color: #fff; }
.hero-card-lbl { font-size: 10px; color: #64748b; margin-top: 2px; }
.hero-sale { background: rgba(0,87,255,.15); border: 1px solid rgba(0,87,255,.3); border-radius: 8px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hero-sale-name { font-size: 11px; color: #94a3b8; }
.hero-sale-price { font-size: 12px; font-weight: 700; color: var(--azul); }

/* ── SECCIONES ── */
.section { padding: 100px 24px; }
.section-alt { background: var(--gris); }
.container { max-width: 1100px; margin: 0 auto; }
.section-tag { display: inline-block; background: #dbeafe; color: var(--azul); border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 700; margin-bottom: 16px; letter-spacing: .5px; }
.section-title { font-size: 38px; font-weight: 800; color: var(--marino); line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--texto2); max-width: 560px; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .section-sub { margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── FEATURES ── */
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--marino); }
.feature-text { font-size: 14px; color: var(--texto2); line-height: 1.7; }

/* ── PLANES ── */
.plan-card { border-radius: var(--radius-xl); padding: 36px 28px; border: 2px solid var(--gris2); position: relative; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.popular { border-color: var(--azul); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradiente); color: #fff; border-radius: 20px; padding: 4px 18px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan-name { font-size: 13px; font-weight: 700; color: var(--texto2); letter-spacing: 1px; margin-bottom: 8px; }
.plan-price { font-size: 42px; font-weight: 800; color: var(--marino); line-height: 1; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--texto2); }
.plan-desc { font-size: 13px; color: var(--texto2); margin: 12px 0 24px; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { font-size: 14px; color: var(--texto2); padding: 7px 0; border-bottom: 1px solid var(--gris2); display: flex; align-items: center; gap: 10px; }
.plan-features li:last-child { border-bottom: none; }
.plan-check { color: var(--verde); font-weight: 700; font-size: 16px; }
.plan-x { color: var(--gris3); }

/* ── TESTIMONIOS ── */
.testimonio { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1.5px solid var(--gris2); }
.testimonio-texto { font-size: 15px; color: var(--texto2); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonio-autor { display: flex; align-items: center; gap: 12px; }
.testimonio-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradiente); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 18px; }
.testimonio-nombre { font-weight: 700; font-size: 14px; }
.testimonio-negocio { font-size: 12px; color: var(--gris3); }

/* ── CTA FINAL ── */
.cta-section { background: linear-gradient(135deg, var(--marino2) 0%, #1e3a5f 100%); padding: 100px 24px; text-align: center; }
.cta-section h2 { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: #94a3b8; margin-bottom: 36px; }

/* ── FOOTER ── */
.footer { background: var(--marino2); padding: 60px 24px 30px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: #64748b; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .5px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: #64748b; margin-bottom: 10px; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--verde); }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; }
.footer-bottom p { font-size: 12px; color: #475569; }

/* ── LOGIN / REGISTRO ── */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: linear-gradient(135deg, var(--marino2) 0%, #1e3a5f 100%); display: flex; flex-direction: column; justify-content: center; padding: 60px; position: relative; overflow: hidden; }
.auth-left::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.auth-form-wrap { width: 100%; max-width: 440px; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.auth-logo span { font-size: 26px; font-weight: 800; color: var(--marino); }
.auth-title { font-size: 28px; font-weight: 800; color: var(--marino); margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--texto2); margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider-line { flex: 1; height: 1px; background: var(--gris2); }
.auth-divider-text { font-size: 12px; color: var(--gris3); font-weight: 600; }
.trial-box { background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.trial-box p { font-size: 13px; font-weight: 600; color: #16a34a; }
.select { width: 100%; background: var(--gris); border: 1.5px solid var(--gris2); border-radius: var(--radius); padding: 13px 16px; color: var(--texto); font-size: 15px; font-family: inherit; outline: none; appearance: none; cursor: pointer; }
.select:focus { border-color: var(--azul); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--texto2); }

/* ── ALERTAS ── */
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500; margin-bottom: 20px; display: none; }
.alert-error { background: #fee2e2; color: var(--error); border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.alert.show { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navbar-links { display: none; }
  .section-title { font-size: 28px; }
}
@media (max-width: 600px) {
  .hero { padding: 90px 20px 40px; }
  .hero h1 { font-size: 30px; }
  .hero-btns { flex-direction: column; }
  .section { padding: 60px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
