 *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --ink: #0d1117;
    --paper: #f5f0e8;
    --water: #1a4a6b;
    --water-light: #2e6f9e;
    --water-pale: #c8dde9;
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --stone: #7a7060;
    --mist: #e8e2d6;
    --accent: #8b3a3a;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
  }

  /* ── NOISE TEXTURE OVERLAY ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
  }

  /* ── SCROLL PROGRESS ── */
  #progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--water-light));
    z-index: 1000;
    transition: width 0.1s;
    width: 0%;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    mix-blend-mode: normal;
    transition: background 0.4s, padding 0.4s;
  }
  nav.scrolled {
    background: rgba(245,240,232,0.92);
    backdrop-filter: blur(12px);
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--mist);
  }
  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--water);
    text-transform: uppercase;
    text-decoration: none;
  }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--stone);
    transition: color 0.3s;
    font-weight: 500;
  }
  .nav-links a:hover { color: var(--water); }
/* 1. Sube el Nav para que esté por encima del ruido */
nav {
  /* ... tus estilos actuales ... */
  z-index: 10001; /* Debe ser mayor al z-index del ruido */
}

/* 2. Asegúrate de que el ruido esté por debajo del menú */
body::before {
  /* ... tus estilos actuales ... */
  z-index: 10000; 
  pointer-events: none; /* Importante para que no bloquee los clicks del nav */
}

/* 3. Estabiliza el Nav en móviles (dentro de tu @media max-width: 900px) */
@media (max-width: 900px) {
  nav {
    padding: 1rem 2rem;
    background: var(--paper); /* Fondo sólido desde el inicio en celular */
    border-bottom: 1px solid var(--mist);
  }
}
  /* ── HERO ── */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    background: var(--water);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 5rem 8rem 6rem;
    position: relative;
    overflow: hidden;
  }

  .hero-left::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='%23ffffff' fill-opacity='0.04'%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");
  }

  /* Animated water waves */
  .hero-left::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    animation: ripple 4s ease-out infinite;
  }

  @keyframes ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
  }

  .hero-tag {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
  }
  .hero-tag::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
  }

  .hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.5s forwards;
  }
  .hero-name em {
    font-style: italic;
    color: var(--gold-light);
    display: block;
  }

  .hero-title {
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 1.5rem 0 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 2rem;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s;
    width: fit-content;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s forwards;
  }
  .hero-cta:hover {
    background: var(--gold);
    color: var(--water);
  }
  .hero-cta svg { transition: transform 0.3s; }
  .hero-cta:hover svg { transform: translateX(5px); }

  .hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    opacity: 0;
    animation: fadeUp 0.8s 1.1s forwards;
  }
  .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
  }
  .stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 0.3rem;
  }

  /* Hero Right - Photo Area */
  .hero-right {
    background: var(--mist);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(26,74,107,0.08) 100%);
  }

  .photo-frame {
    position: relative;
    width: 340px;
    height: 440px;
    opacity: 0;
    animation: fadeIn 1s 0.8s forwards;
  }

  .photo-frame::before {
    content: '';
    position: absolute;
    top: -16px; right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    z-index: 0;
  }
/* Esto afecta a la imagen dentro de .photo-inner */
/* AJUSTE PARA QUE LA CARA NO SE CORTE */
.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subimos el zoom para "acercarnos" a ella y que no se vea tanta pared */
  transform: scale(1.6); 
  /* '25%' la mueve a la izquierda y '85%' la sube (enfoca la parte de abajo de la foto) */
  object-position: 25% 85%; 
  transition: transform 0.5s ease;
}

