  /* =====================
       VARIABLES Y RESET
    ===================== */
    :root {
      --bg:       #0f1117;
      --surface:  #181c27;
      --border:   #252c3b;
      --accent:   #4f8ef7;
      --green:    #3ecf8e;
      --text:     #e2e8f0;
      --muted:    #64748b;
      --radius:   10px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    a { text-decoration: none; color: inherit; }

    /* =====================
       NAVBAR
    ===================== */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 6%;
      height: 60px;
      background: rgba(15, 17, 23, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      font-weight: 700;
      font-size: 1.1rem;
    }
    .nav-logo span { color: var(--accent); }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--muted);
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--text); }

    /* =====================
       LAYOUT GENERAL
    ===================== */
    section {
      padding: 90px 6% 70px;
    }

    .section-tag {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }

    h2 {
      font-size: clamp(1.6rem, 3vw, 2.2rem);
      font-weight: 700;
      margin-bottom: 2.5rem;
    }

    /* =====================
       HERO
    ===================== */
    #hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-top: 100px;
      border-bottom: 1px solid var(--border);
      background-image: url(../images/image_e39047f7.png);
      background-size: cover;      /* Estira la imagen para cubrir todo el Hero */
      background-position: center; /* Centra el diseño */
      background-repeat: no-repeat;/* Evita que se duplique */

    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.3rem 0.85rem;
      border: 1px solid var(--border);
      border-radius: 100px;
      font-size: 0.75rem;
      color: var(--green);
      margin-bottom: 1.5rem;
      width: fit-content;
    }
    .dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--green);
      animation: blink 2s ease infinite;
    }
    @keyframes blink {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.3; }
    }

    .hero-title {
      font-size: clamp(2.2rem, 6vw, 3.8rem);
      font-weight: 700;
      line-height: 1.15;
      margin-bottom: 1.25rem;
    }
    .hero-title span { color: var(--accent); }

    .hero-sub {
      max-width: 500px;
      font-size: 1rem;
      color: var(--muted);
      margin-bottom: 2rem;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.65rem 1.4rem;
      border-radius: var(--radius);
      font-size: 0.875rem;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.2s;
    }
    .btn:hover { opacity: 0.85; transform: translateY(-1px); }

    .btn-primary { background: var(--accent); color: #fff; }
    .btn-outline  { background: transparent; border: 1px solid var(--border); color: var(--text); }

    .hero-stack {
      margin-top: 3rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }
    .hero-stack > span:first-child {
      font-size: 0.72rem;
      color: var(--muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .tech-pill {
      padding: 0.3rem 0.8rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 0.78rem;
      color: var(--muted);
    }

    /* =====================
       SOBRE MÍ
    ===================== */
    #sobre {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
    }

    .sobre-grid {
      display: grid;
      grid-template-columns: 200px 1fr;
      gap: 3.5rem;
      align-items: start;
    }

    .profile-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.6rem;
      text-align: center;
    }
    .profile-photo {
      width: 155px; height: 155px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid var(--border);
      background: var(--bg);
    }
    .profile-photo svg { width: 100%; height: 100%; }

    .profile-name { font-weight: 700; font-size: 1rem; }
    .profile-role { font-size: 0.75rem; color: var(--accent); }

    .bio p {
      font-size: 0.93rem;
      color: var(--muted);
      margin-bottom: 0.9rem;
    }
    .bio p strong { color: var(--text); }

    .skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-top: 1.25rem;
    }
    .skill {
      padding: 0.28rem 0.72rem;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
      font-size: 0.78rem;
      color: var(--muted);
    }

    .stats {
      display: flex;
      gap: 2rem;
      margin-top: 1.75rem;
      padding-top: 1.75rem;
      border-top: 1px solid var(--border);
      flex-wrap: wrap;
    }
    .stat-num   { font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
    .stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

    /* =====================
       PROYECTOS
    ===================== */
    #proyectos { border-bottom: 1px solid var(--border);
      background-image: url(../images/image_e39047f7.png);
      background-size: cover;      /* Estira la imagen para cubrir todo el Hero */
      background-position: center; /* Centra el diseño */
      background-repeat: no-repeat;/* Evita que se duplique */ 
    }

    .gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .card {
      background: var(--surface);
      padding: 1.75rem;
      position: relative;
      cursor: pointer;
      transition: background 0.2s;
    }
    .card:hover { background: #1e2435; }

    /* Barra de color en el top de cada tarjeta */
    .card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: var(--card-color, var(--accent));
      opacity: 0;
      transition: opacity 0.2s;
    }
    .card:hover::before { opacity: 1; }

    .card-icon {
      font-size: 1.4rem;
      margin-bottom: 0.9rem;
    }
    .card-title {
      font-weight: 700;
      font-size: 0.95rem;
      margin-bottom: 0.4rem;
    }
    .card-desc {
      font-size: 0.82rem;
      color: var(--muted);
      line-height: 1.65;
      margin-bottom: 1rem;
    }
    .card-tags {
      display: flex;
      gap: 0.35rem;
      flex-wrap: wrap;
    }
    .tag {
      padding: 0.18rem 0.55rem;
      border: 1px solid var(--border);
      border-radius: 4px;
      font-size: 0.68rem;
      color: var(--muted);
    }
    .card-link {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      margin-top: 1rem;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--accent);
      opacity: 0;
      transition: opacity 0.2s;
    }
    .card:hover .card-link { opacity: 1; }

    /* =====================
       FOOTER
    ===================== */
    footer {
      padding: 60px 6% 40px;
      border-top: 1px solid var(--border);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 2.5rem;
      margin-bottom: 3rem;
    }

    .footer-brand .nav-logo { display: block; font-size: 1.15rem; margin-bottom: 0.75rem; }
    .footer-brand p { font-size: 0.82rem; color: var(--muted); max-width: 220px; line-height: 1.7; }

    .footer-col h4 {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 1rem;
    }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
    .footer-col ul a {
      font-size: 0.85rem;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: color 0.2s;
    }
    .footer-col ul a:hover { color: var(--text); }

    .social-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
    .social-btn {
      width: 38px; height: 38px;
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted);
      transition: border-color 0.2s, color 0.2s;
    }
    .social-btn:hover { border-color: var(--accent); color: var(--accent); }

    .footer-bottom {
      padding-top: 2rem;
      border-top: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    .footer-bottom p { font-size: 0.78rem; color: var(--muted); }

    /* =====================
       ANIMACIÓN REVEAL
    ===================== */
    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }
    .reveal.show { opacity: 1; transform: translateY(0); }

    /* =====================
       RESPONSIVE
    ===================== */
    @media (max-width: 860px) {
      .sobre-grid       { grid-template-columns: 1fr; }
      .gallery          { grid-template-columns: 1fr 1fr; }
      .footer-grid      { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 560px) {
      .nav-links  { display: none; }
      .gallery    { grid-template-columns: 1fr; }
      .footer-grid{ grid-template-columns: 1fr; }
    }