:root {
  --bg: #0b1020;
  --panel: #121a33;
  --text: #e6e9f2;
  --muted: #a8b0c3;
  --primary: #3b82f6; /* azul */
  --accent: #22d3ee;  /* cian */
  --glow: rgba(59, 130, 246, 0.45);
  --section-hero: #0b1020;
  --section-services: #0a1533;
  --section-projects: #0c122a;
  --section-contact: #081a29;
  --section-value: #0c1638;
}
.value { background: var(--section-value); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--section-hero);
  color: var(--text);
  line-height: 1.6;
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(860px, 92%); margin: 0 auto; }

.skip-link { position: absolute; left: -999px; top: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--panel); color: var(--text); padding: .5rem .75rem; border-radius: .5rem; }

/* Header */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(12px); background: rgba(11,16,32,0.6); border-bottom: 1px solid rgba(255,255,255,0.06); z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark { display:inline-grid; place-items:center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 24px var(--glow); }
.brand-name { letter-spacing: .2px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: .6rem .8rem; border-radius: .6rem; opacity: .9; }
.site-nav a:hover { background: rgba(255,255,255,0.06); opacity: 1; }
.site-nav .cta { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #0b1020; font-weight: 700; box-shadow: 0 6px 24px var(--glow); }

.nav-toggle { display: none; background: transparent; border: 0; color: var(--text); padding: .5rem; cursor: pointer; }
.nav-toggle span { display:block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; transition: .3s; }

/* Sections */
.section { padding: clamp(3rem, 6vw, 6rem) 0; min-height: 100vh; display: grid; align-items: center; }
.section-header { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-header h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 .5rem; }
.section-header p { margin: 0; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }

/* Hero */
.hero { background: var(--section-hero); }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .75rem; line-height: 1.15; }
.hero-copy .subtitle { display:block; font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); font-weight: 500; margin-top: .3rem; }
.hero-copy p { color: var(--muted); max-width: 60ch; }
.hero-ctas { display: flex; gap: .8rem; margin-top: 1rem; flex-wrap: wrap; }

.btn { display:inline-block; border-radius: .8rem; padding: .75rem 1rem; text-decoration: none; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); color: var(--text); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #0b1020; box-shadow: 0 10px 26px var(--glow); border: 0; }
.btn.ghost { background: transparent; }

.hero-art { position: relative; min-height: 320px; }
.blob { position: absolute; inset: -20% -10% auto auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--accent), rgba(34,211,238,0.2) 40%, transparent 60%); filter: blur(12px); opacity: .7; }
.glass-card { position: relative; margin-top: 4rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem; padding: 1.1rem; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 1rem; backdrop-filter: blur(8px); }
.stat { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: .75rem; padding: .9rem; text-align: left; }
.stat strong { display:block; font-size: 1.05rem; margin-bottom: .25rem; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 1.1rem 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.list { margin: 0; padding-left: 1rem; }
.list li { margin: .4rem 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); padding: .45rem .6rem; border-radius: .6rem; font-size: .95rem; }
/* Timeline */
.timeline { list-style: none; margin: .25rem 0 0; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: .75rem; align-items: start; padding: .4rem 0; }
.timeline .time { color: var(--accent); font-weight: 800; letter-spacing: .3px; }
.timeline .entry { color: var(--muted); }

/* Services */
.services { background: var(--section-services); }
.projects { background: var(--section-projects); }
.contact { background: var(--section-contact); }
.services .cards-3, .projects .cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.services .cards-3 { grid-template-columns: repeat(3, 1fr); }
.services .service-card { min-height: 280px; }
.service-card, .project-card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 1.1rem; position: relative; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.service-card::before, .project-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(500px 180px at 20% -20%, rgba(34,211,238,0.25), transparent 40%), radial-gradient(500px 180px at 120% 120%, rgba(59,130,246,0.25), transparent 40%); opacity: .6; pointer-events: none; }
.service-card:hover, .project-card:hover { transform: translateY(-4px); transition: transform .25s ease; }
.service-card .actions, .project-card .actions { margin-top: .6rem; }
.service-card .icon { font-size: 1.6rem; }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.badge { display:inline-block; padding: .25rem .5rem; border-radius: .5rem; background: rgba(34,211,238,0.15); color: var(--accent); font-weight: 700; font-size: .75rem; letter-spacing: .3px; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.project-card .meta { margin: .25rem 0; color: var(--muted); font-size: .95rem; }

/* Contact */
.form { background: var(--panel); border: 1px solid rgba(255,255,255,0.06); border-radius: 1rem; padding: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
label { color: var(--muted); font-weight: 600; font-size: .9rem; }
input, textarea { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text); border-radius: .6rem; padding: .75rem .8rem; font-size: 1rem; }
input:focus, textarea:focus { outline: 2px solid rgba(34,211,238,0.35); border-color: transparent; }
.form-note { color: var(--muted); font-size: .9rem; }
/* Submit button improvements */
.contact .btn.primary { margin-top: .6rem; border-radius: 999px; padding: .85rem 1.1rem; font-weight: 700; }
.contact .btn.primary:hover { filter: brightness(1.05); box-shadow: 0 12px 30px var(--glow); }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, rgba(11,16,32,0.2), rgba(11,16,32,0.7)); }
.footer-inner { display:flex; align-items:center; justify-content: space-between; padding: 1rem 0; }
.socials { display:flex; gap: .5rem; }
.socials a { display:inline-grid; place-items:center; width: 34px; height: 34px; border-radius: .6rem; background: rgba(255,255,255,0.06); color: var(--text); text-decoration: none; font-weight: 700; }
.socials a:hover { background: rgba(255,255,255,0.1); }

/* Reveal animations */
.reveal-up { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* Responsive */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 220px; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .services .cards-3, .projects .cards-3 { grid-template-columns: 1fr 1fr; }
  .glass-card { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
}
@media (max-width: 720px) {
  .site-nav { position: fixed; inset: 58px 0 auto 0; background: rgba(11,16,32,0.95); border-bottom: 1px solid rgba(255,255,255,0.06); transform: translateY(-120%); transition: transform .3s ease; }
  .site-nav.open { transform: translateY(0%); }
  .site-nav ul { flex-direction: column; padding: .6rem; }
  .nav-toggle { display: inline-block; }
  .form-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .services .cards-3, .projects .cards-3 { grid-template-columns: 1fr; }
  .glass-card { grid-template-columns: 1fr; gap: .85rem; }
}


