:root {
    --bg: #07111f;
    --card: rgba(15, 27, 49, .88);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --line: rgba(148,163,184,.18);
    --primary: #3b82f6;
    --accent: #38bdf8;
    --soft: rgba(255,255,255,.04);
    --shadow: 0 24px 50px rgba(2,8,23,.35);
}
html[data-theme="light"] {
    --bg: #f4f7fb;
    --card: rgba(255,255,255,.94);
    --text: #0f172a;
    --muted: #475569;
    --line: rgba(15,23,42,.12);
    --soft: rgba(15,23,42,.04);
    --shadow: 0 20px 45px rgba(15,23,42,.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Inter, Arial, sans-serif; }
html { scroll-behavior: smooth; }
body {
    background: radial-gradient(circle at top left, rgba(56,189,248,.15), transparent 28%),
                radial-gradient(circle at top right, rgba(59,130,246,.14), transparent 22%),
                var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: auto; }
.topbar { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px); background: rgba(7,17,31,.78); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; }
.brand { font-weight: 900; letter-spacing: .4px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--text); cursor: pointer; font-weight: 800; }
.menu-btn { display: none; }
.hero { padding: 80px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 28px; align-items: center; }
.badge { display: inline-flex; padding: 10px 14px; border-radius: 999px; color: var(--accent); border: 1px solid var(--line); background: var(--soft); margin-bottom: 18px; font-weight: 700; font-size: .92rem; }
h1 { font-size: clamp(2.35rem, 4.7vw, 4.6rem); line-height: 1.05; margin-bottom: 18px; }
h1 span, .floating-panel span { color: var(--accent); }
.hero p { color: var(--muted); max-width: 760px; font-size: 1.06rem; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 13px; border: 1px solid transparent; cursor: pointer; font-weight: 800; transition: .25s ease; }
.btn-primary, button[type="submit"] { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; }
.btn-secondary { border-color: var(--line); background: var(--soft); color: var(--text); }
.btn:hover, button:hover { transform: translateY(-2px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .95rem; }
.hero-card, .card, .timeline-item, .testimonial, .form-box { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero-card { padding: 22px; position: relative; overflow: hidden; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); display: block; }
.floating-panel { margin-top: 16px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--soft); }
.stats { padding: 18px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 24px; transition: .25s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,.45); }
.stat-number { font-size: 2.15rem; font-weight: 950; color: var(--accent); }
.stat-label { color: var(--muted); font-size: .95rem; }
section { padding: 38px 0; }
.section-header { margin-bottom: 24px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .78rem; letter-spacing: 1.4px; font-weight: 900; margin-bottom: 8px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.14; margin-bottom: 10px; }
.section-header p, .card p, .timeline-item p, .testimonial p { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.skills-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.skill-pill { text-align: center; padding: 14px 16px; border-radius: 15px; background: var(--soft); border: 1px solid var(--line); font-weight: 750; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filter-btn { background: var(--soft); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.filter-btn.active { background: var(--accent); color: #07111f; }
.project-card { cursor: pointer; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.project-tag { color: var(--accent); background: rgba(56,189,248,.12); padding: 7px 10px; border-radius: 999px; font-size: .84rem; font-weight: 800; }
.timeline { display: grid; gap: 18px; }
.timeline-item { padding: 24px; border-left: 4px solid var(--accent); }
.timeline-periodo { color: var(--accent); font-weight: 900; display: inline-block; margin: 8px 0 10px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.contact-list { display: grid; gap: 13px; }
.contact-item { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.contact-item small { display: block; color: var(--accent); text-transform: uppercase; font-weight: 900; margin-bottom: 6px; }
.contact-item span, .contact-item a { color: var(--text); word-break: break-word; }
.form-box { padding: 24px; }
.form-group { margin-bottom: 14px; }
label { display: block; margin-bottom: 7px; font-weight: 800; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: var(--soft); color: var(--text); border-radius: 14px; padding: 13px 15px; outline: none; }
textarea { min-height: 135px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.alert { padding: 13px 15px; border-radius: 14px; margin-bottom: 16px; }
.alert-success { background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.35); }
.alert-error { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.35); }
.reveal { opacity: 0; transform: translateY(28px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2,8,23,.72); backdrop-filter: blur(10px); }
.modal.show { display: flex; }
.modal-content { width: min(680px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.modal-close { float: right; width: 38px; height: 38px; border-radius: 12px; }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 120; background: #22c55e; color: white; width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; font-weight: 950; box-shadow: 0 14px 26px rgba(34,197,94,.32); }
footer { border-top: 1px solid var(--line); margin-top: 26px; padding: 26px 0 36px; color: var(--muted); text-align: center; }
footer a { color: var(--accent); }
@media (max-width: 930px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .menu-btn { display: inline-grid; place-items: center; }
    .nav-links { display: none; position: absolute; top: 74px; left: 16px; right: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; flex-direction: column; align-items: flex-start; }
    .nav-links.open { display: flex; }
}
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn, button[type="submit"] { width: 100%; }
}
