/* ═══════════════════════════════════════════════════════════
   global.css — ping-berni.es
   Importado desde index.astro vía frontmatter.
   Astro lo bundlea sin scopear y lo inyecta como <link> en <head>.
═══════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:        #0b1721;
  --bg-alt:    #0f1e2d;
  --surface:   #162535;
  --surface2:  #1c3048;
  --accent:    #f4936a;   /* coral pastel */
  --accent-d:  #e07a52;
  --accent2:   #7dd3c0;   /* mint complementario */
  --border:    rgba(244, 147, 106, 0.14);
  --border2:   rgba(125, 211, 192, 0.13);
  --text:      #c8dcea;
  --muted:     #4d7a90;
  --dim:       #223244;
  --white:     #eef6fc;
  --f-display: 'Fraunces', Georgia, serif;
  --f-mono:    'JetBrains Mono', monospace;
  --nav-h:     62px;
  --radius:    10px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── VARIABLES MODO CLARO ───────────────────────────────── */
/* ── VARIABLES MODO CLARO ───────────────────────────────── */
[data-theme="light"] {
  --bg:        #f8fafc;
  --bg-alt:    #ffffff;
  --surface:   #e2e8f0;
  --surface2:  #cbd5e1;
  --text:      #334155;
  --muted:     #64748b;
  --dim:       #94a3b8;
  --white:     #0f172a;
  
  /* Ajuste de accesibilidad: Colores más oscuros para contraste sobre blanco */
  --accent:    #d95b28; /* Coral más oscuro/teja */
  --accent-d:  #b8471b;
  --accent2:   #0d9488; /* Verde Teal más profundo */
  
  /* Ajuste de bordes con los nuevos colores */
  --border:    rgba(217, 91, 40, 0.25);
  --border2:   rgba(13, 148, 136, 0.25);
}
/* Ajustes específicos para el modo claro */
[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}
[data-theme="light"] .hero-glow {
  opacity: 0.4; /*Bajamos el brillo en modo claro */
}

/* Botón de tema */
.theme-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
  margin-left: 1rem;
}
.theme-btn:hover { color: var(--accent); transform: scale(1.1); }

