@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --bg:          #0d1117;
  --bg-card:     #161b22;
  --bg-card-2:   #1c2128;
  --border:      #30363d;
  --border-dim:  #21262d;
  --accent:      #f5a524;
  --accent-dim:  #c47e1a;
  --accent-soft: rgba(245, 165, 36, 0.12);
  --text:        #e6edf3;
  --text-dim:    #8b949e;
  --text-muted:  #6e7681;
  --heading:     'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', monospace;
  --sans:        'Inter', system-ui, sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(245,165,36,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── TIPOGRAFÍA ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }
.mono { font-family: var(--mono); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { position: relative; z-index: 1; }

/* ─── ESTRELLAS ──────────────────────────────────────────── */
/* #stars-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; } */
#stars-canvas { display: none; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero-photo {
  width: 420px;
  height: 470px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--accent);
}
.hero-photo-placeholder {
  width: 210px; height: 230px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--bg-card); border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}

/* Nombre — heading profesional */
.hero-name {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-alias {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* Tagline con cursor parpadeante */
.hero-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 440px;
  min-height: 1.4em;
}
.cursor {
  display: inline-block;
  width: 9px; height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-socials {
  display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem;
}
.btn-social {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-card); color: var(--text);
  font-size: 0.82rem; font-family: var(--sans);
  transition: border-color 0.2s, background 0.2s, color 0.2s; cursor: pointer;
}
.btn-social:hover {
  border-color: var(--accent-dim); background: var(--bg-card-2); color: var(--accent); opacity: 1;
}

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--text-muted); font-size: 0.7rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ─── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  font-family: var(--heading); font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--text-muted); text-align: center; padding: 4rem 0 3rem; text-transform: uppercase;
}
.section-label span {
  display: inline-block; padding: 0.3rem 1rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

/* section-label compacto para títulos dentro de columnas */
.bg-skills .section-label,
.bg-two-col .section-label {
  padding: 1.5rem 0 1.25rem;
}


/* ─── EXPLORAR + SOBRE MÍ ────────────────────────────────── */
#explore-about { padding-bottom: 5rem; }

.explore-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
  gap: 2.5rem;
  align-items: start;
}

.col-label {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}

/* — Explore cards — */
.explore-cards { display: flex; flex-direction: column; gap: 0.6rem; }

.explore-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.explore-card:hover {
  border-color: var(--border); background: var(--bg-card-2);
  transform: translateX(4px); opacity: 1;
  box-shadow: var(--shadow);
}
.explore-card:hover .explore-card-icon { color: var(--accent); }
.explore-card:hover .explore-card-arrow { color: var(--accent); opacity: 1; }

.explore-card-icon {
  color: var(--text-muted); flex-shrink: 0;
  transition: color 0.2s;
  display: flex; align-items: center;
}
.explore-card-body { flex: 1; min-width: 0; }
.explore-card-label {
  font-family: var(--heading); font-size: 0.82rem; font-weight: 700;
  color: #fff; margin-bottom: 0.15rem;
}
.explore-card-desc { font-size: 0.78rem; color: var(--text-dim); }
.explore-card-arrow { color: var(--text-muted); opacity: 0.4; flex-shrink: 0; transition: color 0.2s, opacity 0.2s; }

/* — About card — */
.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.about-text { font-size: 0.88rem; color: var(--text-dim); line-height: 1.75; }
.about-text strong { color: var(--accent); font-weight: 600; }
.about-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.about-chip {
  font-family: var(--mono); font-size: 0.68rem;
  padding: 0.2rem 0.65rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--border);
  color: var(--accent); letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}
.about-chip:hover { border-color: var(--accent-dim); color: var(--accent); }

/* — Responsive explore-about — */
@media (max-width: 768px) {
  .explore-about-grid { grid-template-columns: 1fr; }
}

/* ─── TRAYECTORIA (edu + exp + cv) ──────────────────────── */
#background { padding-bottom: 5rem; }

.background-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.bg-col { display: flex; flex-direction: column; gap: 1rem; }
.bg-col-cv { min-width: 220px; }

@media (max-width: 900px) {
  .background-grid { grid-template-columns: 1fr; }
  .bg-col-cv { min-width: unset; }
}

