:root {
  /* SolTec Brand Colors */
  --primary: #ffffff;
  --primary-light: #f8fafc;
  --primary-dark: #f1f5f9;
  
  --brand-navy: #0F172A; /* Color oscuro del texto SolTec */
  --brand-navy-light: #1E293B;
  --accent: #F97316; /* Naranja SolTec */
  --accent-hover: #EA580C;
  --accent-glow: rgba(249, 115, 22, 0.25);
  
  --text: #334155;
  --text-muted: #64748B;
  --heading: #0F172A;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-border-hover: rgba(249, 115, 22, 0.3);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --wa-green: #25D366;
}

/* Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Global Watermark */
.global-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
  filter: grayscale(100%);
}

/* Typography */
h1, h2, h3, h4, .logo { font-family: var(--font-head); color: var(--heading); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { font-size: 1.1rem; }
.highlight {
  color: var(--accent);
}
.section-subtitle { max-width: 600px; margin: 0 auto; color: var(--text-muted); font-size: 1.25rem; }
.mt-50 { margin-top: 50px; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section.bg-light { background: var(--primary-light); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 36px; border-radius: 100px; font-weight: 600; font-size: 1.1rem;
  text-decoration: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none; position: relative;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
.btn-secondary { background: var(--brand-navy); color: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2); }
.btn-whatsapp { background: var(--wa-green); color: #fff; box-shadow: 0 8px 32px rgba(37, 211, 102, 0.2); }
.main-cta { font-size: 1.2rem; padding: 20px 40px; }

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-4px); box-shadow: 0 12px 30px var(--accent-glow); }
.btn-secondary:hover { background: var(--brand-navy-light); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3); }
.btn-whatsapp:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4); }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 20px 0; transition: all 0.4s; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.navbar.scrolled { padding: 12px 0; border-bottom: 1px solid var(--glass-border); box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 44px; display: block; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { padding: 10px 24px; font-size: 0.95rem; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; position: relative; overflow: hidden; background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.05), transparent 40%); }
.hero-bg-logo { position: absolute; right: -10%; top: -5%; width: 800px; opacity: 0.03; filter: grayscale(100%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; background: #fff; border: 1px solid var(--glass-border); color: var(--brand-navy); font-weight: 600; font-size: 0.9rem; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent-glow); }
.hero-text h1 { margin-bottom: 24px; }
.hero-text p { margin-bottom: 30px; font-size: 1.25rem; max-width: 500px; }
.hero-subtext { margin-top: 16px; font-size: 0.95rem; color: var(--text-muted); }

/* CSS Mockup Monitor (Realista) */
.css-monitor {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #E2E8F0;
  border-radius: 16px;
  padding: 12px 12px 30px 12px;
  box-shadow: 
    0 30px 60px rgba(15, 23, 42, 0.15),
    inset 0 1px 1px rgba(255,255,255,0.8),
    0 0 0 1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.css-monitor-screen {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid #CBD5E1;
}
.css-monitor-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.css-monitor-base {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 40px;
  background: linear-gradient(to bottom, #CBD5E1, #94A3B8);
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.css-monitor-base::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 6px;
  background: #cbd5e1;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.floating-badge { position: absolute; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 16px; animation: float 6s ease-in-out infinite; box-shadow: 0 10px 30px rgba(0,0,0,0.08); z-index: 10; }
.badge-top-right { top: -20px; right: -30px; animation-delay: 0s; }
.badge-bottom-left { bottom: 20px; left: -30px; animation-delay: -3s; }
.icon-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; background: rgba(249, 115, 22, 0.1); color: var(--accent); }
.floating-badge strong { display: block; font-size: 1.4rem; color: var(--brand-navy); line-height: 1; margin-bottom: 4px; }
.floating-badge span { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

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

/* Bento Grid */
.section-header { margin-bottom: 60px; }
.tag { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 16px; display: inline-block; background: rgba(249, 115, 22, 0.1); padding: 4px 12px; border-radius: 100px; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.glass-card { background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); transition: all 0.4s ease; }
.glass-card:hover { border-color: var(--glass-border-hover); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08); }

.bento-icon { font-size: 3rem; margin-bottom: 24px; }
.glass-card h3 { margin-bottom: 12px; color: var(--brand-navy); }
.glass-card p { font-size: 1.05rem; }

.bento-wide { grid-column: span 2; display: flex; align-items: center; gap: 24px; }
.bento-tall { grid-row: span 2; }
.bento-main { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.bento-main h3, .bento-main p { color: #fff; }
.bento-main .bento-icon { font-size: 4rem; }

.bento-watermark { position: absolute; right: -20px; bottom: -20px; width: 200px; opacity: 0.03; transform: rotate(-15deg); pointer-events: none; transition: all 0.5s ease; filter: grayscale(100%); }
.bento-watermark.lg { width: 300px; top: -50px; right: -50px; opacity: 0.1; filter: none; }
.glass-card:hover .bento-watermark { opacity: 0.06; transform: rotate(0deg) scale(1.1); }
.bento-main:hover .bento-watermark.lg { opacity: 0.2; }

/* Demo Video */
.video-wrapper { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--brand-navy); border: none; }
.video-watermark { position: absolute; width: 60%; opacity: 0.05; pointer-events: none; filter: grayscale(100%); }
.video-placeholder { text-align: center; z-index: 1; color: #fff; }
.play-btn { width: 90px; height: 90px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; cursor: pointer; box-shadow: 0 10px 30px var(--accent-glow); transition: transform 0.3s; }
.play-btn:hover { transform: scale(1.1); }

/* vs-grid (Diferenciación) */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vs-card { border-radius: var(--radius-lg); padding: 50px; position: relative; overflow: hidden; }
.vs-card.bad { background: #fff; border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.03); opacity: 0.8; }
.vs-card.good { background: var(--brand-navy); color: #fff; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2); }
.vs-header { font-size: 1.8rem; font-weight: 800; font-family: var(--font-head); margin-bottom: 30px; text-align: center; }
.vs-card.good .vs-header { color: var(--accent); }
.vs-list { list-style: none; }
.vs-list li { margin-bottom: 20px; font-size: 1.15rem; display: flex; gap: 16px; align-items: flex-start; }
.vs-list li span { font-size: 1.3rem; flex-shrink: 0; }
.vs-list li .check { color: var(--accent); }
.vs-watermark { position: absolute; right: -50px; bottom: -50px; width: 300px; opacity: 0.05; pointer-events: none; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.testimonial-card { background: #fff; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.stars { color: #F59E0B; font-size: 1.5rem; margin-bottom: 20px; letter-spacing: 2px; }
.testimonial-card p { font-size: 1.15rem; font-style: italic; margin-bottom: 30px; color: var(--brand-navy); line-height: 1.8; }
.client-info strong { display: block; font-size: 1.1rem; color: var(--brand-navy); }
.client-info span { font-size: 0.95rem; color: var(--text-muted); }

/* CTA Box */
.cta-box { text-align: center; padding: 100px 40px; background: var(--brand-navy); border: none; border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2); overflow: hidden; color: #fff; }
.cta-watermark { position: absolute; left: -10%; top: -20%; width: 500px; opacity: 0.05; pointer-events: none; }
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-content h2 { margin-bottom: 20px; color: #fff; }
.cta-content p { margin-bottom: 40px; font-size: 1.3rem; color: #cbd5e1; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 60px 0; background: #fff; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { height: 35px; }
.footer p { font-size: 0.95rem; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* WhatsApp Float */
.wa-float-container { position: fixed; bottom: 30px; right: 30px; z-index: 999; display: flex; align-items: center; gap: 16px; }
.wa-tooltip { background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); font-size: 0.95rem; color: var(--text); border: 1px solid var(--glass-border); position: relative; animation: bounce 2s infinite; }
.wa-tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 12px; height: 12px; background: #fff; border-top: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border); }
.wa-float { width: 64px; height: 64px; background: var(--wa-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); transition: transform 0.3s; text-decoration: none; }
.wa-float:hover { transform: scale(1.1) translateY(-5px); }
.wa-float svg { width: 36px; height: 36px; fill: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-5px); }
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .floating-badge { display: none; }
  .css-monitor { max-width: 600px; margin: 40px auto 0; }
  .bento-grid, .vs-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-tall { grid-column: auto; grid-row: auto; display: block; }
  .vs-card { padding: 30px; }
  .wa-tooltip { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: flex; }
  h1 { font-size: 2.2rem; }
  .section { padding: 80px 0; }
  .footer-content { flex-direction: column; gap: 20px; text-align: center; }
}