@media (max-width: 680px) {
  .theme-btn { margin-left: auto; margin-right: 1rem; }
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
a     { color: inherit; text-decoration: none; }
img   { max-width: 100%; display: block; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* grid de fondo */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 147, 106, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 147, 106, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
}

main { flex: 1; position: relative; z-index: 1; }

/* ── UTILIDADES ──────────────────────────────────────────── */
.name-accent { color: var(--accent); }
.name-punct  { color: var(--accent); opacity: 0.65; }

.section       { padding: 5.5rem 1.5rem; position: relative; z-index: 1; }
.section-inner { max-width: 900px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.63rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
.section-label::before {
  content: ''; display: block;
  width: 24px; height: 1px;
  background: var(--accent); opacity: 0.55;
}

.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.divider {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  position: relative; z-index: 1;
}

/* ── BOTONES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer; border: none;
  transition: all 0.22s var(--ease);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(244, 147, 106, 0.28);
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px);
}

/* ── ETIQUETAS ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.18rem 0.65rem; border-radius: 99px;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(244, 147, 106, 0.09);
  color: var(--accent);
  border: 1px solid rgba(244, 147, 106, 0.2);
}
.tag-teal {
  background: rgba(125, 211, 192, 0.09);
  color: var(--accent2);
  border-color: rgba(125, 211, 192, 0.2);
}

/* ── ANIMACIONES ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes glow-pulse {
  0%, 100% { transform: translateY(-50%) scale(1);    opacity: 0.8; }
  50%       { transform: translateY(-50%) scale(1.12); opacity: 0.5; }
}
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── NAVEGACIÓN ──────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
#site-header.scrolled {
  background: var(--bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 980px; margin: 0 auto;
  height: var(--nav-h); padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: var(--f-mono); font-size: 0.95rem; font-weight: 600; }
.logo-ping  { color: var(--accent); }
.logo-sep   { color: var(--muted); }
.logo-berni { color: var(--white); }
.logo-tld   { color: var(--muted); font-weight: 300; }

.nav-links { display: flex; list-style: none; gap: 0.1rem; }
.nav-link {
  padding: 0.35rem 0.75rem;
  font-size: 0.71rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-radius: 5px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover  { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.active { color: var(--accent); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.22s var(--ease);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; flex-direction: column;
  padding: 1rem 1.5rem 1.4rem;
  background: rgba(11, 23, 33, 0.97);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.m-link {
  padding: 0.65rem 0.4rem; font-size: 0.85rem; color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s;
}
.m-link:hover, .m-link.active { color: var(--accent); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 3.5rem) 1.5rem 5rem;
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 147, 106, 0.09) 0%, transparent 65%);
  right: -12%; top: 50%; transform: translateY(-50%);
  pointer-events: none;
  animation: glow-pulse 7s ease-in-out infinite;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.28rem 0.8rem;
  background: rgba(125, 211, 192, 0.09);
  border: 1px solid rgba(125, 211, 192, 0.22);
  border-radius: 99px;
  font-size: 0.68rem; color: var(--accent2); letter-spacing: 0.07em;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.6s var(--ease) 0.1s both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  animation: blink-dot 2.2s ease-in-out infinite;
}
.hero-name {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(3.8rem, 9vw, 7rem);
  color: var(--white);
  line-height: 0.93; letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}
.hero-role {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 1.3rem;
  animation: fadeUp 0.6s var(--ease) 0.3s both;
}
.role-prompt { color: var(--accent); font-weight: 600; }
.role-sep    { color: var(--dim); }
.hero-lead {
  font-size: 0.86rem; color: var(--muted);
  line-height: 1.85; max-width: 420px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s var(--ease) 0.4s both;
}
.hero-ctas {
  display: flex; gap: 0.65rem; flex-wrap: wrap;
  animation: fadeUp 0.6s var(--ease) 0.5s both;
}

/* ── TERMINAL ────────────────────────────────────────────── */
.hero-terminal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(244, 147, 106, 0.06);
  animation: fadeUp 0.8s var(--ease) 0.35s both;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}
.dot              { width: 11px; height: 11px; border-radius: 50%; }
.dot-r            { background: #ff5f57; }
.dot-y            { background: #febc2e; }
.dot-g            { background: #28c840; }
.term-title       { flex: 1; text-align: center; font-size: 0.63rem; color: var(--muted); letter-spacing: 0.04em; }
.term-body        { padding: 1.2rem 1.4rem 1.5rem; font-size: 0.76rem; line-height: 1.95; }
.tl               { opacity: 0; }
.tl-gap           { line-height: 0.8; }
.tp               { color: var(--accent); }
.tc               { color: var(--white); }
.tok              { color: #7dd3c0; }
.ti               { color: var(--accent2); }
.tcur {
  display: inline-block; width: 7px; height: 0.85em;
  background: var(--accent); vertical-align: middle;
  animation: blink 1s step-end infinite;
}
.l1  { animation: fadeUp 0.3s var(--ease)  0.7s  both; }
.l2  { animation: fadeUp 0.3s var(--ease)  1.05s both; }
.l3  { animation: fadeUp 0.3s var(--ease)  1.2s  both; }
.l4  { animation: fadeUp 0.3s var(--ease)  1.5s  both; }
.l5  { animation: fadeUp 0.3s var(--ease)  1.85s both; }
.l6  { animation: fadeUp 0.3s var(--ease)  2.0s  both; }
.l7  { animation: fadeUp 0.3s var(--ease)  2.3s  both; }
.l8  { animation: fadeUp 0.3s var(--ease)  2.65s both; }
.l9  { animation: fadeUp 0.3s var(--ease)  2.8s  both; }
.l10 { animation: fadeUp 0.3s var(--ease)  3.1s  both; }
.l11 { animation: fadeUp 0.3s var(--ease)  3.45s both; }
.l12 { animation: fadeUp 0.3s var(--ease)  3.8s  both; }

/* ── ESPECIALIDADES ──────────────────────────────────────── */
.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem; margin-top: 2.4rem;
}
.spec-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.7rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.spec-card:hover         { border-color: rgba(244, 147, 106, 0.3); box-shadow: 0 8px 36px rgba(244, 147, 106, 0.07); }
.spec-card-teal:hover    { border-color: rgba(125, 211, 192, 0.3); box-shadow: 0 8px 36px rgba(125, 211, 192, 0.07); }
.spec-icon {
  width: 42px; height: 42px; border-radius: 9px;
  background: rgba(244, 147, 106, 0.1); border: 1px solid rgba(244, 147, 106, 0.2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.spec-icon-teal { background: rgba(125, 211, 192, 0.1); border-color: rgba(125, 211, 192, 0.2); color: var(--accent2); }
.spec-card h3   { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.spec-card p    { font-size: 0.79rem; color: var(--muted); line-height: 1.75; }
.spec-tags      { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.4rem; }

/* ── BLOG PREVIEW ────────────────────────────────────────── */
.blog-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  text-decoration: none;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.blog-card:hover {
  border-color: rgba(244, 147, 106, 0.28);
  box-shadow: 0 8px 36px rgba(244, 147, 106, 0.07);
  transform: translateY(-2px);
}
.blog-card-top    { display: flex; justify-content: space-between; align-items: center; }
.blog-read        { font-size: 0.62rem; color: var(--muted); }
.blog-card-title  { font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--white); line-height: 1.3; transition: color 0.2s; }
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt {
  font-size: 0.77rem; color: var(--muted); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-cta        { font-size: 0.72rem; color: var(--accent); margin-top: auto; display: flex; align-items: center; gap: 0.3rem; }
.cta-arrow       { display: inline-block; transition: transform 0.2s var(--ease); }
.blog-card:hover .cta-arrow { transform: translateX(4px); }

/* ── CONTACTO RÁPIDO ─────────────────────────────────────── */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cq-lead       { font-size: 0.84rem; color: var(--muted); line-height: 1.85; margin-top: 0.8rem; margin-bottom: 1.2rem; }
.cq-chips      { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-block; padding: 0.25rem 0.75rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 99px; font-size: 0.67rem; color: var(--text);
}
.chip-teal  { border-color: var(--border2); color: var(--accent2); }
.cq-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.cq-pill {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.78rem; color: var(--text);
  transition: all 0.22s var(--ease); text-decoration: none;
}
.cq-pill:hover { border-color: var(--accent); color: var(--accent); background: rgba(244, 147, 106, 0.04); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 1.4rem 1.5rem; }
.footer-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; flex-wrap: wrap; font-size: 0.68rem;
}
.footer-logo { color: var(--accent); font-weight: 600; }
.footer-sep  { color: var(--dim); }
.footer-text { color: var(--muted); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner     { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-terminal  { max-width: 480px; }
  .spec-grid      { grid-template-columns: 1fr; }
  .blog-grid      { grid-template-columns: 1fr; }
  .contact-inner  { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .burger    { display: flex; }
  .section   { padding: 4rem 1.2rem; }
  .hero      { padding-top: calc(var(--nav-h) + 2.5rem); min-height: auto; }
}

/* ══════════════════════════════════════════════════════════
   SOBRE MÍ
══════════════════════════════════════════════════════════ */
.page-header {
  padding: calc(var(--nav-h) + 5rem) 1.5rem 4rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.ph-sub { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.8; }

/* Grid foto + texto */
.about-grid {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 4rem; align-items: start;
}
.about-photo { display: flex; flex-direction: column; gap: 1rem; }
.photo-img {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  aspect-ratio: 1; object-fit: cover; display: block;
}
.photo-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem;
}
.pc-item { padding: 0.5rem 0; border-bottom: 1px solid var(--dim); }
.pc-item:last-child { border-bottom: none; }
.pc-label {
  display: block; font-size: 0.6rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem;
}
.pc-value      { font-size: 0.77rem; color: var(--text); }
.pc-value-teal { font-size: 0.77rem; color: var(--accent2); }

/* Texto personal */
.about-text { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 0.3rem; }
.about-text h2 { font-family: var(--f-display); font-size: 1.9rem; color: var(--white); font-weight: 700; }
.about-text p  { font-size: 0.85rem; color: var(--muted); line-height: 1.85; }

.lang-box {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  margin-top: 0.4rem; padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
.lang-entry       { display: flex; flex-direction: column; gap: 0.1rem; }
.lang-entry-name  { font-size: 0.8rem; color: var(--white); font-weight: 600; }
.lang-entry-level { font-size: 0.63rem; color: var(--muted); }
.lang-dot         { color: var(--dim); }

/* Timeline */
.timeline-wrap {
  position: relative; padding-left: 110px; margin-top: 2.5rem;
}
.timeline-wrap::before {
  content: ''; position: absolute; left: 86px; top: 14px; bottom: 14px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--border) 8%, var(--border) 92%, transparent);
}
.tl-entry { position: relative; margin-bottom: 1.8rem; }
.tl-entry:last-child { margin-bottom: 0; }
.tl-yr {
  position: absolute; left: -110px; width: 76px; text-align: right; top: 10px;
  font-size: 0.7rem; color: var(--muted); line-height: 1.4;
}
.tl-yr-now  { color: var(--accent); font-weight: 600; }
.tl-node {
  position: absolute; left: -24px; top: 12px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border); z-index: 1;
}
.tl-node-active {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 12px rgba(244,147,106,0.45);
}
.tl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.22s var(--ease);
}
.tl-card:hover { border-color: rgba(244,147,106,0.28); }
.tl-card h3 { font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-top: 0.4rem; }
.tl-card p  { font-size: 0.79rem; color: var(--muted); line-height: 1.7; }

/* Skills */
.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.4rem 3.5rem; margin-top: 2.4rem;
}
.skill-item   { display: flex; flex-direction: column; gap: 0.45rem; }
.skill-header { display: flex; justify-content: space-between; align-items: baseline; }
.skill-name   { font-size: 0.82rem; color: var(--text); }
.skill-cat    { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.skill-bar    { height: 3px; background: var(--dim); border-radius: 99px; overflow: hidden; }
.skill-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.4,0,0.2,1);
}
.skill-fill.animated { width: var(--target-w); }

/* Responsive sobre-mi */
@media (max-width: 760px) {
  .about-grid  { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .timeline-wrap { padding-left: 80px; }
  .timeline-wrap::before { left: 56px; }
  .tl-yr  { width: 50px; font-size: 0.65rem; left: -80px; }
  .tl-node{ left: -26px; }
}

/* ── LO QUE BUSCO (sobre-mi) ─────────────────────────────── */
.busco-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem; margin-top: 2rem;
}
.busco-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  transition: border-color 0.22s var(--ease);
}
.busco-item:hover { border-color: rgba(244,147,106,0.28); }
.busco-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px;
  background: rgba(244,147,106,0.1); border: 1px solid rgba(244,147,106,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.busco-icon-teal {
  background: rgba(125,211,192,0.1); border-color: rgba(125,211,192,0.2); color: var(--accent2);
}
.busco-item h3 { font-family: var(--f-display); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 0.3rem; }
.busco-item p  { font-size: 0.78rem; color: var(--muted); line-height: 1.65; }

@media (max-width: 600px) {
  .busco-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   CV
══════════════════════════════════════════════════════════ */
.cv-download-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 1.8rem;
}
.cv-download-label { font-size: 0.78rem; color: var(--muted); }
.cv-download-label strong { color: var(--text); }

.cv-block { display: flex; flex-direction: column; gap: 2.8rem; margin-top: 0; }

.cv-section-head {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-display); font-size: 1.25rem;
  font-weight: 700; color: var(--white);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.2rem;
}
.cv-section-head svg { color: var(--accent); flex-shrink: 0; }

/* Experiencia */
.exp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: border-color 0.22s var(--ease);
}
.exp-card:hover { border-color: rgba(244,147,106,0.22); }
.exp-card + .exp-card { margin-top: 0.9rem; }

.exp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.exp-title   { font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; color: var(--white); }
.exp-meta    { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.25rem; font-size: 0.73rem; }
.exp-company { color: var(--accent); font-weight: 600; }
.exp-period  { color: var(--muted); }
.exp-loc     { color: var(--muted); }
.exp-sep     { color: var(--dim); }

.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.exp-bullets li {
  font-size: 0.81rem; color: var(--muted); line-height: 1.7;
  padding-left: 1rem; position: relative;
}
.exp-bullets li::before { content: '–'; position: absolute; left: 0; color: var(--accent); opacity: 0.5; }

.exp-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; }

