/* ===== CSS VARIABLES & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0b0f;
  --bg2: #111318;
  --bg3: #181b22;
  --surface: #1e2230;
  --surface2: #252a3a;
  --border: #2a2f42;
  --text: #f0f2ff;
  --text2: #8892b0;
  --accent: #5c6ef5;
  --accent2: #7c3aed;
  --accent3: #06d6a0;
  --gradient: linear-gradient(135deg, #5c6ef5, #7c3aed);
  --shadow: 0 8px 40px rgba(92, 110, 245, 0.15);
  --radius: 16px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

[data-theme="light"] {
  --bg: #f4f5fa;
  --bg2: #ffffff;
  --bg3: #eef0f8;
  --surface: #ffffff;
  --surface2: #f0f2fc;
  --border: #dde0f0;
  --text: #0d0f1a;
  --text2: #5c6284;
  --shadow: 0 8px 40px rgba(92, 110, 245, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
[data-theme="light"] .navbar { background: rgba(244,245,250,0.9); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -1px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: .92rem; color: var(--text2); text-decoration: none; font-weight: 500; transition: color .2s; letter-spacing: .01em; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  background: var(--surface); border: 1px solid var(--border); border-radius: 50px;
  padding: 6px 14px; cursor: pointer; color: var(--text); font-size: .9rem;
  transition: all .2s;
}
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
.theme-toggle:hover { background: var(--surface2); }

.btn-cart {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px; cursor: pointer; color: var(--text);
  display: flex; align-items: center; gap: 6px; transition: all .2s;
}
.btn-cart:hover { background: var(--accent); border-color: var(--accent); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
  background: var(--bg2); z-index: 1000; padding: 80px 32px 32px;
  transition: right .3s ease;
  box-shadow: -4px 0 30px rgba(0,0,0,.3);
}
.mobile-menu.open { right: 0; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.mobile-menu a { font-size: 1.2rem; color: var(--text); text-decoration: none; font-weight: 600; }
.close-menu { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text2); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 60px;
  max-width: 1200px; margin: 0 auto;
  position: relative; overflow: hidden;
  gap: 40px;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .3;
}
.glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .25;
}
.glow-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -100px; }
.glow-2 { width: 400px; height: 400px; background: var(--accent2); bottom: 0; right: 0; }

.hero-content { flex: 1; max-width: 560px; }
.hero-badge {
  display: inline-block; background: var(--surface);
  border: 1px solid var(--border); padding: 6px 16px;
  border-radius: 50px; font-size: .83rem; color: var(--accent);
  font-weight: 600; margin-bottom: 24px; letter-spacing: .04em;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -2px;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: var(--text2); font-size: 1.05rem; line-height: 1.65; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient); color: #fff;
  padding: 13px 28px; border-radius: 12px; border: none;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  font-family: var(--font-body);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(92,110,245,.35); }
.btn-primary.full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text);
  padding: 13px 28px; border-radius: 12px;
  border: 1px solid var(--border);
  font-size: .95rem; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: all .2s;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.hero-stats div { text-align: center; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; display: block; }
.hero-stats span { font-size: .78rem; color: var(--text2); }
.divider { width: 1px; height: 36px; background: var(--border); }

.hero-visual { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.floating-card {
  position: absolute; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; display: flex; align-items: center; gap: 12px;
  font-size: .82rem; font-weight: 500; white-space: nowrap;
  box-shadow: var(--shadow);
  animation: floatCard 3s ease-in-out infinite;
}
.floating-card small { color: var(--accent3); }
.fc-icon { font-size: 1.4rem; }
.card-1 { top: 10%; left: 0; animation-delay: 0s; }
.card-2 { top: 50%; right: 0; animation-delay: 1s; }
.card-3 { bottom: 10%; left: 10%; animation-delay: .5s; }

.hero-device {
  width: 220px; height: 280px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: floatCard 4s ease-in-out infinite;
}
.device-screen { background: var(--bg3); border-radius: 14px; height: 100%; padding: 16px; }
.sc-bar { height: 8px; background: var(--accent); border-radius: 4px; margin-bottom: 10px; opacity: .7; }
.sc-bar.short { width: 60%; opacity: .4; }
.sc-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.sc-box { height: 50px; background: var(--surface2); border-radius: 8px; }

@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ===== MARQUEE ===== */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; background: var(--bg2); }
.marquee-track { display: flex; gap: 48px; animation: marquee 22s linear infinite; width: max-content; }
.marquee-track span { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--text2); letter-spacing: .08em; text-transform: uppercase; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== SECTIONS ===== */
.categorias, .productos, .nosotros, .contacto { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -1px; }

