:root {
  --bg: #0e0f12;
  --panel: #151720;
  --text: #e6e8ef;
  --muted: #a7adbb;
  --primary: #39c18e;
  --primary-contrast: #0b1d16;
  --accent: #3b82f6;
  --border: #232736;
}

* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #1a1d29 0%, #0e0f12 45%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14,15,18,0.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border) }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px }
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.4px; font-size: 1.15rem }
.site-nav { display: flex; gap: 18px }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04) }
.nav-toggle { display: none; appearance: none; border: 0; background: transparent; color: var(--text); font-size: 22px; padding: 8px; border-radius: 8px }
.nav-toggle:focus { outline: 2px solid var(--accent) }

.hero { padding: 72px 0; position: relative; background-image: url('img/portada.png'); background-size: cover; background-position: center; background-repeat: no-repeat }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.35)) }
.hero-inner { display: grid; gap: 18px; position: relative; z-index: 1 }
.hero h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.2 }
.hero p { margin: 0; color: var(--muted) }
.hero-cta { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap }

.section { padding: 64px 0 }
.section.alt { background: linear-gradient(0deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03)) }
.section h2 { margin: 0 0 18px; font-size: 1.6rem }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: grid; gap: 12px }
.card h3 { margin: 0; font-size: 1.25rem }
.features { margin: 0; padding: 0 0 0 18px; color: var(--muted) }
.features li { margin: 4px 0 }

.demos { display: grid; gap: 12px }
.demo-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap }
.note { color: var(--muted); font-size: 0.95rem }

.contact-actions { display: flex; gap: 12px; flex-wrap: wrap }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); text-decoration: none; background: #111318 }
.btn:hover { filter: brightness(1.1) }
.btn.primary { border-color: #2a5f4a; background: linear-gradient(180deg, #2b7c5f, #205e48); color: white }
.btn.outline { background: transparent; border-color: var(--accent); color: var(--accent) }

.site-footer { border-top: 1px solid var(--border); background: rgba(14,15,18,0.6) }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 }
.footer-links { display: flex; gap: 12px }
.footer-links a { color: var(--muted); text-decoration: none }
.footer-links a:hover { color: var(--text) }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #0c1014; border-top: 1px solid var(--border); padding: 14px 0; z-index: 30; transform: translateY(100%); transition: transform .25s ease }
.cookie-banner.show { transform: translateY(0) }
.cookie-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 10px }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start }
.accept-cookies { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary) }

.whatsapp-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: white; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.3); z-index: 40; text-decoration: none }
.whatsapp-float:hover { filter: brightness(1.05) }

.modal { position: fixed; inset: 0; display: none; z-index: 50 }
.modal.show { display: block }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6) }
.modal-content { position: relative; margin: 10vh auto; width: min(720px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px }
.modal-body { color: var(--muted) }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex }
  .site-nav { position: absolute; right: 20px; top: 64px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: none; flex-direction: column; min-width: 200px }
  .site-nav.open { display: flex }
}
