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

:root {
  --blue:    #1a3a6b;
  --blue2:   #1e4fa3;
  --celeste: #3b9fe8;
  --sky:     #7dc8f5;
  --white:   #f5f8ff;
  --offwhite:#eef3fb;
  --dark:    #0d1b35;
  --gray:    #8fa3c0;
  --border:  #d0ddf0;
  --surface: #ffffff;
  --text:    #1a2d4a;
  --muted:   #6a85a8;
  --sans:    'Space Grotesk', sans-serif;
  --display: 'Syne', sans-serif;
  --mono:    'JetBrains Mono', monospace;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(26,58,107,.10);
  --shadow-lg: 0 12px 48px rgba(26,58,107,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--offwhite);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ──────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--celeste));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; color: white; font-size: 16px;
}
.nav-name {
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--blue);
  line-height: 1.1;
}
.nav-name span { display: block; font-weight: 400; font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links a {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--muted); transition: all .2s;
}
.nav-links a:hover { color: var(--blue); background: var(--offwhite); }
.nav-links a.active { color: var(--blue); background: rgba(59,159,232,.1); }
.nav-links .nav-cta {
  background: var(--blue); color: white !important;
  padding: 7px 16px; border-radius: 8px;
  transition: background .2s;
}
.nav-links .nav-cta:hover { background: var(--blue2) !important; }
.nav-links .nav-disabled {
  color: var(--gray) !important; cursor: not-allowed;
  position: relative;
}
.nav-links .nav-disabled::after {
  content: 'Próximamente';
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: white; font-size: 10px; white-space: nowrap;
  padding: 3px 8px; border-radius: 4px; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.nav-links .nav-disabled:hover::after { opacity: 1; }

/* ── HERO / PAGE HEADER ───────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 60%, var(--blue2) 100%);
  color: white;
  padding: 40px 5vw;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b9fe8' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .tag {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
  letter-spacing: .5px;
}
.page-hero h1 {
  font-family: var(--display); font-size: clamp(32px,5vw,52px); font-weight: 800;
  line-height: 1.1; margin-bottom: 16px;
}
.page-hero p {
  font-size: 16px; color: rgba(255,255,255,.75); max-width: 560px; line-height: 1.7;
}
.hero-action-figure {
  position: absolute; right: 5vw; bottom: 0;
  height: 92%; max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.35));
  animation: floatFig 4s ease-in-out infinite;
  pointer-events: none;
  transition: transform .3s ease;
}
.hero-action-figure:hover { transform: translateY(-10px) scale(1.04); }
@keyframes floatFig {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@media (max-width: 768px) {
  .hero-action-figure { height: 50%; max-height: 180px; right: 2vw; opacity: .35; }
}

/* ── CONTENT AREA ─────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 64px 0; }

/* ── CARDS ────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: all .25s;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--celeste); }

.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,159,232,.15), rgba(26,58,107,.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.card h3 { font-size: 15px; font-weight: 600; color: var(--blue); }
.card p  { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--celeste);
  font-family: var(--mono); transition: gap .2s;
}
.card:hover .card-link { gap: 10px; }

/* ── BADGE ────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 10px; font-family: var(--mono);
  padding: 2px 8px; border-radius: 4px; font-weight: 500;
}
.badge-blue   { background: rgba(59,159,232,.12); color: var(--celeste); }
.badge-navy   { background: rgba(26,58,107,.1);   color: var(--blue2); }
.badge-gray   { background: var(--offwhite); color: var(--muted); border: 1px solid var(--border); }

/* ── SECTION TITLE ────────────────────────────── */
.section-title { margin-bottom: 32px; }
.section-title h2 {
  font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--blue);
}
.section-title p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.section-line {
  width: 40px; height: 3px; border-radius: 2px; margin-top: 10px;
  background: linear-gradient(90deg, var(--celeste), var(--blue));
}

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,.6);
  padding: 40px 5vw 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-brand { font-family: var(--display); font-size: 13px; color: white; font-weight: 600; }
