:root {
      --navy-950: #070d18;
      --navy-900: #0b1424;
      --navy-800: #111e35;
      --navy-700: #1a2b4a;
      --navy-600: #253a61;
      --gold: #d4a64a;
      --gold-light: #ecc873;
      --text: #e8ecf3;
      --text-muted: #9aa8bf;
      --line: rgba(255, 255, 255, 0.08);
      --radius: 14px;
      --max: 1120px;
      --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
      --font-body: "Inter", system-ui, -apple-system, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--navy-900);
      color: var(--text);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    img, svg { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }

    .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

    /* ---------- Tipografía ---------- */
    h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; letter-spacing: 0.01em; }
    h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; text-transform: uppercase; }
    h3 { font-size: 1.35rem; font-weight: 600; }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 14px;
    }
    .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
    .lead { font-size: 1.08rem; color: var(--text-muted); max-width: 62ch; }
    .gold { color: var(--gold); }

    /* ---------- Botones ---------- */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      padding: 15px 26px; border-radius: 999px;
      font-weight: 600; font-size: 0.98rem;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
      cursor: pointer; border: none;
    }
    .btn svg { width: 20px; height: 20px; flex-shrink: 0; }
    .btn-primary {
      background: linear-gradient(135deg, var(--gold-light), var(--gold));
      color: var(--navy-950);
      box-shadow: 0 10px 30px -10px rgba(212, 166, 74, .6);
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(212, 166, 74, .8); }
    .btn-ghost { border: 1px solid rgba(255,255,255,.2); color: var(--text); background: rgba(255,255,255,.03); }
    .btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

    /* ---------- Header ---------- */
    header {
      position: fixed; inset: 0 0 auto 0; z-index: 50;
      transition: background .3s ease, border-color .3s ease;
      border-bottom: 1px solid transparent;
    }
    header.scrolled { background: rgba(7, 13, 24, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
    .nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
    .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; }
    .brand-mark {
      width: 36px; height: 36px; border-radius: 9px;
      display: grid; place-items: center;
      background: linear-gradient(135deg, var(--gold-light), var(--gold));
      color: var(--navy-950); font-size: 1rem; font-weight: 800;
    }
    .brand small { color: var(--gold); font-weight: 600; }
    .nav-links { display: flex; gap: 28px; font-size: .92rem; color: var(--text-muted); }
    .nav-links a:hover { color: var(--text); }
    .nav .btn { padding: 10px 20px; font-size: .88rem; }
    @media (max-width: 860px) { .nav-links { display: none; } }

    /* ---------- Hero ---------- */
    .hero {
      position: relative; min-height: 100svh;
      display: flex; align-items: center;
      padding: 110px 0 70px;
      background:
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(212,166,74,.14), transparent 60%),
        radial-gradient(ellipse 70% 70% at 0% 100%, rgba(37,58,97,.7), transparent 60%),
        var(--navy-950);
      overflow: hidden;
    }
    .hero::after {
      content: ""; position: absolute; inset: 0; pointer-events: none;
      background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
      background-size: 56px 56px;
      mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
      -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
      opacity: .5;
    }
    .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
    .badge {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 7px 14px; border-radius: 999px;
      background: rgba(212,166,74,.1); border: 1px solid rgba(212,166,74,.35);
      color: var(--gold-light); font-size: .8rem; font-weight: 600;
      margin-bottom: 22px;
    }
    .badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
    .hero h1 { font-size: clamp(2.9rem, 8vw, 5.2rem); font-weight: 800; text-transform: uppercase; margin-bottom: 20px; }
    .hero h1 span { display: block; color: var(--gold); }
    .hero .lead { margin-bottom: 32px; }
    .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

    .id-card {
      position: relative;
      background: linear-gradient(160deg, var(--navy-700), var(--navy-800));
      border: 1px solid rgba(212,166,74,.25);
      border-radius: 22px; padding: 30px;
      box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
    }
    .id-card::before {
      content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 3px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }
    .id-top { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
    .shield { width: 62px; height: 70px; flex-shrink: 0; }
    .id-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
    .id-role { font-size: .85rem; color: var(--gold); font-weight: 600; margin-top: 4px; }
    .id-list { list-style: none; display: grid; gap: 14px; }
    .id-list li { display: flex; gap: 12px; font-size: .92rem; color: var(--text-muted); }
    .id-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
    .id-list strong { color: var(--text); font-weight: 600; }

    /* Foto principal */
    .hero-photo { position: relative; justify-self: center; width: 100%; max-width: 440px; }
    .hero-photo::before {
      content: ""; position: absolute; inset: 18px -18px -18px 18px;
      border: 2px solid rgba(212,166,74,.45); border-radius: 22px; z-index: -1;
    }
    .photo-frame {
      position: relative; overflow: hidden;
      aspect-ratio: 4 / 5; border-radius: 22px;
      border: 1px solid rgba(212,166,74,.3);
      box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
    }
    .photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
    .photo-plate {
      position: absolute; left: 0; right: 0; bottom: 0;
      padding: 60px 22px 20px;
      background: linear-gradient(to top, rgba(7,13,24,.95) 20%, transparent);
    }
    .photo-plate .id-name { font-size: 1.5rem; }
    .float-badge {
      position: absolute; top: 22px; right: -14px;
      display: flex; align-items: center; gap: 10px;
      padding: 10px 16px; border-radius: 12px;
      background: var(--navy-800); border: 1px solid rgba(212,166,74,.4);
      box-shadow: 0 16px 32px -12px rgba(0,0,0,.7);
      font-size: .82rem; line-height: 1.25;
    }
    .float-badge strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--gold); }
    .float-badge svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }

    @media (max-width: 900px) {
      .hero-grid { grid-template-columns: 1fr; gap: 48px; }
      .hero { min-height: auto; padding-top: 104px; }
      .hero-photo { max-width: 400px; }
    }
    @media (max-width: 480px) {
      .hero-photo { max-width: calc(100% - 18px); justify-self: start; }
      .float-badge { right: -8px; top: 14px; padding: 8px 12px; }
    }
    @media (max-width: 480px) {
      .hero-ctas .btn { width: 100%; }
    }

    /* ---------- Cifras ---------- */
    .stats { background: var(--navy-800); border-block: 1px solid var(--line); }
    .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
    .stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
    .stat:last-child { border-right: none; }
    .stat-num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--gold); line-height: 1; }
    .stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }
    @media (max-width: 760px) {
      .stats-grid { grid-template-columns: repeat(2, 1fr); }
      .stat:nth-child(2) { border-right: none; }
      .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    }

    /* ---------- Secciones ---------- */
    section { padding: 100px 0; scroll-margin-top: 68px; }
    .section-head { margin-bottom: 52px; }
    .section-head h2 { margin-bottom: 16px; }
    @media (max-width: 640px) { section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

    /* Sobre mí */
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
    .about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.04rem; }
    .about-text p strong { color: var(--text); }
    .quote {
      position: relative;
      padding: 30px 30px 30px 34px; border-radius: var(--radius);
      background: linear-gradient(135deg, rgba(212,166,74,.1), rgba(212,166,74,.02));
      border-left: 3px solid var(--gold);
      font-family: var(--font-head); font-size: clamp(1.45rem, 3vw, 1.8rem); font-weight: 600; line-height: 1.25;
    }
    .quote cite { display: block; margin-top: 16px; font-family: var(--font-body); font-style: normal; font-size: .85rem; color: var(--gold); font-weight: 500; }
    .about-text .quote { margin-top: 30px; }
    .areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
    .chip { padding: 7px 14px; border-radius: 999px; font-size: .82rem; background: var(--navy-700); border: 1px solid var(--line); color: var(--text); }
    @media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

    /* Trayectoria */
    .trayectoria { background: var(--navy-950); }
    .timeline { position: relative; max-width: 820px; }
    .timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--navy-600)); }
    .tl-item { position: relative; padding-left: 52px; padding-bottom: 40px; }
    .tl-item:last-child { padding-bottom: 0; }
    .tl-item::before {
      content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%;
      background: var(--navy-950); border: 3px solid var(--gold);
    }
    .tl-item.current::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(212,166,74,.2); }
    .tl-year { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
    .tl-card { margin-top: 10px; padding: 20px 22px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line); }
    .tl-card h3 { margin-bottom: 6px; }
    .tl-card p { color: var(--text-muted); font-size: .95rem; }
    .tl-tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600; background: rgba(212,166,74,.14); color: var(--gold-light); }

    /* Galería */
    .gallery {
      display: grid; gap: 16px;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: 280px 280px;
      grid-template-areas: "a b b" "a c d";
    }
    .g-item {
      position: relative; overflow: hidden; border-radius: var(--radius);
      border: 1px solid var(--line); background: var(--navy-800);
      cursor: zoom-in; padding: 0; font: inherit; color: inherit; text-align: left;
    }
    .g-item:nth-child(1) { grid-area: a; }
    .g-item:nth-child(2) { grid-area: b; }
    .g-item:nth-child(3) { grid-area: c; }
    .g-item:nth-child(4) { grid-area: d; }
    .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
    .g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
    .g-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
    .g-cap {
      position: absolute; left: 0; right: 0; bottom: 0;
      padding: 44px 18px 16px;
      background: linear-gradient(to top, rgba(7,13,24,.92), transparent);
      font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; letter-spacing: .02em;
    }
    .g-cap small { display: block; font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
    @media (max-width: 760px) {
      .gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 220px;
        grid-template-areas: "a c" "a d" "b b";
        gap: 10px;
      }
      .g-cap { padding: 36px 12px 12px; font-size: 1rem; }
      .g-cap small { font-size: .65rem; }
    }

    /* Lightbox */
    .lightbox {
      border: none; padding: 0; background: transparent;
      max-width: min(92vw, 1100px); max-height: 90vh; margin: auto;
    }
    .lightbox::backdrop { background: rgba(3,6,12,.9); backdrop-filter: blur(4px); }
    .lightbox img { max-width: 100%; max-height: 82vh; border-radius: 12px; margin: 0 auto; }
    .lightbox p { text-align: center; color: var(--text); font-family: var(--font-head); font-size: 1.2rem; margin-top: 12px; }
    .lb-close {
      position: fixed; top: 16px; right: 16px;
      width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
      background: rgba(7,13,24,.7); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
    }

    /* Pilares / valores */
    .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .card {
      padding: 30px 26px; border-radius: var(--radius);
      background: var(--navy-800); border: 1px solid var(--line);
      transition: transform .25s ease, border-color .25s ease;
    }
    .card:hover { transform: translateY(-4px); border-color: rgba(212,166,74,.4); }
    .card-icon {
      width: 50px; height: 50px; border-radius: 12px; margin-bottom: 20px;
      display: grid; place-items: center;
      background: rgba(212,166,74,.12); color: var(--gold);
    }
    .card-icon svg { width: 26px; height: 26px; }
    .card h3 { margin-bottom: 10px; }
    .card p { color: var(--text-muted); font-size: .95rem; }
    @media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

    /* Docencia */
    .docencia { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
    .doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .doc-item { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
    .doc-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
    .doc-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
    .doc-item p { color: var(--text-muted); font-size: .93rem; }
    @media (max-width: 760px) { .doc-grid { grid-template-columns: 1fr; } }

    /* Método */
    .method-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
    .step { position: relative; padding: 32px 26px 28px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--line); overflow: hidden; }
    .step::before {
      counter-increment: step; content: "0" counter(step);
      position: absolute; top: -8px; right: 14px;
      font-family: var(--font-head); font-size: 5.5rem; font-weight: 800; color: rgba(212,166,74,.08); line-height: 1;
    }
    .step h3 { margin-bottom: 10px; position: relative; }
    .step p { color: var(--text-muted); font-size: .95rem; position: relative; }
    @media (max-width: 900px) { .method-steps { grid-template-columns: 1fr; } }

    /* CTA */
    .cta { padding: 0 0 100px; }
    .cta-box {
      position: relative; overflow: hidden;
      padding: 64px 40px; border-radius: 24px; text-align: center;
      background:
        radial-gradient(ellipse at top, rgba(212,166,74,.25), transparent 60%),
        linear-gradient(160deg, var(--navy-700), var(--navy-950));
      border: 1px solid rgba(212,166,74,.3);
    }
    .cta-box h2 { margin-bottom: 16px; }
    .cta-box .lead { margin: 0 auto 32px; }
    .cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
    @media (max-width: 520px) { .cta-box { padding: 48px 22px; } .cta-actions .btn { width: 100%; } }

    /* Footer */
    footer { border-top: 1px solid var(--line); padding: 32px 0 110px; color: var(--text-muted); font-size: .85rem; }
    .foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
    @media (min-width: 761px) { footer { padding-bottom: 32px; } }

    /* Barra fija en móvil */
    .sticky-cta {
      position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
      display: none; transform: translateY(140%); transition: transform .35s ease;
    }
    .sticky-cta.show { transform: translateY(0); }
    .sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
    @media (max-width: 760px) { .sticky-cta { display: block; } }

    /* Animación de entrada */
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.visible { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .reveal { opacity: 1; transform: none; transition: none; }
    }