/* Educación */
.edu-list { display: flex; flex-direction: column; gap: 0.8rem; }
.edu-item {
  display: flex; align-items: flex-start; gap: 1.2rem;
  padding: 1rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.edu-year  { font-size: 0.72rem; color: var(--accent); font-weight: 600; white-space: nowrap; padding-top: 0.1rem; min-width: 36px; }
.edu-title { font-size: 0.88rem; color: var(--white); font-weight: 600; margin-bottom: 0.15rem; }
.edu-place { font-size: 0.75rem; color: var(--muted); }

/* Certificaciones */
.cert-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.cert-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cert-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent);
}
.cert-dot-teal { background: var(--accent2); }
.cert-name  { font-size: 0.82rem; color: var(--white); font-weight: 600; }
.cert-desc  { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }

/* Tabla de habilidades */
.skills-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.st-row {
  display: grid; grid-template-columns: 200px 1fr;
  padding: 0.7rem 1.2rem; font-size: 0.81rem;
  border-bottom: 1px solid var(--dim);
}
.st-row:last-child { border-bottom: none; }
.st-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.st-cat { color: var(--accent); font-weight: 600; }
.st-val { color: var(--muted); }

/* Idiomas CV */
.lang-cv { display: flex; flex-direction: column; gap: 0.6rem; max-width: 440px; }
.lang-cv-row { display: flex; align-items: center; gap: 1.2rem; }
.lang-cv-name  { font-size: 0.82rem; color: var(--white); font-weight: 600; width: 120px; flex-shrink: 0; }
.lang-cv-level { font-size: 0.72rem; color: var(--muted); width: 160px; flex-shrink: 0; }
.lang-cv-bar   { flex: 1; height: 2px; background: var(--dim); border-radius: 99px; overflow: hidden; }
.lang-cv-fill  { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* Info adicional CV */
.info-cv { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.info-cv-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--dim);
  font-size: 0.81rem;
}
.info-cv-row:last-child { border-bottom: none; }
.info-cv-row:nth-child(even) { background: rgba(255,255,255,0.015); }
.info-cv-label { color: var(--accent); font-weight: 600; width: 120px; flex-shrink: 0; }
.info-cv-val   { color: var(--muted); line-height: 1.6; }