.footer-brand span { display: block; font-family: var(--sans); font-weight: 300; font-size: 11px; color: rgba(255,255,255,.45); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; font-size: 12px; }
.footer-links a:hover { color: var(--sky); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.3); text-align: right; }

/* ── COMING SOON BANNER ───────────────────────── */
.coming-soon-banner {
  background: linear-gradient(90deg, rgba(59,159,232,.1), rgba(26,58,107,.05));
  border: 1px solid rgba(59,159,232,.2); border-radius: var(--radius);
  padding: 20px 28px; display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.coming-soon-banner .icon { font-size: 28px; }
.coming-soon-banner strong { display: block; font-size: 14px; color: var(--blue); }
.coming-soon-banner span { font-size: 12px; color: var(--muted); }

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-hero { padding: 48px 5vw; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}

/* ── FOOTER SOCIAL ─────────────────────────── */
.footer-social { display: flex; gap: 10px; align-items: center; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.social-btn:hover { transform: translateY(-2px); color: white; }
.social-btn.linkedin:hover  { background: #0077b5; border-color: #0077b5; }
.social-btn.instagram:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e6683c; }

.social-btn.email:hover { background: var(--celeste); border-color: var(--celeste); color: white; }


/* --- STYLES FROM index.html --- */
/* Hero especial para inicio */
  .home-hero {
    min-height: 26vh;
    max-height: 320px;
    background: linear-gradient(140deg, var(--dark) 0%, var(--blue) 55%, var(--blue2) 80%, #1a7fc4 100%);
    display: flex; align-items: flex-start;
    padding: 20px 5vw;
    position: relative; overflow: hidden;
  }
  .home-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 80% 20%, rgba(59,159,232,.2) 0%, transparent 45%),
      radial-gradient(circle at 10% 80%, rgba(125,200,245,.12) 0%, transparent 35%);
  }
  .home-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .hero-content {
    position: relative; z-index: 1;
    max-width: 680px;
  }
  .hero-eyebrow {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
  }
  .hero-eyebrow .pill {
    font-family: var(--mono); font-size: 9px; letter-spacing: .5px;
    padding: 4px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  }
  .hero-eyebrow .pill.active-pill {
    background: var(--celeste); border-color: var(--celeste); color: white;
  }
  .home-hero h1 {
    font-family: var(--display); font-weight: 800; color: white;
    font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin-bottom: 10px;
    white-space: nowrap;
  }
  .home-hero h1 em {
    font-style: normal; color: var(--sky);
  }
  .home-hero .lead {
    font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.55; margin-bottom: 18px;
    max-width: 720px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

  @media (max-width: 900px) {
    .home-hero h1,
    .home-hero .lead {
      white-space: normal;
    }
  }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600;
    transition: all .2s; cursor: pointer; border: none;
  }
  .btn-primary {
    background: white; color: var(--blue);
  }
  .btn-primary:hover { background: var(--offwhite); transform: translateY(-2px); }
  .btn-ghost {
    background: rgba(255,255,255,.1); color: white;
    border: 1px solid rgba(255,255,255,.25);
  }
  .btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

  .about-social {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
  }
  .about-social-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--border); transition: all .2s; color: var(--text);
    background: white;
  }
  .about-social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .about-social-btn.linkedin:hover  { background: #0077b5; color: white; border-color: #0077b5; }
  .about-social-btn.instagram:hover { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); color: white; border-color: transparent; }

  .about-cta-banner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--dark), var(--blue));
    border-radius: 20px; padding: 32px 40px; color: white;
    box-shadow: var(--shadow-lg);
  }
  .about-cta-left { display: flex; align-items: center; gap: 20px; }
  .about-cta-photo {
    width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--celeste); flex-shrink: 0;
  }
  .about-cta-left h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
  .about-cta-left p  { font-size: 13px; color: rgba(255,255,255,.65); }

  /* ── FOTO PERFIL ──────────────────────────── */
  .about-photo-row {
    display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px;
  }
  .about-photo {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--celeste);
    box-shadow: 0 4px 20px rgba(59,159,232,.25);
    flex-shrink: 0;
  }
  .about-photo-row h2 {
    font-family: var(--display); font-size: 28px; font-weight: 700;
    color: var(--blue); margin-bottom: 12px; margin-top: 8px;
  }

  /* ── EXPERIENCIA ──────────────────────────── */
  .exp-list { display: flex; flex-direction: column; gap: 0; position: relative; }
  .exp-list::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
    width: 2px; background: var(--border);
  }
  .exp-item {
    display: flex; gap: 20px; padding-bottom: 28px; position: relative;
  }
  .exp-item.exp-past { opacity: .65; }
  .exp-dot {
    width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
    background: white; border: 2px solid var(--border); z-index: 1;
  }
  .exp-dot-active {
    background: var(--celeste); border-color: var(--celeste);
    box-shadow: 0 0 0 3px rgba(59,159,232,.2);
  }
  .exp-body { flex: 1; }
  .exp-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; flex-wrap: wrap; margin-bottom: 6px;
  }
  .exp-header h4 { font-size: 15px; font-weight: 600; color: var(--blue); }
  .exp-org { font-size: 13px; color: var(--celeste); display: block; margin-top: 2px; }
  .exp-date { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
  .exp-body > p { font-size: 13px; color: var(--muted); line-height: 1.7; }

  /* ── EDUCACIÓN + CERTS GRID ───────────────── */
  .edu-cert-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  }
  @media(max-width:768px) { .edu-cert-grid { grid-template-columns: 1fr; } }

  .edu-list, .cert-list { display: flex; flex-direction: column; gap: 14px; }

  .edu-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: white; border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; box-shadow: var(--shadow); transition: border-color .2s;
  }
  .edu-item:hover { border-color: var(--celeste); }
  .edu-icon { font-size: 22px; flex-shrink: 0; }
  .edu-item h5 { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 3px; }
  .edu-item span { font-size: 12px; color: var(--muted); }

  .cert-item {
    display: flex; gap: 14px; align-items: flex-start;
    background: white; border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; box-shadow: var(--shadow); transition: border-color .2s;
  }
  .cert-item:hover { border-color: #4285f4; }
  .cert-logo {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px;
  }
  .cert-logo.google {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
  }
  .cert-item h5 { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 3px; }
  .cert-item span { font-size: 12px; color: var(--muted); }
  .section-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    transition: all .3s; display: flex; flex-direction: column;
  }
  .section-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(26,58,107,.18); }
  .section-card .card-top {
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--border);
    flex: 1;
  }
  .section-card .card-emoji { font-size: 32px; margin-bottom: 14px; display: block; }
  .section-card h3 {
    font-family: var(--display); font-size: 18px; font-weight: 700;
    color: var(--blue); margin-bottom: 8px;
  }
  .section-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }
  .section-card .card-footer {
    padding: 12px 18px;
    display: flex; align-items: center; justify-content: space-between;
    background: var(--offwhite);
  }
  .section-card .card-footer a {
    font-size: 13px; font-weight: 600; color: var(--blue2);
    display: flex; align-items: center; gap: 6px; transition: gap .2s;
  }
  .section-card:hover .card-footer a { gap: 10px; }
  .section-card .card-footer .tag-mini {
    font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .5px;
  }
  .section-card.disabled .card-footer a { color: var(--gray); pointer-events: none; cursor: default; }

