:root{
      --bg: #0b0b0b;
      --fg: #ffffff;
      --muted: #cfcfcf;
      --accent: #d0714b;            /* color de acento para hover/botón */
      --border: rgba(255,255,255,.25);
      --hero-image: url('img/hero.jpg'); /* <-- reemplaza por tu foto/fondo */
    }

    /* Reset breve */
    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      color: var(--fg);
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
      background: var(--bg);
      line-height: 1.4;
      scroll-behavior: smooth;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    /* Contenedor del hero */
    .hero {
      position: relative;
      min-height: 100svh;            /* 100% pantalla, compatible móviles */
      display: grid;
      place-items: center;
      overflow: hidden;
      isolation: isolate;
    }
    /* Imagen de fondo + overlay */
    .hero::before {
      content: "";
      position: absolute; inset: 0;
      background:
        linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.65)),
        var(--hero-image) center/cover no-repeat;
      z-index: -2;
      transform: scale(1.02);
      filter: saturate(.9) contrast(.95) brightness(.9);
    }
    /* viñeta sutil en bordes */
    .hero::after {
      content: "";
      position: absolute; inset: 0;
      background: radial-gradient(120% 80% at 50% 50%, transparent 0 60%, rgba(0,0,0,.25) 100%);
      z-index: -1;
    }

    .container {
      width: min(1100px, 92vw);
      margin-inline: auto;
      text-align: center;
      animation: fadeUp .9s ease both;
    }

    h1 {
      margin: 0 0 .25rem;
      font-weight: 600;
      letter-spacing: -0.02em;
      font-size: clamp(40px, 8vw, 96px);
      line-height: 1.05;
    }

    .subtitle {
      margin: 0 auto 1.75rem;
      color: var(--muted);
      font-weight: 400;
      font-size: clamp(16px, 2.5vw, 26px);
      opacity: .95;
    }

    .social {
      display: flex;
      justify-content: center;
      gap: clamp(14px, 2vw, 32px);
      flex-wrap: wrap;
      margin: 1rem 0 2rem;
      font-size: clamp(14px, 1.8vw, 18px);
    }
    .social a {
      position: relative;
      padding-block: 4px;
      transition: color .25s ease;
    }
    .social a::after {
      content: "";
      position: absolute;
      left: 0; bottom: 0;
      width: 0%; height: 1px;
      background: currentColor;
      transition: width .25s ease;
      opacity: .8;
    }
    .social a:hover {
      color: var(--accent);
    }
    .social a:hover::after { width: 100%; }

    .cta {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .85rem 1.2rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--muted);
      backdrop-filter: blur(4px);
      transition: border-color .25s ease, color .25s ease, background-color .25s ease;
      font-weight: 500;
      will-change: transform;
    }
    .cta:hover {
      color: var(--fg);
      border-color: var(--fg);
      background-color: rgba(255,255,255,.06);
    }

    .chevrons {
      display: inline-block;
      transform: translateY(1px);
      font-size: 1.1em;
    }

    /* Sección de proyectos de ejemplo (para que el botón tenga ancla) */
    section#proyectos {
      padding: clamp(56px, 8vw, 120px) 0;
      background: #0f0f10;
    }
    .grid {
      width: min(1100px, 92vw);
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 24px;
    }
    .card {
      position: relative;
      aspect-ratio: 16/10;
      border-radius: 16px;
      overflow: hidden;
      background: linear-gradient(180deg, #1a1a1a, #101010);
      border: 1px solid #1f1f1f;
      display: grid;
      place-items: center;
      color: #cfcfcf;
      transition: transform .25s ease, border-color .25s ease;
    }
    .card:hover {
      transform: translateY(-4px);
      border-color: #2a2a2a;
    }

    /* ===== HEADER tipo IDE ===== */
.ide-header {
  background-color: #111827; /* gris oscuro */
  border-bottom: 1px solid #374151;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  font-family: 'JetBrains Mono', monospace;
}

/* Barra superior */
.window-bar {
  background-color: #1f2937;
  border-bottom: 1px solid #4b5563;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: #d1d5db;
}

/* Botones estilo Mac */
.window-buttons {
  display: flex;
  gap: 6px;
}
.window-buttons span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.red { background-color: #ef4444; }
.yellow { background-color: #facc15; }
.green { background-color: #22c55e; }

/* Título de ventana */
.window-title {
  color: #d1d5db;
}

/* Iconos derecha */
.window-icons {
  display: flex;
  gap: 8px;
  color: #9ca3af;
  font-size: 0.7rem;
}

/* Tabs tipo IDE */
.ide-tabs {
  display: flex;
  align-items: center;
  background-color: #111827;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  overflow-x: auto;
  padding: 0 16px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid #374151;
  padding: 10px 16px;
  color: #d1d5db;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.tab:hover {
  background-color: #1f2937;
}
.tab a {
  color: #d1d5db;
  text-decoration: none;
}
.tab a:hover {
  color: #f97316; /* naranja */
}

/* Breadcrumb */
.breadcrumb {
  margin-left: auto;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Espaciador flexible */
.flex-space {
  flex: 1;
}

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

/* ===== FOOTER tipo terminal ===== */
.terminal-footer {
  background-color: #0d1117;
  color: #d1d5db;
  font-family: 'JetBrains Mono', monospace;
  border-top: 1px solid #1f2937;
  padding: 40px 0;
  text-align: center;
}
.terminal-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  line-height: 1.7;
}
.command {
  color: #22c55e;
  font-weight: 500;
}
.user {
  color: #60a5fa;
}
.symbol {
  color: #facc15;
  margin-left: 4px;
  margin-right: 6px;
}
.copy {
  margin-top: 4px;
  color: #9ca3af;
}
.terminal-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.terminal-links a {
  color: #9ca3af;
  font-weight: 400;
  transition: color 0.2s ease;
}
.terminal-links a:hover {
  color: #60a5fa;
}
.editor-status {
  background-color: #3b82f6; /* azul VSCode */
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1;
  border-bottom: 1px solid rgba(0,0,0,.2);
}
.status-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
}
.status-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  white-space: nowrap;
}
.status-center {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-self: center;
  opacity: .95;
  white-space: nowrap;
}
.status-right {
  justify-self: end;
  white-space: nowrap;
  opacity: .95;
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e; /* verde Ready */
  border-radius: 999px;
  display: inline-block;
}

/* ===== Terminal top bar: TERMINAL / PROBLEMS / OUTPUT / DEBUG CONSOLE ===== */
.terminal-topbar {
  background-color: #0f172a; /* gris azulado profundo */
  border-bottom: 1px solid #1e293b;
}
.term-tabs {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 10px 8px;
  overflow-x: auto;
}
.term-tab {
  background: transparent;
  border: 0;
  color: #9ca3af;           /* gris */
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: default;
}
.term-tab.active {
  color: #22c55e;           /* verde para PROBLEMS */
}
.term-tab:hover {
  color: #e5e7eb;
}

/* ---- About Page -------------------------------------------------- */
.minimal-nav {
  width: min(1100px, 92vw);
  margin: 24px auto 0;
  font-weight: 500;
}
.minimal-nav a {
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 12px;
  border-radius: 10px;
}
.minimal-nav a:hover { color: var(--fg); border-color: var(--fg); }

.about {
  background: #0b0f18; /* azul gris oscuro leve para diferenciar del home */
  padding: clamp(32px, 5vw, 60px) 0 96px;
}
.about-wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.about-header h1 {
  font-size: clamp(42px, 6.2vw, 72px);
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.about-role {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 22px);
  margin: 0 0 28px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: #0e121b;
}
.about-image img {
  width: 100%;
  height: 700px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}
.status-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--fg);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
.status-badge .dot {
  width: 10px; height: 10px; border-radius: 999px; display: inline-block;
  background: #22c55e; margin-right: 8px; transform: translateY(1px);
}

.about-text p {
  color: #d6d7db;
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.about-text p strong { color: #fff; }

.tech-title {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 22px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.tech-card {
  background: linear-gradient(180deg, #121826, #0b0f18);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 14px 16px;
  color: #cfd2d8;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tech-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
}
.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: #258DFA; /* color solicitado */
}
.projects {
  background: #0b0f18;
  color: #e5e7eb;
  padding: 72px 0 96px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}
.terminal-header {
  width: min(1100px, 92vw);
  margin: 0 auto 36px;
  text-align: left;
}
.terminal-command {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: #e5e7eb;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.terminal-command .user { color: #60a5fa; font-weight: 600; }
.terminal-command .symbol { color: #facc15; margin: 0 6px; }

.terminal-header h1 {
  font-size: clamp(38px, 6.2vw, 66px);
  color: #fff;
  margin: 20px 0 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.terminal-header .subtitle {
  color: #9ca3af;
  margin-top: 8px;
  font-style: italic;
  font-size: 16px;
}

/* Card de proyecto */
.project-card {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(18px, 3.4vw, 42px);
  width: min(1100px, 92vw);
  margin: 24px auto 64px;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  align-items: start;
}
@media (max-width: 900px){
  .project-card { grid-template-columns: 1fr; }
}

.project-info h2 {
  color: #f59e0b; /* título naranja tipo referencia */
  margin: 4px 0 14px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-family: 'JetBrains Mono', monospace;
}
.project-meta {
  background: #1e293b;
  border-left: 4px solid #60a5fa;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #d1d5db;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.project-info p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #d6d7db;
  font-size: 16px;
}

/* tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}
.tag {
  background: #111827;
  color: #fbbf24;
  border: 1px solid #1f2937;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}
.tag.success { color: #22c55e; }

/* actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.btn {
  background: #1e293b;
  color: #60a5fa;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  transition: background .25s ease, color .25s ease, transform .15s ease, border-color .25s ease;
}
.btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

/* Galería / Carrusel */
.project-gallery {
  width: 100%;
  max-width: 800px; /* ajusta según tu layout */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.carousel {
  width: 100%;
  height: 450px; /* altura fija del carrusel */
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  animation: slide 16s infinite ease-in-out;
}

.slides img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: contain;           /* evita cortes: muestra toda la imagen */
  object-position: center;       /* centrada */
  background-color: #0f172a;     /* color de fondo para barras laterales */
}

/* Animación automática */
@keyframes slide {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-100%); }
  50%, 70% { transform: translateX(-200%); }
  75%, 100% { transform: translateX(0); }
}

/* Responsive: adapta altura */
@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }
}

/*experience ---------------------*/
/* ===== Experience Page (Git log style) ===== */
.experience {
  background: #0b0f18;
  color: #e5e7eb;
  padding: 80px 0 100px;
  font-family: 'JetBrains Mono', monospace;
}
.commit-card {
  position: relative;
  background: #111827;
  border-radius: 14px;
  border: 1px solid #1f2937;
  width: min(1100px, 92vw);
  margin: 30px auto;
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.commit-line {
  width: 6px;
  border-radius: 6px;
}
.commit-card.red .commit-line { background: #ef4444; }
.commit-card.orange .commit-line { background: #f59e0b; }
.commit-card.green .commit-line { background: #22c55e; }

.commit-content { flex: 1; }

.commit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.commit-header h3 {
  font-weight: 600;
  color: #f87171;
  margin: 0;
}
.commit-card.orange .commit-header h3 { color: #fbbf24; }
.commit-card.green .commit-header h3 { color: #22c55e; }

.commit-header .date {
  font-size: 13px;
  color: #9ca3af;
}
.commit-content p {
  margin: 4px 0 10px;
  line-height: 1.6;
  font-size: 15px;
  color: #d1d5db;
}
.tech {
  color: #60a5fa;
  margin-top: 4px;
}
.tech span {
  color: #a7f3d0;
  margin-right: 6px;
}
.commit-id {
  color: #facc15;
  margin-left: 8px;
}
.commit-image {
  margin-top: 10px;
}
.commit-image img {
  width: 280px;
  border-radius: 10px;
  border: 1px solid #1f2937;
  transition: transform .2s ease;
}
.commit-image img:hover {
  transform: scale(1.03);
}
/* ===== Contact Page (contact --init & output.log) ===== */
.contact-page {
  background: #0b0f18;
  color: #e5e7eb;
  padding: 72px 0 100px;
}

.contact-init {
  width: min(1100px, 92vw);
  margin: 0 auto 24px;
  text-align: center;
}
.contact-init h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.contact-init .command-symbol {
  color: #22c55e; /* $ en verde */
  margin-right: 6px;
}
.contact-init .subtext {
  color: #9ca3af;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 6px;
  font-size: 15px;
  opacity: .95;
}

/* Bloque de código / editor */
.code-block,
.output-log {
  width: min(1100px, 92vw);
  margin: 18px auto 28px;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow: hidden;
}

/* Header del archivo tipo editor */
.code-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #111827;
  border-bottom: 1px solid #1f2937;
  padding: 10px 14px;
  position: relative;
}
.code-header .circle {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}
.code-header .red { background: #ef4444; }
.code-header .yellow { background: #facc15; }
.code-header .green { background: #22c55e; }

.code-header p {
  margin: 0;
  color: #d1d5db;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.code-header .path {
  color: #94a3b8;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  justify-self: end;
  opacity: .8;
}

/* Área de código */
pre.code {
  margin: 0;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #cbd5e1;
  background: #0f172a;
  overflow-x: auto;
  white-space: pre-wrap;
}
pre.code .comment { color: #94a3b8; }
pre.code .kw { color: #60a5fa; }
pre.code .str { color: #fbbf24; }
pre.code .num { color: #a78bfa; }
pre.code .ok { color: #22c55e; }
pre.code .warn { color: #f59e0b; }

/* Métodos de contacto (dos columnas) */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px 20px;
}
@media (max-width: 800px){
  .contact-methods { grid-template-columns: 1fr; }
}
.method-box {
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
}
.method-box p {
  margin: 6px 0;
  color: #d1d5db;
  font-size: 14px;
}
.contact-btn {
  display: inline-block;
  margin-top: 10px;
  background: #1e293b;
  color: #60a5fa;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  transition: background .25s ease, color .25s ease, transform .15s ease, border-color .25s ease;
}
.contact-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

/* Output log adornos */
.output-log pre.code {
  padding: 18px 20px 24px;
}
.output-log pre.code::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #22c55e 0 25%, #f59e0b 25% 50%, #60a5fa 50% 75%, #ef4444 75% 100%);
  opacity: .12;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Listado con emojis en el log */
.output-log pre.code em {
  font-style: normal;
  color: #94a3b8;
}

/* Ajustes utilitarios */
.centered { text-align: center; }


/* ===== Contact methods — compact like reference ===== */
.contact-methods{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  padding:10px 18px 24px;
  justify-items:center;
}
@media (max-width:800px){ .contact-methods{ grid-template-columns:1fr; } }

.method-box{
  position:relative;
  width:100%;
  max-width:480px;               /* ancho similar a ref */
  background:#0f172a;            /* un poco más claro que el fondo */
  border:1px solid #1f2937;
  border-radius:12px;
  padding:14px 16px 52px;        /* espacio para el botón */
  box-shadow:0 8px 22px rgba(0,0,0,.25);
  transition:transform .15s ease,border-color .2s ease;
}
.method-box:hover{ transform:translateY(-2px); border-color:#263244; }

.method-box p{
  margin:4px 0;
  font:13px/1.45 'JetBrains Mono', monospace;
  color:#cfd4dc;
}

/* línea de llamada > execute_email() en azul */
.method-call{ margin-top:6px; color:#60a5fa; }

/* Botón icono compacto en esquina inf. derecha */
.btn-icon{
  position:absolute; right:12px; bottom:12px;
  width:36px; height:36px; border-radius:10px;
  display:grid; place-items:center;
  color:#fff; text-decoration:none; font-weight:700; font-size:16px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 6px 16px rgba(0,0,0,.25);
  transition:transform .15s ease, filter .2s ease, border-color .2s ease;
}
.btn-icon:hover{ transform:translateY(-2px); filter:brightness(1.08); border-color:rgba(255,255,255,.32); }

/* Colores de marca */
.btn-icon.mail{ background:#3b82f6; }   /* email */
.btn-icon.li  { background:#0a66c2; }   /* LinkedIn */
.btn-icon.gh  { background:#24292e; }   /* GitHub  */
.btn-icon.tk  { background:#ff0050; }   /* TikTok  */

/* ===== Syntax colors (JSON-like) ===== */
.method-box .key { color:#34d399; }     /* verde */
.method-box .str { color:#fbbf24; }     /* naranja */
.method-box .num { color:#a78bfa; }     /* púrpura */
.method-box .bool{ color:#22c55e; }     /* bool true/false */

/* Fondo glitch dentro del hero */
.glitch-background {
  position: absolute;
  inset: 0;
  z-index: -2;           /* Detrás del overlay y del contenido */
  overflow: hidden;
}

/* El contenido del hero debe estar arriba */
.hero-content {
  position: relative;
  z-index: 5;
}
#letter-glitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(4px);
}

/* =========================
   LANDING PAGE LAYOUT
   ========================= */

.landing {
  background: #0b0f18;
  color: #e5e7eb;
}

/* Hero específico de la landing */
.hero-landing {
  min-height: calc(100vh - 120px);
  padding-top: 40px;
}

.lp-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.lp-title {
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.lp-subtitle {
  max-width: 620px;
  margin-inline: auto;
}

.lp-hero-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-primary-cta {
  background: #258DFA;
  border-color: #258DFA;
  color: #fff !important;
}
.lp-primary-cta:hover {
  background: #1d6fcc;
  border-color: #1d6fcc;
}

.lp-secondary-cta {
  padding: .75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  color: #e5e7eb;
  font-size: 14px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.lp-secondary-cta:hover {
  background: rgba(255,255,255,.05);
  border-color: #fff;
}

.lp-badges {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #9ca3af;
}
.lp-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.85);
  border: 1px solid rgba(148,163,184,.3);
}

/* Secciones genéricas */
.lp-section {
  padding: 72px 0;
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.lp-section-alt {
  background: #020617;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  margin-top: 40px;
}

.lp-section-header {
  max-width: 640px;
  margin-bottom: 32px;
}
.lp-section-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.lp-section-header p {
  color: #9ca3af;
}

.lp-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #60a5fa;
  margin-bottom: 6px;
}

/* Grid utilitario */
.lp-grid {
  display: grid;
  gap: 20px;
}
.lp-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* Tarjetas */
.lp-card {
  background: #020617;
  border-radius: 16px;
  border: 1px solid #1f2937;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  font-size: 14px;
}
.lp-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}
.lp-card p {
  margin-bottom: 10px;
  color: #cbd5f5;
}
.lp-card ul {
  padding-left: 18px;
  margin: 0;
  color: #9ca3af;
}

/* Work list */
.lp-work-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lp-work-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid #1e293b;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 60%);
}
@media (max-width: 900px) {
  .lp-work-item {
    grid-template-columns: 1fr;
  }
}

.lp-work-meta h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}
.lp-work-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #facc15;
  margin-bottom: 2px;
}
.lp-work-desc {
  color: #cbd5f5;
  font-size: 14px;
}

.lp-work-thumb img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #1e293b;
}

/* Steps */
.lp-steps .lp-step-card {
  position: relative;
  padding-top: 28px;
}
.lp-step-number {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #64748b;
}

/* Final CTA */
.lp-cta-section {
  padding-top: 40px;
  padding-bottom: 96px;
}
.lp-cta-block {
  background: #020617;
  border-radius: 20px;
  border: 1px solid #1f2937;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,.48);
}
.lp-cta-block h2 {
  margin-bottom: 8px;
}
.lp-cta-block p {
  max-width: 540px;
  margin: 0 auto 16px;
  color: #9ca3af;
}
.lp-cta-block .lp-hero-actions {
  justify-content: center;
}