.photo-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--water); /* Fondo oscuro por si la imagen tarda en cargar */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Círculo perfecto */
}

  /* Photo placeholder - replace src with real photo */
 .photo-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--water-pale) 0%, var(--water) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

  .photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.7);
  }
  .photo-placeholder svg { opacity: 0.5; }
  .photo-placeholder span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.6;
  }

  .photo-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gold);
    color: var(--ink);
    padding: 1rem 1.4rem;
    z-index: 2;
  }
  .photo-badge-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
  }
  .photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene la proporción */
  transform: scale(1.4); /* <--- AJUSTA EL ZOOM AQUÍ (1.4 = 140%) */
  object-position: center top; /* Centra el zoom en la cara */
}

  .hero-geo {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--stone);
    letter-spacing: 0.1em;
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* ── SECTION COMMONS ── */
  section { position: relative; }

  .section-label {
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .section-label::after {
    content: '';
    display: block;
    height: 1px;
    width: 60px;
    background: var(--gold);
    opacity: 0.5;
  }

  .section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--water);
  }
  .section-heading em {
    font-style: italic;
    color: var(--gold);
  }

  /* ── ABOUT ── */
  #about {
    padding: 7rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
    background: var(--paper);
  }

  .about-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--ink);
    font-weight: 300;
  }
  .about-intro strong {
    color: var(--water);
    font-weight: 600;
  }

  .about-body {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--stone);
    margin-top: 1.5rem;
  }

  .contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
  }
  .contact-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--mist);
    font-size: 0.78rem;
    color: var(--stone);
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.05em;
  }
  .contact-chip:hover {
    border-color: var(--water);
    color: var(--water);
    background: rgba(26,74,107,0.04);
  }

  /* ── EXPERIENCE ── */
  #experience {
    padding: 7rem 6rem;
    background: var(--ink);
    color: #fff;
  }

  .exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 4rem;
  }

  .exp-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 2.5rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }
  .exp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--gold), var(--water-light));
    transition: height 0.4s;
  }
  .exp-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
  }
  .exp-card:hover::before { height: 100%; }

  .exp-company {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }
  .exp-role {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.5rem;
  }
  .exp-period {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
  }
  .exp-desc {
    font-size: 0.82rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem;
  }
  .exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .exp-tag {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold);
  }

  .exp-main {
    grid-column: 1 / -1;
    background: rgba(26,74,107,0.15);
  }
  .exp-main .exp-role { font-size: 1.9rem; }
  .exp-bullets {
    list-style: none;
    margin-top: 1rem;
  }
  .exp-bullets li {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    padding: 0.5rem 0;
    padding-left: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    line-height: 1.6;
  }
  .exp-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.6rem;
    top: 0.65rem;
  }

  /* ── SKILLS ── */
  #skills {
    padding: 7rem 6rem;
    background: var(--paper);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .skills-col h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--water);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mist);
  }

  .skill-item {
    margin-bottom: 1.2rem;
  }
  .skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
    letter-spacing: 0.05em;
  }
  .skill-bar {
    height: 3px;
    background: var(--mist);
    position: relative;
    overflow: hidden;
  }
  .skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--water), var(--gold));
    width: 0;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  }

  .software-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
  }
  .sw-pill {
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--mist);
    font-size: 0.72rem;
    text-align: center;
    letter-spacing: 0.05em;
    color: var(--stone);
    transition: all 0.3s;
    font-weight: 500;
  }
  .sw-pill:hover {
    border-color: var(--water);
    color: var(--water);
    background: rgba(26,74,107,0.04);
  }

  /* Languages */
  .lang-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
  }
  .lang-card {
    flex: 1;
    border: 1px solid var(--mist);
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s;
  }
  .lang-card:hover { border-color: var(--water); }
  .lang-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--water);
  }
  .lang-level {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--stone);
    margin-top: 0.3rem;
  }
  .lang-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
  }
  .dot {
    width: 8px; 
    height: 8px;
    border-radius: 50%;
    background: var(--mist);
    /* ESTO ES LO QUE FALTA PARA QUE SE VEAN */
    display: inline-block; 
  }
  
  .dot.active { 
    background: var(--gold); 
  }
  /* ── EDUCATION ── */
  #education {
    padding: 7rem 6rem;
    background: linear-gradient(135deg, var(--water) 0%, #0d2d3f 100%);
    color: #fff;
  }

  .edu-timeline {
    margin-top: 4rem;
    position: relative;
    padding-left: 3rem;
  }
  .edu-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1));
  }

  .edu-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s;
  }
  .edu-item.visible { opacity: 1; transform: translateX(0); }
  .edu-item::before {
    content: '';
    position: absolute;
    left: -3.4rem;
    top: 0.35rem;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--water);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
  }

  .edu-period {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
  }
  .edu-degree {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.2rem;
  }
  .edu-school {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
  }

  /* ── STRENGTHS ── */
  #strengths {
    padding: 7rem 6rem;
    background: var(--paper);
  }
  .strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 4rem;
  }
  .strength-card {
    padding: 3rem 2.5rem;
    background: var(--mist);
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
  }
  .strength-card:hover { background: var(--water); }
  .strength-card:hover .strength-text { color: rgba(255,255,255,0.7); }
  .strength-card:hover .strength-title { color: #fff; }
  .strength-card:hover .strength-num { color: rgba(255,255,255,0.15); }
  .strength-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    color: rgba(26,74,107,0.08);
    line-height: 1;
    position: absolute;
    top: 1rem; right: 1.5rem;
    transition: color 0.4s;
  }
  .strength-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--water);
    margin-bottom: 0.8rem;
    transition: color 0.4s;
  }
  .strength-text {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--stone);
    transition: color 0.4s;
  }

  /* ── CONTACT FOOTER ── */
  #contact {
    padding: 6rem 6rem 4rem;
    background: var(--ink);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  .contact-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin-top: 1.5rem;
  }
  .contact-heading em {
    font-style: italic;
    color: var(--gold);
  }

  .contact-links { margin-top: 2rem; }
  .contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    transition: color 0.3s;
    letter-spacing: 0.05em;
  }
  .contact-link:hover { color: var(--gold-light); }
  .contact-link-icon {
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
  }
  .contact-link:hover .contact-link-icon {
    border-color: var(--gold);
    background: rgba(201,168,76,0.1);
  }

  .references {
    margin-top: 0;
  }
  .ref-title {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .ref-title::after {
    content: '';
    display: block;
    height: 1px;
    flex: 1;
    background: rgba(201,168,76,0.3);
  }
  .ref-card {
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 1rem;
    transition: all 0.3s;
  }
  .ref-card:hover { border-color: rgba(201,168,76,0.3); background: rgba(255,255,255,0.02); }
  .ref-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.2rem;
  }
  .ref-company { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; }
  .ref-info { font-size: 0.78rem; color: rgba(255,255,255,0.4); line-height: 1.7; }

  .footer-bottom {
    grid-column: 1/-1;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
    margin-top: 2rem;
  }
  .footer-cip {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    opacity: 0.7;
    font-size: 0.9rem;
  }

  /* ── MOBILE HAMBURGER ── */
  .burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
  }
  .burger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--water);
    transition: all 0.3s;
  }

  /* ── REVEAL ON SCROLL ── */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s, transform 0.7s;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* --- ESTILO PARA NÚMEROS NORMALES --- */
