:root{
  --bg: #0b1020;
  --bg2:#0f1730;
  --card:#121b36cc;
  --text:#e9ecf5;
  --muted:#b8c0da;
  --line:#003049;
  --accent:#C1121F;
  --accent2:#669BBC;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: radial-gradient(1100px 700px at 20% -20%, rgba(124,92,255,.35), transparent 55%),
              radial-gradient(900px 700px at 110% 10%, rgba(34,195,255,.22), transparent 50%),
              linear-gradient(180deg, var(--bg), #070a16 55%, #070a16);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(var(--max), 100% - 32px); margin-inline:auto; }
img{ max-width:100%; display:block; border-radius: 8px; }

/* ACCESIBILIDAD */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

.section{ padding:80px 0; position:relative; }
.section.alt{ background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.section-head h2{ margin:0 0 20px; font-size: 32px; }

/* HEADER */
.site-header{
  position:sticky; top:0; z-index:100;
  backdrop-filter: blur(12px);
  background: rgba(11,16,32,.8);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; min-height:64px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; }
.brand-mark img { width: 32px; height: 32px; object-fit: contain; }

.site-nav { display: none; align-items: center; gap: 10px; }
.site-nav a { padding: 8px 16px; color: var(--muted); transition: .2s; font-weight: 500; }
.site-nav a:hover { color: #fff; }

/* RESALTE BOTÓN CONTACTO HEADER */
.site-nav .nav-cta {
  background: linear-gradient(135deg, rgba(92, 116, 255, 0.2), rgba(34,195,255,0.2));
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
}
.site-nav .nav-cta:hover {
  background: var(--accent2);
  box-shadow: 0 0 15px rgba(124,92,255,0.4);
}

/* HAMBURGUESA */
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; cursor: pointer; color: #fff;
}
.burger { width: 20px; height: 2px; background: currentColor; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: .3s; }
.burger::before { top: -6px; } .burger::after { top: 6px; }

/* BOTONES (ELEMENTOS CLICKEABLES) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08); color: #fff;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }

.btn.primary {
  background: linear-gradient(135deg, var(--line), var(--accent2));
  border: none; box-shadow: 0 4px 15px rgba(124, 92, 255, 0.3);
}
.btn.primary:hover { box-shadow: 0 6px 20px rgba(124, 92, 255, 0.5); }

.btn.small { padding: 8px 16px; font-size: 14px; }

.card-actions { display: flex; flex-direction: column; gap: 10px;}

.skill-chips { display: flex; flex-wrap: wrap; gap: 10px;}

/* PILLS / TAGS (ELEMENTOS NO CLICKEABLES - INFORMACIÓN) */
.pill, .chip {
  font-size: 12px; padding: 4px 12px; border-radius: 99px;
  background: rgba(255,255,255,0.03); 
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.08); 
  pointer-events: none; 
  cursor: default;
  font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* HERO */
.hero{ padding-top: 40px; }
.hero-grid{ display:grid; gap:40px; }
.hero h1{ font-size: clamp(32px, 6vw, 48px); line-height:1.1; margin: 15px 0; }
.lead{ color: var(--muted); font-size: 18px; margin-bottom: 30px; }
.hero-meta{ list-style:none; padding:0; display:flex; gap:20px; color: var(--muted); font-size: 14px; }
.dot{ width:8px; height:8px; background: var(--accent2); border-radius:50%; display:inline-block; margin-right:8px; }

/* WORKFLOW */
.workflow-mini{ margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; }
.steps-grid{ display:grid; gap:15px; }
.step{ display:flex; gap:15px; align-items: flex-start; }
.step-num{ background: rgba(34,195,255,0.1); color: var(--accent2); padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.step p{ margin:0; font-size: 14px; color: var(--muted); }
.step strong{ display:block; color: var(--text); margin-bottom: 2px; }

/* BENTO HERO */
.hero-bento{ display:grid; gap:15px; }
.bento{ border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); padding: 20px; }
.profile{ display:flex; align-items:center; gap:15px; }
.avatar img { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); }
.value-list{ list-style:none; padding:0; margin: 20px 0; color: var(--muted); font-size: 14px; }
.value-list li{ margin-bottom: 8px; }
.mini-links{ display:flex; gap:10px; }
/* Estos son botones pequeños en la card */
.mini-link{ font-size: 12px; padding: 8px 14px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; background: rgba(255,255,255,0.05); transition: .2s; cursor: pointer; }
.mini-link:hover { background: var(--accent2); border-color: var(--line); color: #fff; }

.featured-title{ margin: 6px 0 12px; }
.bento.featured .card-actions { margin-top: 20px; }

/* FILTROS */
.filters { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter {
  appearance: none; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted);
  padding: 10px 20px; border-radius: 12px; cursor: pointer;
  font-size: 14px; font-family: inherit; transition: all 0.3s ease;
}
.filter:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.filter.is-active { background: var(--line); border-color: var(--line); color: #fff; }

/* GRIDS E IGUALACIÓN DE ALTURAS */
.grid.two-col { display: grid; gap: 20px; align-items: stretch; }
.grid.two-col .card { display: flex; flex-direction: column; height: 100%; }

/* PROJECTS */
.projects-grid{ display:grid; gap:25px; }
.project{ display:flex; flex-direction:column; background: rgba(18, 27, 54, 0.5); padding: 25px; border-radius: 10px;}
.card-top h3 { margin-top: 0; font-size: 22px; }
.card-top img{ margin: 20px 0; border: 1px solid rgba(255,255,255,0.1); width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.project-bullets{ flex-grow: 1; padding-left: 18px; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 20px; }

/* CONTACTO Y LINKS DIRECTOS */
.link-list{ list-style:none; padding:0; display:flex; flex-direction:column; gap:12px; flex-grow:1; justify-content: center; }
.link-list li a{ 
  display:flex; align-items:center; gap:15px; padding:15px; 
  background: rgba(255,255,255,0.03); border-radius:12px; 
  border:1px solid rgba(255,255,255,0.05); transition: .2s;
}
.link-list li a:hover{ background: var(--accent2); border-color: var(--line); transform: translateX(5px); }

.contact-form{ display:grid; gap:12px; }
input, textarea{ background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px; color: #fff; width:100%; font-family: inherit; }

/* TIMELINE Y OTROS */
.timeline-item{ position:relative; padding-left: 30px; margin-bottom: 20px; }
.timeline-item::before{ content:""; position:absolute; left:7px; top:0; bottom:-20px; width:2px; background: rgba(124,92,255,0.2); }
.timeline-dot{ position:absolute; left:2px; top:5px; width:12px; height:12px; background: var(--line); border-radius:50%; }

/* Footer */
.site-footer{ border-top: 1px solid rgba(255,255,255,0.05); padding: 30px 0; margin-top: 60px; }
.footer-inner{ display:flex; justify-content:space-between; color: var(--muted); font-size: 12px; }