@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600&display=swap");
/* Alternativas para probar (descomentar y cambiar font-family en :root)
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&display=swap");
*/

:root {
  --font: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --bg: #f7f9fb;
  --text: #0e1b2a;
  --muted: #3d556b;
  --accent: #00c2a8;
  --card: #ffffff;
  --border: #1b2a3a;
  --grid: rgba(20, 40, 60, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --grid-size: 28px;
  --grid-size-2: 160px;
  --diag-opacity: 0.05;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px),
    linear-gradient(135deg, rgba(0, 0, 0, var(--diag-opacity)) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size),
    var(--grid-size-2) var(--grid-size-2);
  background-position: 0 0, 0 0, 0 0;
}

body[data-env="prod"] .dev-toolbar {
  display: none;
}

.dev-toolbar {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 10;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 12px;
}

.dev-toolbar select {
  font-family: var(--font);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 96px 0 48px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 4.3rem);
  line-height: 1.05;
  margin: 0 0 20px;
}

.subtitle {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--accent);
  color: #001312;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.cta-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.image-section {
  padding: 16px 0 56px;
}

.hero-image {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image figcaption {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.highlights {
  padding: 32px 0 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.bullets,
.timeline ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.metric {
  font-size: 1.6rem;
  font-weight: 600;
  display: block;
}

.metric-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  padding: 24px 0 48px;
}

.timeline-block {
  padding: 20px 20px 10px;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.timeline-block h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.timeline .collab {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact {
  padding: 24px 0 64px;
}

.contact-card {
  border-radius: 20px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 520px;
}

.contact-card .name {
  font-size: 1.2rem;
  margin: 4px 0 6px;
}

.contact-card .location {
  color: var(--muted);
  margin: 0 0 12px;
}

.contact-card .email {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.footer {
  padding: 18px 0 28px;
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero {
    padding-top: 80px;
  }

  .footer .container {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-block {
    padding: 16px;
  }
}

/* Themes */
body[data-theme="blueprint"] {
  --bg: #f1f6fb;
  --text: #0c1a2b;
  --muted: #39506b;
  --accent: #00c2a8;
  --card: #ffffff;
  --border: #1a3144;
  --grid: rgba(14, 40, 72, 0.1);
  --diag-opacity: 0.05;
}

body[data-theme="neon-terminal"] {
  --bg: #060b10;
  --text: #d7ffe7;
  --muted: #8bd1b5;
  --accent: #5cffb5;
  --card: #0b141c;
  --border: #2b5b48;
  --grid: rgba(92, 255, 181, 0.1);
  --diag-opacity: 0.08;
}

body[data-theme="amber-console"] {
  --bg: #120b05;
  --text: #ffd59a;
  --muted: #d8a766;
  --accent: #ffb340;
  --card: #1b1209;
  --border: #6d4b1f;
  --grid: rgba(255, 179, 64, 0.12);
  --diag-opacity: 0.08;
}

body[data-theme="cad-slate"] {
  --bg: #e9eef3;
  --text: #162534;
  --muted: #5a6c7d;
  --accent: #ff6b4a;
  --card: #ffffff;
  --border: #2b3b4c;
  --grid: rgba(22, 37, 52, 0.1);
  --diag-opacity: 0.04;
}

body[data-theme="infrared"] {
  --bg: #140b12;
  --text: #ffe3ef;
  --muted: #d39eb5;
  --accent: #ff3b8d;
  --card: #1d1018;
  --border: #6e2d47;
  --grid: rgba(255, 59, 141, 0.12);
  --diag-opacity: 0.1;
}

body[data-theme="cyan-grid"] {
  --bg: #f2fbff;
  --text: #0b1a21;
  --muted: #3b5b6b;
  --accent: #2be6ff;
  --card: #ffffff;
  --border: #163244;
  --grid: rgba(43, 230, 255, 0.18);
  --diag-opacity: 0.06;
}

body[data-theme="mono-paper"] {
  --bg: #faf7f0;
  --text: #1c1b1a;
  --muted: #5a534a;
  --accent: #0a0a0a;
  --card: #ffffff;
  --border: #1c1b1a;
  --grid: rgba(28, 27, 26, 0.08);
  --diag-opacity: 0.02;
}

body[data-theme="signal-orange"] {
  --bg: #0f1217;
  --text: #f6f7fb;
  --muted: #a5b1c2;
  --accent: #ff7b2c;
  --card: #151a22;
  --border: #2c3645;
  --grid: rgba(255, 123, 44, 0.12);
  --diag-opacity: 0.1;
}

body[data-theme="signal-orange"] .cta {
  color: #0b0f14;
}

body[data-theme="neon-terminal"] .cta,
body[data-theme="amber-console"] .cta,
body[data-theme="infrared"] .cta {
  color: #00130b;
}

body[data-theme="neon-terminal"] .timeline-block,
body[data-theme="amber-console"] .timeline-block,
body[data-theme="infrared"] .timeline-block,
body[data-theme="signal-orange"] .timeline-block {
  background: rgba(10, 15, 20, 0.72);
}

body[data-theme="neon-terminal"] .dev-toolbar,
body[data-theme="amber-console"] .dev-toolbar,
body[data-theme="infrared"] .dev-toolbar,
body[data-theme="signal-orange"] .dev-toolbar {
  background: rgba(10, 15, 20, 0.9);
}