/* ─── PROYECTOS ──────────────────────────────────────────── */
#projects { padding-bottom: 5rem; }
#projects .container { display: flex; flex-direction: column; gap: 1.5rem; }

.category-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s; user-select: none;
}
.category-header:hover { border-color: var(--border); background: var(--bg-card-2); }
.category-header.open { border-bottom-left-radius:0; border-bottom-right-radius:0; border-color: var(--border); }
.cat-left { display: flex; align-items: center; gap: 0.75rem; font-family: var(--heading); font-size: 0.9rem; color: var(--text); }
.cat-count {
  font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim);
  background: var(--bg-card-2); padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid var(--border);
}
.cat-chevron { color: var(--text-muted); font-size: 1rem; transition: transform 0.3s; }
.category-header.open .cat-chevron { transform: rotate(180deg); }

.category-body {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden; background: var(--border);
}
.category-body.open { display: grid; }

.project-card {
  background: var(--bg-card); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: background 0.2s;
}
.project-card:hover { background: var(--bg-card-2); }

.project-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-done     { color: var(--accent); }
.status-done     .status-dot { background: var(--accent); }
.status-progress { color: var(--accent); }
.status-progress .status-dot { background: var(--accent); }
.status-planned  { color: var(--text-muted); }
.status-planned  .status-dot { background: var(--text-muted); }

.project-title { font-family: var(--heading); font-size: 1.05rem; font-weight: 700; color: #fff; }
.project-desc  { font-size: 0.85rem; color: var(--text-dim); flex: 1; }
.project-tags  { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim);
  background: var(--bg-card-2); border: 1px solid var(--border);
  padding: 0.15rem 0.55rem; border-radius: 999px;
}
.project-repo {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin-top: 0.25rem;
}