/* ===== CATEGORÍAS ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  cursor: pointer; transition: all .25s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-icon { font-size: 2.2rem; margin-bottom: 12px; }
.cat-card h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.cat-card p { font-size: .78rem; color: var(--text2); }

/* ===== FILTER BAR ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: 50px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text2); font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .2s;
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active { background: var(--gradient); border-color: transparent; color: #fff; }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all .25s;
  animation: fadeUp .4s ease both;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.product-img {
  height: 180px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; transition: transform .3s;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-body { padding: 18px; }
.product-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.product-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.product-desc { font-size: .82rem; color: var(--text2); margin-bottom: 14px; line-height: 1.5; }
.product-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.product-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.product-price small { font-size: .75rem; color: var(--text2); text-decoration: line-through; font-weight: 400; }
.product-badges { display: flex; gap: 6px; }
.badge { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 50px; }
.badge-new { background: rgba(6,214,160,.15); color: var(--accent3); }
.badge-hot { background: rgba(239,68,68,.15); color: #f87171; }
.badge-sale { background: rgba(92,110,245,.15); color: var(--accent); }
.btn-add {
  background: var(--gradient); color: #fff; border: none;
  padding: 9px 18px; border-radius: 10px; font-size: .82rem;
  font-weight: 600; cursor: pointer; transition: transform .2s;
  font-family: var(--font-body);
}
.btn-add:hover { transform: scale(1.04); }
.wsp-link {
  display: flex; align-items: center; gap: 5px;
  background: rgba(37,211,102,.12); color: #25d366;
  padding: 8px 14px; border-radius: 10px; font-size: .8rem;
  font-weight: 600; text-decoration: none; transition: background .2s;
  border: 1px solid rgba(37,211,102,.25);
}
.wsp-link:hover { background: rgba(37,211,102,.22); }

@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ===== OFERTA BANNER ===== */
.oferta-banner {
  background: var(--gradient); padding: 80px 24px;
  margin: 0; position: relative; overflow: hidden;
}
.ob-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ob-text { flex: 1; color: #fff; }
.ob-text .section-tag { color: rgba(255,255,255,.75) !important; }
.ob-text h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800; margin: 12px 0; letter-spacing: -1px; }
.ob-text h2 span { background: rgba(255,255,255,.2); padding: 0 8px; border-radius: 8px; }
.ob-text > p { opacity: .8; margin-bottom: 24px; }
.countdown { display: flex; gap: 16px; margin-bottom: 28px; }
.countdown > div { background: rgba(0,0,0,.2); border-radius: 12px; padding: 14px 20px; text-align: center; min-width: 72px; }
.countdown span { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; display: block; }
.countdown small { font-size: .72rem; opacity: .75; }
.ob-text .btn-primary { background: #fff; color: var(--accent2); }
.ob-visual { flex: 0 0 200px; text-align: center; }
.phone-mockup { font-size: 8rem; animation: floatCard 3s ease-in-out infinite; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feat-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .87rem; color: var(--text2); line-height: 1.6; }

/* ===== CONTACTO ===== */
.contacto { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 28px; font-size: 1.4rem; }
.ci-item strong { font-family: var(--font-display); font-size: .92rem; display: block; margin-bottom: 4px; }
.ci-item p { font-size: .85rem; color: var(--text2); margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 13px 16px; color: var(--text);
  font-family: var(--font-body); font-size: .92rem;
  transition: border-color .2s; outline: none; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: .87rem; color: var(--text2); margin: 12px 0 20px; line-height: 1.6; }
.social-links { display: flex; gap: 12px; }
.social-links a { font-size: 1.3rem; text-decoration: none; transition: transform .2s; }
.social-links a:hover { transform: scale(1.2); }
.footer-links h4 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .87rem; color: var(--text2); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .83rem; color: var(--text2); }
.payment-icons { display: flex; gap: 10px; font-size: 1.4rem; }