.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .sections-grid {
    grid-template-columns: 1fr;
  }
}
  .section-card.disabled .card-footer::after {
    content: 'Próximamente'; font-family: var(--mono); font-size: 10px;
    background: rgba(59,159,232,.12); color: var(--celeste);
    padding: 2px 8px; border-radius: 4px;
  }

  /* Sobre mí */
  .about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  }
  .about-text h2 {
    font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--blue);
    margin-bottom: 16px;
  }
  .about-text p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
  .about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .chip {
    font-size: 12px; font-family: var(--mono); padding: 6px 12px;
    border-radius: 6px; background: var(--offwhite); border: 1px solid var(--border);
    color: var(--blue);
  }
  .about-visual {
    background: linear-gradient(135deg, var(--dark), var(--blue));
    border-radius: 20px; padding: 36px; color: white;
    box-shadow: var(--shadow-lg);
  }
  .about-visual .av-label {
    font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px;
    color: rgba(255,255,255,.45); text-transform: uppercase; margin-bottom: 20px;
  }
  .stat-row { display: flex; flex-direction: column; gap: 16px; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 16px; }
  .stat-item:last-child { border: none; padding: 0; }
  .stat-num {
    font-family: var(--display); font-size: 36px; font-weight: 800;
    color: var(--sky); line-height: 1;
  }
  .stat-lbl { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 4px; }

  @media(max-width:768px){
    .about-grid { grid-template-columns: 1fr; }
    .sections-grid { margin-top: 16px; }
  }