.stat-num {
  font-family: 'DM Sans', sans-serif !important; /* Fuerza la fuente sin serifas */
  font-size: 2.5rem;
  font-weight: 700; /* Los hace ver más profesionales */
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.02em; /* Estrecha un poco para que se vea más moderno */
}

.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

  /* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* NAV: Fondo sólido para legibilidad */
  nav { 
    padding: 1.2rem 2rem; 
    background: var(--paper); 
    border-bottom: 1px solid var(--mist);
  }
  nav.scrolled { padding: 0.8rem 2rem; }
  .nav-links { display: none; }
  .burger { display: flex; }

  /* HERO: Foto circular y debajo del texto */
  #hero { grid-template-columns: 1fr; min-height: auto; display: flex; flex-direction: column; }
  
  .hero-left { 
    padding: 8rem 2rem 3rem; /* Ajuste de padding para el nav sólido */
    order: 1; 
  }
  
  .hero-right { 
    min-height: 350px; 
    order: 2; 
    background: var(--water); /* Fondo oscuro para que la foto destaque */
    padding: 2rem 0 4rem;
  }

  /* PHOTO: Forma circular y Zoom */
  .photo-frame { 
    width: 260px; 
    height: 260px; 
    margin: 0 auto;
  }
  
  .photo-frame::before { display: none; } /* Quitamos el marco cuadrado */

  .photo-inner { 
    border-radius: 50%; /* Foto Circular */
    border: 3px solid var(--gold);
  }

  /* Zoom a la imagen dentro del contenedor */
  .photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3); /* <--- ZOOM AQUÍ */
  }

  .photo-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    white-space: nowrap;
  }

  /* RESTO DE SECCIONES (Tus originales) */
  #about { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 2rem; }
  #experience { padding: 4rem 2rem; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-main { grid-column: auto; }
  #skills { grid-template-columns: 1fr; gap: 2rem; padding: 4rem 2rem; }
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  #education { padding: 4rem 2rem; }
  .edu-timeline { padding-left: 2rem; }
  .edu-item::before { left: -2.4rem; }
  #strengths { padding: 4rem 2rem; }
  .strengths-grid { grid-template-columns: 1fr; }
  #contact { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 2rem 3rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}