/* ─── SERVICIOS (pendiente) ──────────────────────────────── */
#services { padding-bottom: 5rem; }
#services .container { display: flex; flex-direction: column; gap: 1.5rem; }
.services-coming {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center; color: var(--text-muted);
  font-size: 0.85rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.services-coming .coming-icon { font-size: 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { border-color: var(--border); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { font-size: 1.75rem; }
.service-title { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: #fff; }
.service-desc  { font-size: 0.85rem; color: var(--text-dim); }

.services-cta {
  display: flex; justify-content: center; margin-top: 1.5rem;
}

.services-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0d1117;
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.services-cta-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ─── CV & HABILIDADES ───────────────────────────────────── */
#skills { padding-bottom: 5rem; }
#skills .container { display: flex; flex-direction: column; gap: 2rem; }

.cv-card {
  text-align: center; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem 2rem; background: var(--bg-card);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.cv-icon { font-size: 2.5rem; line-height: 1; }
.cv-title { font-family: var(--heading); font-size: 1.1rem; font-weight: 700; color: #fff; }
.cv-sub { font-size: 0.85rem; color: var(--text-dim); }
.btn-cv {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.75rem; border: 1px solid var(--accent-dim); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--heading); font-size: 0.85rem; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-cv:hover { background: rgba(245,165,36,0.2); box-shadow: var(--shadow); opacity:1; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.skill-card:hover { border-color: var(--border); box-shadow: var(--shadow); }
.skill-cat { font-family: var(--heading); font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.skill-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.skill-list li { font-size: 0.83rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem; }
.skill-list li::before { content:'›'; color: var(--accent); font-size:1rem; line-height:1; flex-shrink:0; }

/* ─── TRAYECTORIA — dos columnas ────────────────────────── */
.bg-skills {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

/* ── Highlight cards grid ── */
.bg-chips-wrap {
  /* layout manejado por .hl-two-col dentro */
}

.hl-card {
  --hl-accent: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
/* barra lateral de color */
.hl-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--hl-accent);
  opacity: 0.8;
  transition: opacity 0.25s;
}
.hl-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.hl-card:hover::before { opacity: 1; }

.hl-header {
  display: flex; align-items: center; gap: 0.6rem;
}
.hl-icon {
  font-size: 1.15rem; line-height: 1; flex-shrink: 0;
}
.hl-label {
  font-family: var(--heading); font-size: 0.78rem; font-weight: 700;
  color: #fff; letter-spacing: 0.02em;
}

.hl-list {
  list-style: none; display: flex; flex-direction: column; gap: 0.35rem;
}
.hl-item {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: 0.78rem; color: var(--text-dim); line-height: 1.4;
}
.hl-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
  background: var(--hl-accent);
  opacity: 0.7;
  margin-top: 0.3rem;
  transition: opacity 0.2s;
}
.hl-card:hover .hl-dot { opacity: 1; }


/* ── Dos columnas 1:1 habilidades / certificaciones ── */
.hl-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.hl-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hl-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .hl-two-col { grid-template-columns: 1fr; }
}

/* ── Card única habilidades / certificaciones ── */
.hl-single-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.hl-single-title {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-dim);
}

.hl-single-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hl-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.hl-arrow {
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}


.bg-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .bg-two-col { grid-template-columns: 1fr; }
}

/* ─── EDUCACIÓN ──────────────────────────────────────────── */
#education { padding-bottom: 5rem; }
#education .container { display: flex; flex-direction: column; gap: 1rem; }
.edu-card {
  display: grid; grid-template-columns: 3px 1fr;
  gap: 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card); transition: border-color 0.2s, box-shadow 0.2s;
}
.edu-card:hover { border-color: var(--border); box-shadow: var(--shadow); }
.edu-bar { background: var(--border); width: 3px; }
.edu-bar.current { background: var(--accent); }
.edu-content { padding: 1.25rem 1.25rem 1.25rem 0; display: flex; flex-direction: column; gap: 0.3rem; }
.edu-degree { font-family: var(--heading); font-size: 0.95rem; font-weight: 700; color: #fff; }
.edu-degree a { text-decoration: none; color: inherit; }
.edu-degree a:hover { text-decoration: underline; }
.edu-institution { font-size: 0.8rem; color: var(--accent); }
.edu-institution a { text-decoration: none; color: inherit; }
.edu-institution a:hover { text-decoration: underline; }
.edu-period { font-size: 0.75rem; color: var(--text-muted); }

/* ─── EXPERIENCIA ────────────────────────────────────────── */
#experience { padding-bottom: 5rem; }
#experience .container { display: flex; flex-direction: column; gap: 1rem; }
.section-sub {
  font-family: var(--heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 3rem 0 2.5rem;
  display: block;
  width: 100%;
}
.section-sub::after {
  content: attr(data-text);
}
/* Wrapper visual: línea arriba y abajo como .section-label */
.section-sub-inner {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.exp-card {
  display: grid; grid-template-columns: 3px 1fr;
  gap: 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card); transition: border-color 0.2s, box-shadow 0.2s;
}
.exp-card:hover { border-color: var(--border); box-shadow: var(--shadow); }
.exp-bar { background: var(--border); width: 3px; }
.exp-bar.current { background: linear-gradient(to bottom, var(--accent), var(--accent-dim)); }
.exp-content { padding: 1.5rem 1.5rem 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.exp-role { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: #fff; }
.exp-period { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.exp-company { font-size: 0.82rem; color: var(--accent); }
.exp-company a { text-decoration: none; color: inherit; }
.exp-company a:hover { text-decoration: underline; }
.exp-desc { font-size: 0.85rem; color: var(--text-dim); }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 3rem 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem; position: relative; z-index: 1;
}
.footer-social { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-social a {
  font-size: 0.8rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 0.4rem; transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent); opacity: 1; }
.footer-emails { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-emails a { font-size: 0.75rem; color: var(--text-muted); }
.footer-copy { font-size: 0.72rem; color: var(--text-muted); }
.footer-copy span { color: var(--accent); }

/* ─── BLOG PREVIEW ───────────────────────────────────────── */
#blog { padding-bottom: 5rem; }
#blog .container { display: flex; flex-direction: column; gap: 1.5rem; }

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.blog-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
  text-decoration: none;
}
.blog-preview-card:hover {
  border-color: var(--border);
  background: var(--bg-card-2);
  transform: translateY(-4px);
  opacity: 1;
  box-shadow: var(--shadow);
}

.blog-preview-meta {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.blog-preview-cat {
  font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: .1em;
  padding: .15rem .6rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--border); color: var(--accent);
}
.blog-preview-date { font-size: 0.7rem; color: var(--text-muted); }

.blog-preview-title { font-family: var(--heading); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.blog-preview-excerpt { font-size: 0.83rem; color: var(--text-dim); line-height: 1.6; }

.blog-preview-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }

.blog-cta { display: flex; justify-content: center; padding-top: 0.5rem; }

.btn-blog-all {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  border: 1px solid var(--accent-dim); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--heading); font-size: 0.82rem;
  transition: background .2s, box-shadow .2s;
}
.btn-blog-all:hover {
  background: rgba(245,165,36,0.2);
  box-shadow: var(--shadow);
  opacity: 1;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .explore-about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bg-two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .hl-two-col { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 640px) {
  .skills-grid, .category-body, .services-grid, .blog-preview-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 1.8rem; letter-spacing: 0.08em; }

  /* Container */
  .container { padding: 0 1rem; }

  /* Hero */
  #hero { padding: 4.5rem 1.25rem 3rem; gap: 1rem; }
  .hero-tagline { font-size: 0.8rem; }
  .btn-social { padding: 0.45rem 0.9rem; font-size: 0.78rem; }

  /* Section labels */
  .section-label { padding: 2.5rem 0 2rem; }

  /* CV card */
  .cv-card { padding: 1.75rem 1.25rem; }

  /* Edu / exp cards */
  .edu-content { padding: 1rem 1rem 1rem 0; }

  /* Footer */
  footer { padding: 2rem 1rem; }
}

/* ─── FADE-IN AL SCROLL ──────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

#nav-extras {
  position: fixed;
  top: 0; right: 2.5rem;
  height: 72px;
  display: flex; align-items: center; gap: 0.6rem;
  z-index: 1001;
}
.nav-socials { display: flex; gap: 0.5rem; }
.nav-socials .btn-social {
  font-size: 0;
  width: 34px; height: 34px;
  padding: 0;
  gap: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.nav-socials .btn-social svg { width: 15px; height: 15px; }
.nav-cv-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.95rem;
  background: var(--accent); color: #161b22;
  border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
}
@media (max-width: 640px) {
  #nav-extras { right: 1rem; gap: 0.35rem; }
}
.btn-volver {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-dim); font-size: 0.85rem;
  margin: 0 2rem 1.5rem;
}
.btn-volver:hover { color: var(--accent); }
#trayectoria-edu, #trayectoria-exp { padding-top: 6.5rem; }

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.hero-text { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }
.hero-name {
  font-family: var(--heading);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  text-transform: none;
  letter-spacing: 0;
}
.hero-tagline { font-size: 1.1rem; color: var(--accent); min-height: 1.6em; }
.hero-about {
  font-size: 1rem; color: var(--text-dim); line-height: 1.8;
  max-width: 54ch; margin-top: 0.5rem;
}
.hero-about strong { color: var(--accent); font-weight: 600; }
.hero-cv-group { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.75rem; }
.btn-cv {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}
.btn-cv-solid { background: var(--accent); color: #161b22; }
.btn-cv-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent-dim);
}
.btn-cv-outline:hover { background: var(--accent-soft); opacity: 1; }
.hero-photo-wrap { display: flex; justify-content: center; position: relative; z-index: 2; }
.hero-shape {
  position: absolute; z-index: 1; opacity: 0.5;
}
.hero-shape-1 {
  width: 130px; height: 130px; top: 6%; right: 10%;
  border: 2px solid var(--border); border-radius: 18px; transform: rotate(18deg);
}
.hero-shape-2 {
  width: 80px; height: 80px; bottom: 8%; left: 5%;
  border: 2px solid var(--accent-dim); border-radius: 50%;
}
.hero-shape-3 {
  width: 46px; height: 46px; top: 12%; left: 4%;
  border: 2px solid var(--border); border-radius: 50%; opacity: 0.4;
}
.hero-shape-4 {
  width: 54px; height: 54px; bottom: 22%; right: 4%;
  border: 2px solid var(--accent-dim); border-radius: 10px; transform: rotate(45deg); opacity: 0.4;
}
.hero-shape-5 {
  width: 340px; height: 340px; top: 14%; right: 16%;
  border: 1.5px solid var(--border); border-radius: 50%; opacity: 0.22;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { align-items: center; }
  .hero-photo, .hero-photo-placeholder { width: 240px !important; height: 270px !important; }
  .hero-cv-group { justify-content: center; }
}