/* ============================================
   MOBILE FIRST — aplica en todos los móviles
   ============================================ */

/* Ocultar nav links en móvil, mostrar hamburguesa */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* HERO */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }
  .avail-badge,
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns,
  .hero-socials {
    justify-content: center;
  }
  .hero-photo-wrap {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .hero-photo-ring {
    width: 220px;
    height: 220px;
  }

  /* SOBRE MÍ — foto arriba del texto siempre */
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px;
  }
  .about-photo-wrap {
    order: 0 !important;
    width: 100%;
  }
  .about-text {
    order: 1 !important;
  }
  .about-photo {
    aspect-ratio: 4/3;
    max-height: 260px;
  }

  /* STATS */
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .stat-card {
    padding: 10px 4px !important;
    border-radius: 8px;
  }
  .stat-num {
    font-size: 1rem !important;
    line-height: 1;
  }
  .stat-label {
    font-size: 0.5rem !important;
    letter-spacing: 0.04em;
    margin-top: 4px;
  }

  .projects-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  .project-card {
    width: 100%;
  }

  /* CONTACTO */
  .contact-socials {
    flex-direction: column;
    align-items: center;
  }

  /* FOOTER */
  .footer-right {
    display: none;
  }

  .project-thumb {
    position: relative;
    width: 100%;
    height: 200px; /* altura fija en móvil */
    aspect-ratio: unset;
  }

  .project-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Tablet: proyectos en 2 columnas, nav visible */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }
  .avail-badge,
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns,
  .hero-socials {
    justify-content: center;
  }
  .hero-photo-wrap {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .hero-photo-ring {
    width: 220px;
    height: 220px;
  }
  .about-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px;
  }
  .about-photo-wrap {
    order: 0 !important;
  }
  .about-text {
    order: 1 !important;
  }
  .about-photo {
    aspect-ratio: 4/3;
    max-height: 260px;
  }
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}
