/* dimassilguero.com
   Sistema: CSS nativo sin build. Soft Structuralism: fondo plata/blanco (OLED
   en oscuro), tipografía Geist grande, sombras ambientales difusas, tarjetas
   double-bezel (carcasa + núcleo con radios concéntricos), nav flotante.
   Radios: carcasas 1.75rem, núcleos calc(1.75rem - 6px), botones píldora.
   Un solo acento (cobalto). Curvas: --out para entradas, --press para pulsar. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f6f5;
  --surface: #fdfdfc;
  --shell: rgba(28, 28, 26, 0.045);
  --border: rgba(28, 28, 26, 0.09);
  --hairline: rgba(28, 28, 26, 0.06);
  --text: #1a1a18;
  --muted: #66665f;
  --accent: #2547c9;
  --accent-text: #fdfdfc;
  --ambient: 0 24px 60px -24px rgba(28, 28, 26, 0.14);
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --press: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a09;
    --surface: #161615;
    --shell: rgba(253, 253, 252, 0.05);
    --border: rgba(253, 253, 252, 0.12);
    --hairline: rgba(253, 253, 252, 0.07);
    --text: #ededea;
    --muted: #9c9c94;
    --accent: #8aa3ff;
    --accent-text: #0d1224;
    --ambient: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }

/* ---- nav flotante en píldora ---- */
.nav-wrap {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center; padding: 18px 16px 0;
}
.nav {
  display: flex; align-items: center; gap: 34px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), var(--ambient);
}
.wordmark { font-weight: 650; text-decoration: none; font-size: 1rem; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a {
  text-decoration: none; color: var(--muted); font-size: 0.93rem;
  transition: color 200ms var(--out);
}
.nav-cta {
  color: var(--accent-text) !important; background: var(--accent);
  padding: 7px 16px; border-radius: 999px; font-weight: 550;
  transition: transform 160ms var(--press), filter 200ms var(--out);
}
.nav-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .nav nav a:hover { color: var(--text); }
  .nav-cta:hover { filter: brightness(1.08); color: var(--accent-text) !important; }
}

/* ---- hero: split editorial ---- */
.hero {
  display: grid; grid-template-columns: 7fr 5fr; gap: 56px;
  align-items: center; padding: 88px 0 120px;
}
.pill {
  display: inline-block; border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 14px; font-family: "Geist Mono", monospace;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 650; letter-spacing: -0.04em;
}
.hero-sub {
  margin-top: 22px; color: var(--muted);
  font-size: 1.13rem; max-width: 46ch;
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* botones: píldora con orbe interior (button-in-button) */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 560;
  padding: 11px 12px 11px 26px; border-radius: 999px; font-size: 0.98rem;
  transition: transform 160ms var(--press), filter 200ms var(--out), background 200ms var(--out);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: var(--accent-text);
  box-shadow: var(--ambient);
}
.btn-ghost { border: 1px solid var(--border); padding: 11px 26px; }
.btn-big { font-size: 1.08rem; padding: 14px 14px 14px 32px; }
.btn-orb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); font-size: 0.9rem;
  transition: transform 250ms var(--out);
}
.btn-big .btn-orb { width: 34px; height: 34px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { filter: brightness(1.07); }
  .btn-ghost:hover { background: var(--surface); }
  .btn:hover .btn-orb { transform: translate(2px, -2px) scale(1.05); }
}
@media (prefers-color-scheme: dark) {
  .btn-orb { background: rgba(13, 18, 36, 0.22); }
}

/* ---- double-bezel: carcasa + núcleo con radios concéntricos ---- */
.bezel {
  background: var(--shell);
  border: 1px solid var(--hairline);
  border-radius: 1.75rem; padding: 6px;
  box-shadow: var(--ambient);
}
.bezel-core {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: calc(1.75rem - 6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

.hero-card { padding: 30px; }
.hero-card dl { display: grid; gap: 20px; }
.hero-card dt {
  font-family: "Geist Mono", monospace; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 3px;
}
.hero-card dd { margin: 0; font-size: 0.96rem; }

/* ---- secciones ---- */
.section { padding: 96px 0; border-top: 1px solid var(--hairline); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 640; margin-bottom: 14px; }
.section-note { color: var(--muted); max-width: 62ch; margin-bottom: 44px; }

/* proyectos */
.project h3 { font-size: 1.2rem; font-weight: 620; }
.project p { margin-top: 9px; color: var(--muted); font-size: 0.97rem; }

.featured-shell { margin-bottom: 22px; }
.featured {
  display: grid; grid-template-columns: 1fr auto; gap: 26px;
  padding: 30px 32px; align-items: start;
}
.status {
  font-family: "Geist Mono", monospace; font-size: 0.76rem;
  color: var(--accent); white-space: nowrap; padding-top: 6px;
}

/* bento asimétrico: filas 7/5 y 5/7 */
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card {
  grid-column: span 5;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 1.35rem; padding: 26px 28px;
  transition: transform 300ms var(--out), border-color 300ms var(--out), box-shadow 300ms var(--out);
}
.card.wide { grid-column: span 7; }
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    border-color: var(--border);
    box-shadow: var(--ambient);
  }
}

.tags {
  list-style: none; padding: 0; margin-top: 18px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tags li {
  font-family: "Geist Mono", monospace; font-size: 0.72rem;
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 3px 11px; color: var(--muted); background: var(--shell);
}

/* formación */
.edu { list-style: none; padding: 0; display: grid; gap: 34px; margin-top: 34px; }
.edu li { display: grid; grid-template-columns: 150px 1fr; gap: 26px; }
.edu-when {
  font-family: "Geist Mono", monospace; font-size: 0.78rem;
  color: var(--muted); padding-top: 5px;
}
.edu h3 { font-size: 1.1rem; font-weight: 610; }
.edu p { color: var(--muted); font-size: 0.95rem; margin-top: 5px; }

/* herramientas / ahora */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.stack-line { color: var(--muted); max-width: 44ch; }

/* contacto */
.contact { padding-bottom: 120px; }
.contact p { color: var(--muted); margin-bottom: 30px; }

/* footer */
.footer {
  border-top: 1px solid var(--hairline);
  max-width: 1120px; margin: 0 auto; padding: 30px 24px 44px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.9rem;
}
.footer a { color: var(--muted); transition: color 200ms var(--out); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--text); } }

/* ---- motion: revelados con blur, escalonados por orden ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(18px); filter: blur(6px);
    transition: opacity 700ms var(--out), transform 700ms var(--out), filter 700ms var(--out);
  }
  .reveal.in { opacity: 1; transform: none; filter: none; }
  .project-grid .reveal:nth-child(2) { transition-delay: 60ms; }
  .project-grid .reveal:nth-child(3) { transition-delay: 120ms; }
  .project-grid .reveal:nth-child(4) { transition-delay: 180ms; }
  .hero-copy { animation: rise 800ms var(--out) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
}

/* ---- móvil ---- */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 72px; }
  .project-grid { grid-template-columns: 1fr; }
  .card, .card.wide { grid-column: auto; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .featured { grid-template-columns: 1fr; gap: 12px; }
  .edu li { grid-template-columns: 1fr; gap: 4px; }
  .section { padding: 64px 0; }
  .nav { gap: 18px; padding-left: 18px; }
  .nav nav { gap: 14px; }
  .nav nav a:not(.nav-cta) { display: none; }
}
