/* ==========================================================
   RESPONSIVE
   Ajustes según el tamaño de pantalla (de más ancho a más angosto).
   ========================================================== */

/* Pantallas muy anchas */
@media (min-width: 1500px) {
  .hero-art {
    right: calc(-665px + 50vw);
  }
}

/* Tablet / notebook chica */
@media (max-width: 1050px) {
  .container {
    width: calc(100% - 48px);
  }
  .desktop-nav {
    gap: 18px;
  }
  .header-inner {
    gap: 20px;
  }
  .hero-art {
    opacity: 0.9;
    width: 600px;
    right: -80px;
  }
  .hero-copy {
    max-width: 470px;
  }
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }
  .skill h3 {
    min-height: auto;
  }
  .about-grid,
  .contact-grid {
    gap: 45px;
  }
  h2 {
    font-size: 29px;
  }
  .project-body {
    padding: 18px;
  }
  .contact-section h2 {
    font-size: 32px;
  }
}

/* Celular */
@media (max-width: 700px) {
  .container {
    width: calc(100% - 28px);
  }
  .site-header {
    height: 70px;
  }
  .header-inner {
    grid-template-columns: minmax(0px, 1fr) auto;
    gap: 12px;
  }
  .desktop-nav,
  .header-contact {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .mobile-nav {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: grid;
  }
  .mobile-nav a {
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
    display: flex;
  }
  .wordmark {
    font-size: 19px;
  }
  .hero {
    min-height: 720px;
  }
  .hero-inner {
    min-height: 740px;
    padding-top: 48px;
  }
  .hero-art {
    opacity: 1;
    width: min(360px, 78vw);
    height: auto;
    top: 400px;
    right: calc(50% - min(180px, 39vw));
    z-index: 0;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    max-width: none;
  }
  h1 {
    margin-top: 20px;
    font-size: 48px;
  }
  .hero-description {
    max-width: 345px;
    margin-top: 18px;
    font-size: 14px;
  }
  .hero-actions {
    gap: 10px;
    margin-top: 24px;
  }
  .hero-actions a,
  .hero-actions button {
    height: 44px;
    padding-inline: 15px;
    font-size: 12px;
  }
  .hero-caption {
    display: none;
  }
  .explore-link {
    font-size: 10px;
    bottom: 16px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .section {
    padding-block: 52px;
  }
  h2 {
    font-size: 28px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .about-content > p {
    font-size: 13px;
  }
  .section-label {
    margin-bottom: 14px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 27px;
  }
  .section-heading > p br {
    display: none;
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 12px;
  }
  .skill {
    padding: 21px 17px;
  }
  .skill-icon {
    margin-bottom: 15px;
  }
  .skill p {
    font-size: 11px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .project-media {
    aspect-ratio: 1.8 / 1;
  }
  .project-body {
    padding: 23px;
  }
  .project p {
    font-size: 13px;
  }
  .section-aside {
    display: none;
  }
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-description br {
    display: none;
  }
  .experience-entry {
    gap: 15px;
  }
  .experience-entry h3 {
    font-size: 17px;
  }
  .contact-section {
    padding-block: 52px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-section h2 {
    font-size: 29px;
  }
  .site-footer {
    padding-block: 22px;
    font-size: 9px;
  }
  .footer-separator {
    margin-inline: 5px;
  }
}

/* Si la persona pidió "reducir movimiento" en su sistema, se apagan las animaciones */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition: none !important; animation: none !important; }
}