.social-btn.email:hover { background: var(--celeste); border-color: var(--celeste); color: white; }

/* --- STYLES FROM pages/sistemas.html --- */
  .systems-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }

  .sys-card {
    background: white; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow); transition: all .3s;
    display: flex; flex-direction: column;
  }
  .sys-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

  .sys-card-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 16px;
  }
  .sys-icon {
    width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    background: linear-gradient(135deg, rgba(26,58,107,.1), rgba(59,159,232,.12));
  }
  .sys-card-header-text h3 {
    font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--blue);
    margin-bottom: 4px;
  }
  .sys-card-header-text p { font-size: 12px; color: var(--muted); }

  .sys-card-body { padding: 20px 24px; flex: 1; }
  .sys-card-body p { font-size: 13px; color: var(--text); line-height: 1.75; }

  .sys-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

  .sys-card-footer {
    padding: 14px 24px; background: var(--offwhite);
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
  }
  .sys-status {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 11px;
  }
  .sys-status .dot {
    width: 7px; height: 7px; border-radius: 50%;
  }
  .dot-active { background: #34d399; box-shadow: 0 0 0 2px rgba(52,211,153,.2); }
  .dot-dev    { background: #fbbf24; box-shadow: 0 0 0 2px rgba(251,191,36,.2); }
  .dot-concept{ background: var(--gray); }

  .sys-card-footer a {
    font-size: 12px; font-weight: 600; color: var(--celeste);
    font-family: var(--mono); display: flex; align-items: center; gap: 4px;
    transition: gap .2s;
  }
  .sys-card:hover .sys-card-footer a { gap: 8px; }

  /* Servicios */
  .services-list { display: flex; flex-direction: column; gap: 16px; }
  .service-item {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; display: flex; gap: 20px; align-items: flex-start;
    box-shadow: var(--shadow); transition: border-color .2s;
  }
  .service-item:hover { border-color: var(--celeste); }
  .service-item .si-icon {
    font-size: 28px; flex-shrink: 0; padding-top: 2px;
  }
  .service-item h4 { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
  .service-item p  { font-size: 13px; color: var(--muted); line-height: 1.65; }

  /* Contact CTA */
  .contact-cta {
    background: linear-gradient(135deg, var(--dark), var(--blue2));
    border-radius: 20px; padding: 48px; text-align: center; color: white;
    margin-top: 64px;
  }
  .contact-cta h2 {
    font-family: var(--display); font-size: 28px; font-weight: 800; margin-bottom: 12px;
  }
  .contact-cta p { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 28px; }
  .contact-cta a {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; color: var(--blue);
    padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 14px;
    transition: transform .2s;
  }
  .contact-cta a:hover { transform: translateY(-2px); }

  .section-divider { border: none; border-top: 1px solid var(--border); margin: 56px 0; }

/* --- STYLES FROM ALUMNOS.HTML --- */
.add-note {
  background: rgba(59,159,232,.1);
  border: 1px solid rgba(59,159,232,.2);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 32px;
}
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--mono);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.course-section { margin-bottom: 48px; }
.course-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.course-header .ch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,58,107,.15);
}
.course-header h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  flex: 1;
}
.course-header .ch-count {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--muted);
}
.resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.resource-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: all .25s;
}
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--celeste);
}
.rc-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.rc-link { background: rgba(59,159,232,.12); }
.rc-video { background: rgba(220,38,38,.1); }
.rc-tool { background: rgba(124,58,237,.1); }
.rc-body { flex: 1; }
.rc-body h4 { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.rc-body p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }
.rc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-go {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--celeste);
  font-family: var(--mono);
  align-self: flex-end;
}
.robotica-featured {
  background: linear-gradient(135deg, rgba(26,58,107,.03), transparent);
  border: 1px solid rgba(59,159,232,.15);
  padding: 24px;
  border-radius: 20px;
}
.robotica-banner {
  background: linear-gradient(135deg, var(--dark), var(--blue));
  color: white;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.rb-left { flex: 1; }
.rb-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  background: rgba(255,255,255,.1);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}
.rb-left h2 { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.rb-left p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.75); margin-bottom: 24px; max-width: 480px; }
.rb-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.rb-btn { padding: 10px 20px; border-radius: 8px; font-size: 12px; font-weight: 600; transition: all .2s; }
.rb-btn-primary { background: white; color: var(--blue); }
.rb-btn-primary:hover { background: var(--offwhite); }
.rb-btn-secondary { background: rgba(255,255,255,.12); color: white; border: 1px solid rgba(255,255,255,.2); }
.rb-btn-secondary:hover { background: rgba(255,255,255,.2); }
.rb-right { align-self: stretch; }
.rb-circuit {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rb-icon-big { font-size: 44px; line-height: 1; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 200px; margin-top: 16px; }
.rb-chips span {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
}
/* --- STYLES FROM TALLERES.HTML --- */
.filter-bar {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px;
}
.filter-btn {
    padding: 7px 18px; border-radius: 20px; font-size: 12px; font-weight: 600;
    border: 1px solid var(--border); background: white; color: var(--muted);
    cursor: pointer; transition: all .2s; font-family: var(--mono);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--blue); color: white; border-color: var(--blue);
}
.filter-btn.docente.active, .filter-btn.docente:hover {
    background: #7c3aed; border-color: #7c3aed;
}
.filter-btn.alumno.active, .filter-btn.alumno:hover {
    background: var(--celeste); border-color: var(--celeste);
}
.filter-btn.familias.active, .filter-btn.familias:hover {
    background: #d97706; border-color: #d97706;
}
.talleres-list {
    display: flex; flex-direction: column; gap: 20px;
}
.taller-card {
    background: white; border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow); transition: all .25s;
    display: flex;
}
.taller-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.taller-stripe {
    width: 6px; flex-shrink: 0;
}
.stripe-docente  { background: linear-gradient(180deg, #7c3aed, #a78bfa); }
.stripe-alumno   { background: linear-gradient(180deg, var(--celeste), var(--sky)); }
.stripe-mixto    { background: linear-gradient(180deg, #7c3aed, var(--celeste)); }
.stripe-familias { background: linear-gradient(180deg, #f59e0b, #fcd34d); }
.badge-orange { background: rgba(245,158,11,.12); color: #d97706; }
.taller-body {
    padding: 22px 24px; flex: 1; display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start;
}
.taller-date {
    min-width: 90px; flex-shrink: 0; text-align: center;
    padding: 10px 14px; border-radius: 10px;
    background: var(--offwhite); border: 1px solid var(--border);
}
.taller-date .td-month {
    font-family: var(--mono); font-size: 10px; text-transform: uppercase;
    letter-spacing: 1px; color: var(--muted);
}
.taller-date .td-year {
    font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--blue);
    line-height: 1;
}
.taller-info { flex: 1; min-width: 200px; }
.taller-info h3 {
    font-family: var(--display); font-size: 17px; font-weight: 700;
    color: var(--blue); margin-bottom: 6px; line-height: 1.3;
}
.taller-info p {
    font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 12px;
}
.taller-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.taller-actions {
    display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; justify-content: center;
}
.btn-taller {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 600;
    transition: all .2s; white-space: nowrap; border: none; cursor: pointer;
    font-family: var(--sans);
}
.btn-taller.primary {
    background: var(--blue); color: white;
}
.btn-taller.primary:hover { background: var(--blue2); }
.btn-taller.ghost {
    background: var(--offwhite); color: var(--blue);
    border: 1px solid var(--border);
}
.btn-taller.ghost:hover { border-color: var(--celeste); }
.badge-purple { background: rgba(124,58,237,.1); color: #7c3aed; }
.badge-sky    { background: rgba(59,159,232,.12); color: var(--celeste); }
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px; margin-bottom: 40px;
}
.stat-box {
    background: white; border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; text-align: center; box-shadow: var(--shadow);
}
.stat-box .sb-num {
    font-family: var(--display); font-size: 36px; font-weight: 800;
    color: var(--blue); line-height: 1;
}
.stat-box .sb-lbl {
    font-size: 12px; color: var(--muted); margin-top: 6px;
}
.stat-box.purple .sb-num { color: #7c3aed; }
.stat-box.sky    .sb-num { color: var(--celeste); }
@media(max-width: 600px) {
    .taller-card { flex-direction: column; }
    .taller-stripe { width: 100%; height: 6px; }
    .taller-body { flex-direction: column; }
    .taller-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ── BLOG SECTION ──────────────────────────────── */
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.home-left {
  display: contents;
}

.home-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-section {
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.blog-highlight-container {
  margin-bottom: 22px;
}

.blog-highlight-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  animation: slideUp .45s ease both;
}

.blog-highlight-card:hover {
  transform: translateY(-3px);
  border-color: var(--celeste);
}

.blog-highlight-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--offwhite), rgba(59,159,232,.08));
  display: block;
}

.blog-highlight-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-highlight-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.25;
}

.blog-highlight-excerpt {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

@media (min-width: 900px) {
  .blog-highlight-card {
    flex-direction: row;
  }
  .blog-highlight-image {
    width: 44%;
    height: auto;
    min-height: 220px;
  }
  .blog-highlight-content {
    padding: 24px;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(26,58,107,.15);
  border-color: var(--celeste);
}

.blog-post-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--offwhite), rgba(59,159,232,.08));
  display: block;
}

.blog-post-content {
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-category {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(59,159,232,.12);
  color: var(--celeste);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}

.blog-post-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color .2s;
}

.blog-post-card:hover .blog-post-title {
  color: var(--celeste);
}

.blog-post-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  line-clamp: 3;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.blog-post-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--celeste);
  font-family: var(--mono);
  transition: gap .2s;
}

.blog-post-card:hover .blog-post-read {
  gap: 10px;
}

.blog-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--celeste);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.blog-loading p {
  font-size: 14px;
  color: var(--muted);
}

.blog-error {
  grid-column: 1 / -1;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.2);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: #dc2626;
}

.blog-error p {
  font-size: 14px;
  margin-bottom: 12px;
}

.blog-error small {
  font-size: 12px;
  display: block;
  color: rgba(220,38,38,.8);
  margin-top: 8px;
}

.blog-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}

.blog-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}

/* Responsive */
@media(max-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  .blog-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}