/* ===== CART SIDEBAR ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 800; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; right: -420px; top: 0; bottom: 0; width: 400px; max-width: 100vw;
  background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 850; transition: right .3s ease;
  display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.cart-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text2); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 12px; padding: 14px; }
.ci-icon { font-size: 2rem; }
.ci-info { flex: 1; }
.ci-info strong { font-size: .92rem; display: block; margin-bottom: 4px; }
.ci-info span { font-size: .82rem; color: var(--accent); font-weight: 700; }
.ci-remove { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 1rem; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.empty-cart { text-align: center; color: var(--text2); padding: 40px; }
.empty-cart p { font-size: 3rem; margin-bottom: 12px; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from{transform:scale(.9);opacity:0} to{transform:scale(1);opacity:1} }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.modal-header button { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text2); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.pm-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; font-size: .85rem; font-weight: 600;
  cursor: pointer; color: var(--text); transition: all .2s; font-family: var(--font-body);
}
.pm-btn.active { border-color: var(--accent); background: rgba(92,110,245,.1); color: var(--accent); }
.payment-form { display: flex; flex-direction: column; gap: 12px; }
.payment-form input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; color: var(--text);
  font-family: var(--font-body); font-size: .9rem; outline: none; width: 100%;
}
.payment-form input:focus { border-color: var(--accent); }
.total-line { font-family: var(--font-display); font-size: 1rem; color: var(--text2); padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 4px 0; }
.total-line strong { color: var(--accent); font-size: 1.2rem; }

.success-modal { text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-modal h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.success-modal p { color: var(--text2); margin-bottom: 24px; font-size: .92rem; }

.product-modal { max-width: 560px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text2); z-index: 2; }
.pm-detail-img { font-size: 6rem; text-align: center; padding: 24px; background: var(--surface2); border-radius: 14px; margin-bottom: 20px; }
.pm-detail-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.pm-detail-price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.pm-detail-desc { color: var(--text2); font-size: .9rem; line-height: 1.65; margin-bottom: 24px; }
.pm-detail-specs { background: var(--surface); border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.pm-detail-specs h4 { font-family: var(--font-display); font-size: .88rem; font-weight: 700; margin-bottom: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; }
.spec-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .87rem; }
.spec-row:last-child { border: none; }
.spec-row strong { color: var(--text2); }
.pm-actions { display: flex; gap: 12px; }

/* ===== CHATBOT ===== */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 700;
  background: var(--gradient); color: #fff;
  border: none; border-radius: 50px; padding: 14px 22px;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 30px rgba(92,110,245,.4);
  transition: transform .2s, box-shadow .2s;
  font-family: var(--font-body);
}
.chat-fab:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(92,110,245,.5); }
.fab-notif {
  background: #ef4444; color: #fff;
  font-size: .68rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chatbot-container {
  position: fixed; bottom: 90px; right: 28px; z-index: 700;
  width: 340px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
  overflow: hidden; transform: scale(.9) translateY(20px);
  opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 480px;
}
.chatbot-container.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: all; }
.chat-header {
  background: var(--gradient); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; color: #fff;
}
.chat-avatar { width: 36px; height: 36px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.chat-header strong { display: block; font-size: .92rem; }
.chat-header small { opacity: .8; font-size: .75rem; }
.chat-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble {
  background: var(--surface); border-radius: 14px;
  padding: 10px 14px; font-size: .85rem; line-height: 1.5;
  max-width: 82%;
}
.chat-msg.user .msg-bubble { background: var(--gradient); color: #fff; }
.chat-quick-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-quick-btns button {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 12px; font-size: .75rem;
  cursor: pointer; color: var(--text); transition: all .2s; font-family: var(--font-body);
}
.chat-quick-btns button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chat-input-area { padding: 14px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input-area input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; color: var(--text);
  font-family: var(--font-body); font-size: .87rem; outline: none;
}
.chat-input-area input:focus { border-color: var(--accent); }
.chat-input-area button {
  background: var(--gradient); border: none; border-radius: 10px;
  padding: 10px 14px; color: #fff; font-size: .9rem; cursor: pointer; transition: transform .2s;
}
.chat-input-area button:hover { transform: scale(1.08); }
.typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; }
.typing span { width: 6px; height: 6px; background: var(--text2); border-radius: 50%; animation: typingDot .9s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* ===== WHATSAPP ===== */
.whatsapp-btn {
  position: fixed; bottom: 28px; left: 28px;
  background: #25d366; color: #fff;
  padding: 12px 18px; border-radius: 50px;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: .85rem; font-weight: 700;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
  font-family: var(--font-body);
}
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,.45); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 50px; padding: 12px 24px; font-size: .88rem; font-weight: 600;
  z-index: 2000; box-shadow: var(--shadow);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from{transform:translateX(-50%) translateY(20px);opacity:0} to{transform:translateX(-50%) translateY(0);opacity:1} }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { flex-direction: column; padding-top: 120px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .chatbot-container { width: calc(100vw - 32px); right: 16px; }
  .whatsapp-btn { display: none; }
  .countdown { gap: 10px; }
}