@media (max-width: 680px) {
  .cert-list { grid-template-columns: 1fr; }
  .st-row    { grid-template-columns: 1fr; gap: 0.1rem; }
  .st-cat    { font-size: 0.68rem; }
  .lang-cv-level { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .timeline-wrap { padding-left: 80px; }
  .timeline-wrap::before { left: 56px; }
  .tl-yr  { width: 50px; font-size: 0.65rem; left: -80px; }
  .tl-node{ left: -26px; }
}

/* ══════════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 4rem; align-items: start;
}

/* Cabecera de columna */
.contact-col-head {
  margin-bottom: 1.4rem;
}
.contact-col-head h2 {
  font-family: var(--f-display); font-size: 1.2rem;
  font-weight: 700; color: var(--white); margin-top: 0.4rem;
}

/* Columna izquierda — info */
.contact-info { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-info-intro {
  font-size: 0.84rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 0.3rem;
}

/* Tarjetas clicables */
.cinfo-item {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.cinfo-item:hover {
  border-color: rgba(244,147,106,0.32);
  box-shadow: 0 4px 20px rgba(244,147,106,0.06);
}
.cinfo-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px;
  background: rgba(244,147,106,0.1); border: 1px solid rgba(244,147,106,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.cinfo-icon-teal {
  background: rgba(125,211,192,0.1); border-color: rgba(125,211,192,0.2); color: var(--accent2);
}
.cinfo-label {
  display: block; font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.12rem;
}
.cinfo-value { font-size: 0.82rem; color: var(--text); }

/* Tarjeta de estado — no clicable, dos filas */
.cinfo-status {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.cinfo-status-row {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--dim);
}
.cinfo-status-row:last-child { border-bottom: none; }
.cinfo-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--muted);
}
.cinfo-status-dot-on {
  background: var(--accent2);
  box-shadow: 0 0 6px rgba(125,211,192,0.5);
  animation: blink-dot 2.5s ease-in-out infinite;
}
.cinfo-status-text { font-size: 0.8rem; color: var(--muted); }
.cinfo-status-text strong { color: var(--text); font-weight: 600; }

/* Columna derecha — formulario */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group   { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.63rem; color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.form-input, .form-textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; padding: 0.75rem 1rem;
  font-family: var(--f-mono); font-size: 0.83rem; color: var(--white);
  width: 100%; outline: none;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.form-input:focus, .form-textarea:focus {
  border-color: rgba(244,147,106,0.5);
  box-shadow: 0 0 0 3px rgba(244,147,106,0.07);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-textarea { resize: vertical; min-height: 148px; line-height: 1.75; }

.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-top: 0.3rem; flex-wrap: wrap;
}
.form-note { font-size: 0.68rem; color: var(--muted); }

/* Mensajes estado */
.form-msg {
  display: none; padding: 0.85rem 1.1rem;
  border-radius: 7px; font-size: 0.8rem; margin-top: 0.2rem;
}
.form-msg.visible { display: block; }
.form-msg-ok  { background: rgba(125,211,192,0.08); border: 1px solid rgba(125,211,192,0.22); color: var(--accent2); }
.form-msg-err { background: rgba(244,147,106,0.08); border: 1px solid rgba(244,147,106,0.22); color: var(--accent); }

/* Botón enviando */
.btn-sending { opacity: 0.7; cursor: not-allowed; }

/* Nota cierre */
.contact-closing {
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--dim);
  font-size: 0.82rem; color: var(--muted); line-height: 1.8;
  text-align: center;
}
.contact-closing a { color: var(--accent); text-decoration: none; }
.contact-closing a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row     { grid-template-columns: 1fr; }
  .form-footer  { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════
   ARTÍCULO DEL BLOG (MARKDOWN)
══════════════════════════════════════════════════════════ */
.post-container {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 4rem;
}
.post-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 1.5rem;
  font-family: var(--f-mono);
}
.post-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--white);
  line-height: 1.1; margin-bottom: 2rem;
}

