    :root {
      --azul: #1e3a8a;
      --azul-2: #0ea5e9;
      --negro: #0b1220;
      --gris: #6b7280;
      --bg: #0f172a;
      --card: #111827;
      --white: #ffffff;
      --accent: #38bdf8;
      --ok: #22c55e;
      --ring: rgba(56, 189, 248, .45)
    }

    html { scroll-behavior: smooth }

    body {
      margin: 0;
      color: var(--white);
      font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Inter, Arial, sans-serif;
      background: linear-gradient(180deg, var(--bg), #0b1020 60%, #080c19);
      min-height: 100dvh;
      overflow-x: hidden
    }

    body.no-scroll { overflow: hidden }

    .wrap {
      max-width: 1160px;
      margin: 0 auto;
      padding: 0 20px
    }

    /* Fondo animado */
    .bg-anim {
      position: fixed;
      inset: env(safe-area-inset-top) -10vw -10vh -10vw;
      z-index: -2;
      filter: saturate(1.2) blur(40px);
      opacity: .45;
      pointer-events: none
    }

    .bg-anim:before,
    .bg-anim:after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(40vw 40vh at 20% 30%, rgba(14, 165, 233, .35), transparent 60%),
        radial-gradient(50vw 45vh at 80% 10%, rgba(59, 130, 246, .25), transparent 60%),
        radial-gradient(60vw 60vh at 50% 80%, rgba(99, 102, 241, .22), transparent 60%);
      animation: floatGradient 18s ease-in-out infinite alternate
    }

    .bg-anim:after {
      mix-blend-mode: screen;
      opacity: .6;
      filter: brightness(1.1)
    }

    @keyframes floatGradient {
      to { transform: translate3d(var(--gx, 12px), var(--gy, 18px), 0) scale(1.02) }
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      z-index: 1100;
      background: rgba(8, 12, 25, .7);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255, 255, 255, .06)
    }

    nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 0
    }

    .brand {
      display: flex;
      gap: 10px;
      align-items: center;
      font-weight: 700;
      text-decoration: none;
      color: var(--white)
    }

    .logo-img { height: 40px }

    .logo-text {
      margin-left: 8px;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      font-size: 20px;
      color: #ffffff;

    }

    .menu {
      display: flex;
      align-items: center;
      gap: 18px
    }

    .menu a {
      color: #cbd5e1;
      text-decoration: none;
      font-weight: 600;
      position: relative;
      display: inline-block;
      padding: .4rem .2rem
    }

    .menu a:after {
      content: "";
      position: absolute;
      left: 0;
      right: 100%;
      bottom: -4px;
      height: 2px;
      background: linear-gradient(90deg, var(--azul-2), var(--accent));
      transition: right .25s ease
    }

    .menu a:hover { color: #fff }
    .menu a:hover:after { right: 0 }

    .menu .btn {
      padding: 10px 18px;
      border-radius: 14px;
      margin-left: 12px
    }

    .btn {
      display: inline-block;
      background: linear-gradient(135deg, var(--azul), var(--azul-2));
      color: #fff;
      text-decoration: none;
      padding: 10px 16px;
      border-radius: 14px;
      font-weight: 700;
      box-shadow: 0 10px 30px rgba(14, 165, 233, .25);
      position: relative;
      overflow: hidden;
      transform: translateZ(0)
    }

    .btn:after {
      content: "";
      position: absolute;
      inset: -1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
      transform: translateX(-120%);
      transition: transform .6s ease
    }

    .btn:hover:after { transform: translateX(120%) }
    .btn:active { transform: scale(.98) }

    /* Hero */
    .hero { padding: 88px 0 48px; position: relative }

    .grid-hero {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      gap: 36px
    }

    .kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #a5b4fc;
      background: rgba(30, 58, 138, .2);
      padding: 6px 10px;
      border: 1px solid rgba(56, 189, 248, .2);
      border-radius: 999px
    }

    h1 { font-size: 44px; line-height: 1.1; margin: .4em 0 .3em }

    .type-caret {
      display: inline-block;
      width: 1ch;
      background: currentColor;
      height: 1.1em;
      margin-left: 2px;
      vertical-align: -0.1em;
      animation: blink .9s steps(1, end) infinite
    }

    @keyframes blink { 50% { opacity: 0 } }

    .lead { color: #cbd5e1; font-size: 18px }

    .badges {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin: 18px 0
    }

    .badge {
      border: 1px solid rgba(255, 255, 255, .08);
      background: rgba(17, 24, 39, .6);
      padding: 8px 12px;
      border-radius: 12px;
      color: #e5e7eb;
      animation: floatY 6s ease-in-out infinite
    }

    .badge:nth-child(2) { animation-delay: .8s }
    .badge:nth-child(3) { animation-delay: 1.6s }
    .badge:nth-child(4) { animation-delay: 2.4s }

    @keyframes floatY {
      0%, 100% { transform: translateY(0) }
      50% { transform: translateY(-6px) }
    }

    .hero-card {
      background: rgba(17, 24, 39, .7);
      border: 1px solid rgba(255, 255, 255, .06);
      padding: 22px;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, .25)
    }

    .stack { display: flex; flex-wrap: wrap; gap: 8px }

    .chip {
      padding: 8px 12px;
      border-radius: 999px;
      background: #0b1220;
      border: 1px solid rgba(56, 189, 248, .25)
    }

    section { padding: 56px 0 }

    .section-title { font-size: 28px; margin: 0 0 10px }
    .section-sub { color: #94a3b8; margin: 0 0 24px }

    .cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px
    }

    .card {
      background: var(--card);
      border: 1px solid rgba(255, 255, 255, .06);
      border-radius: 18px;
      padding: 18px;
      position: relative;
      overflow: hidden;
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
    }

    .card:hover {
      transform: translateY(-6px) scale(1.01);
      box-shadow: 0 14px 40px rgba(14, 165, 233, .15);
      border-color: var(--ring)
    }

    .timeline {
      border-left: 2px solid rgba(56, 189, 248, .3);
      margin-left: 10px;
      padding-left: 18px
    }

    .tl-item { margin: 0 0 18px; position: relative }

    .tl-item:before {
      content: "";
      position: absolute;
      left: -10px;
      top: .35em;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 4px rgba(56, 189, 248, .15)
    }

    .tl-item .when { color: #94a3b8 }

    .cta {
      background: linear-gradient(135deg, rgba(30, 58, 138, .7), rgba(14, 165, 233, .6));
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 20px;
      padding: 24px;
      text-align: center;
      position: relative;
      overflow: hidden
    }

    .cta:after {
      content: "";
      position: absolute;
      inset: -120% -20%;
      background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .08), transparent 60%);
      animation: ctaGlow 12s linear infinite
    }

    @keyframes ctaGlow { to { transform: translateY(240%) } }

    footer {
      padding: 36px 0;
      color: #94a3b8;
      border-top: 1px solid rgba(255, 255, 255, .06)
    }

    .footer-flex {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap
    }

    .footer-center {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .footer-center a {
      color: #cbd5e1;
      text-decoration: none;
      font-weight: 600
    }

    .footer-center a:hover { text-decoration: underline }

    @media (max-width:1024px) {
      .grid-hero { grid-template-columns: 1fr .9fr }
    }

    @media (max-width:900px) {
      .grid-hero { grid-template-columns: 1fr }
      .cards { grid-template-columns: 1fr }
      .menu { display: none }
    }

    @media (max-width:768px) {
      body { font-size: 15px }
      .hero { padding: 72px 0 36px }
      h1 { font-size: 32px }
      .lead { font-size: 16px }
      .btn { padding: 12px 18px; border-radius: 14px }
      .menu { display: none !important }
      .menu-close { display: none !important; }
      .menu-toggle { display: flex !important }
      .bg-anim { opacity: .32; filter: blur(48px) }
      .cta { padding: 20px }
    }

    @media (max-width:420px) {
      h1 { font-size: 28px }
      .badge, .chip { padding: 7px 10px }
    }

    /* ─── Menú móvil robusto ───────────────────────────────────────────── */
    .menu-toggle {
      display: none;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 12px;
      background: rgba(17, 24, 39, .6);
      backdrop-filter: blur(8px);
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1300;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      touch-action: manipulation
    }

    .menu-toggle .bar {
      display: block;
      width: 22px;
      height: 2px;
      background: #e5e7eb;
      box-shadow: 0 7px 0 #e5e7eb, 0 -7px 0 #e5e7eb
    }

    .mobile-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .48);
      backdrop-filter: blur(2px);
      opacity: 0;
      transition: opacity .25s ease;
      z-index: 1100;
      pointer-events: none
    }

    .mobile-nav {
      position: fixed;
      top: 0;
      right: 0;
      width: 74vw;
      max-width: 320px;
      height: 100vh;
      background: #0b1220;
      border-left: 1px solid rgba(255, 255, 255, .08);
      display: flex;
      flex-direction: column;
      padding: 8px 10px;
      gap: 0;
      z-index: 1200;
      transform: translateX(100%);
      transition: transform .25s ease;
      touch-action: pan-y;
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      justify-content: flex-start;
      align-items: stretch;
    }

    .mobile-nav a {
      color: #e5e7eb;
      text-decoration: none;
      border-radius: 10px;
      display: block;
      margin: 0;
      padding: 8px 12px;
      font-size: 14px;
      line-height: 1.15;
      text-align: left
    }

    .mobile-nav a+a { border-top: 1px solid rgba(255, 255, 255, .06) }
    .mobile-nav a:active { background: rgba(255, 255, 255, .06) }

    .mobile-nav .btn.full {
      display: block;
      text-align: center;
      margin: 4px 0 0;
      padding: 10px 12px;
      border-radius: 12px;
      font-weight: 800
    }

    .mobile-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 2px;
      padding: 7px 12px;
      font-size: 14px;
      line-height: 1.15
    }

    .mobile-open .mobile-overlay { opacity: 1; pointer-events: auto }
    .mobile-open .mobile-nav { transform: translateX(0) }
    .mobile-open .fab-cta { display: none }

    /* Centrar el logo + texto en la cabecera del menú móvil */
    .mobile-head {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      width: 100%;
      padding-left: 0;
      padding-right: 0;
    }

    .mobile-brand {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-inline: auto;
      text-decoration: none;
      color: #e5e7eb;
    }

    .mobile-brand span {
      font-weight: 800;
      font-size: 20px;
      line-height: 1;
      display: inline-block;
      transform: translateY(-3px);
      position: relative !important;
      top: -6px !important;
      display: inline-block !important;
      line-height: 1 !important;
    }

    .mobile-logo {
      width: 30px;
      height: 30px;
      border-radius: 6px;
    }

    footer .social a,
    footer .social a:link,
    footer .social a:visited {
      color: #cbd5e1 !important;
      text-decoration: none !important;
      font-weight: 600 !important;
    }

    footer .social a:hover {
      color: #cbd5e1 !important;
      text-decoration: underline !important;
    }

    .menu-close { display: none !important; }

    .reveal { opacity: 1; transform: none }

    /* ────────────────────────────────────────────────────────────────────
       ✅ NUEVO: estilos Proyectos (mismo look & feel)
    ──────────────────────────────────────────────────────────────────── */
    .cards.projects { grid-template-columns: repeat(3, 1fr); }
    @media (max-width:900px) { .cards.projects { grid-template-columns: 1fr; } }

    .project-card { padding: 0; overflow: hidden; }

    .project-cover-link { display:block; text-decoration:none; }

    .project-cover {
      width:100%;
      height: 190px;
      object-fit: cover;
      display:block;
      border-bottom: 1px solid rgba(255,255,255,.06);
      filter: saturate(1.02) contrast(1.02);
    }

    .project-body { padding: 16px 18px 18px; }
    .project-body h3 { margin: 0 0 8px; }
    .project-body p { margin: 0 0 12px; color: #cbd5e1; }

    .project-tags {
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom: 14px;
    }

    .project-actions { display:flex; gap:10px; }
    .project-actions .btn { flex:1; text-align:center; }

    .btn-ghost {
      background: rgba(17,24,39,.35) !important;
      border: 1px solid rgba(56,189,248,.35);
      box-shadow: none !important;
    }
    .btn-ghost:after { display:none; }
  @keyframes pulseGlow {
      0% { filter: blur(35px) brightness(1); }
      100% { filter: blur(45px) brightness(1.25); }
    }

    /* ===== Layout legal (centrado) ===== */
.wrap{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.page{
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero{
  padding: 10px 0 26px;
}

.hero h1{
  font-size: 36px;
  line-height: 1.15;
  margin: .2em 0;
}

.sub{
  color: #cbd5e1;
  margin-top: 6px;
}

.card{
  background: rgba(17,24,39,.7);
  border: 1px solid rgba(255,255,255,.06);
  padding: 22px;
  border-radius: 16px;
}

.legal-page { padding: 56px 0; }
.legal-hero { padding: 56px 0 26px; }
.legal-card{
  background: rgba(17,24,39,.7);
  border: 1px solid rgba(255,255,255,.06);
  padding: 22px;
  border-radius: 16px;
  max-width: 980px;
  margin: 0 auto;
}