/* CSS para el contenido inyectado por <Content /> */
.post-content {
  max-width: 760px; /* Un poco más estrecho para facilitar la lectura */
  font-family: system-ui, -apple-system, sans-serif; /* Rompemos la fuente mono para legibilidad */
  font-size: 1.05rem; line-height: 1.8;
  color: var(--text);
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content h2, .post-content h3 {
  font-family: var(--f-display); color: var(--white);
  margin-top: 3rem; margin-bottom: 1rem; font-weight: 700;
}
.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.4rem; }
.post-content ul, .post-content ol {
  margin-bottom: 1.5rem; padding-left: 1.5rem;
}
.post-content li {
  margin-bottom: 0.5rem;
}
.post-content strong {
  color: var(--accent2); /* Resalta las negritas en color mint */
  font-weight: 600;
}
.post-content code {
  background: var(--bg-alt); padding: 0.2rem 0.4rem;
  border-radius: 4px; font-family: var(--f-mono);
  font-size: 0.85em; color: var(--accent);
  border: 1px solid var(--dim);
}

/* --- Añadidos extra de seguridad para Markdown --- */
.post-content a {
  color: var(--accent); text-decoration: underline; 
  text-decoration-color: var(--border); text-underline-offset: 4px; 
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.post-content a:hover {
  color: var(--accent-d); text-decoration-color: var(--accent-d);
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem; margin-left: 0; margin-bottom: 1.5rem;
  color: var(--muted); font-style: italic;
}