/*Aqui hare responsive para pantallas pequeñas*/



@media (max-width: 1280px) {
  nav { padding: 0 80px; }
  .hero-container { left: 80px; }
  .hero-content h1 { font-size: 62px; }
  .hero-content p { max-width: 420px; }
  .hero-image img { left: 490px; }
  .tag-dev { left: 405px; }
  .hero-stats { margin-left: 80px; }
  .about-container { margin: 150px 80px; }
  .about-text p { width: 560px; left: 295px; }
  .about-cards { right: 185px; }
  .stack-container { margin: 100px 80px; }
  .stack-header p { left: 115px; }
  .projects-container { margin: 100px 80px; }
  .projects-header { gap: 210px; }
  .contacts-container { margin: 100px 80px; }
  .contact-header p { width: 580px; }
  .footer-container { padding: 0 80px; }
}

@media (max-width: 1024px) {
  nav { padding: 0 40px; }
  nav ul { gap: 20px; }
  .hero-container { left: 40px; }
  .hero-content h1 { font-size: 50px; max-width: 310px; }
  .hero-content p { font-size: 16px; max-width: 330px; }
  .hero-image img { width: 232px; height: 240px; left: 390px; bottom: 268px; }
  .tag-dev { left: 305px; bottom: 272px; }
  .hero-stats { margin-left: 40px; margin-top: -160px; }
  .about-container { margin: 100px 40px; }
  .about-text h2 { font-size: 36px; width: 255px; }
  .about-text p { width: 475px; left: 228px; top: -195px; }
  .about-cards { top: 258px; right: 45px; }
  .about-cards .card { width: 183px; }
  .stack-container { margin: 80px 40px; }
  .stack-header h2 { font-size: 40px; }
  .stack-header p { left: 75px; }
  .projects-container { margin: 80px 40px; }
  .projects-header { gap: 100px; }
  .projects-header h2 { font-size: 40px; }
  .contacts-container { margin: 80px 40px; }
  .contact-header h2 { font-size: 50px; }
  .contact-header p { width: 540px; }
  .footer-container { padding: 0 40px; }
}

@media (max-width: 768px) {
  header { height: 58px; }

  nav {
    height: 58px;
    padding: 0 20px;
  }

  nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 16px;
    font-size: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  html {
    scroll-padding-top: 70px;
  }

  #inicio.hero {
    height: auto;
    padding-bottom: 55px;
    background-size: calc(100% / 8) calc(100% / 12);
  }

  .hero-container {
    position: relative;
    top: 30px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    text-align: center;
  }

  .hero-image {
    order: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
  }

  .hero-image img {
    position: relative;
    width: 168px;
    height: 172px;
    left: 0;
    bottom: 0;
    outline-offset: 10px;
  }

  .tag-dev {
    position: relative;
    left: 0;
    bottom: 0;
    margin-top: 14px;
    display: inline-block;
  }

  .hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content .badge {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .hero-content h1 {
    font-size: 36px;
    max-width: 100%;
    margin-top: 20px;
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 15px;
    max-width: 100%;
    margin-top: 16px;
  }

  .hero-buttons {
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-stats {
    width: calc(100% - 48px);
    margin: 50px 24px 0;
    justify-content: space-around;
    padding-top: 28px;
  }

  .about {
    height: auto;
    padding-bottom: 60px;
  }

  .about-container {
    flex-direction: column;
    margin: 70px 24px;
  }

  .about-text h2 {
    font-size: 32px;
    width: 100%;
    margin-top: 12px;
  }

  .about-text p {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    font-size: 15px;
    margin-top: 16px;
  }

  .about-cards {
    position: relative;
    top: 0;
    right: 0;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
    margin-bottom: 0;
  }

  .about-cards .card {
    width: 100%;
    height: auto;
  }

  .stack-container {
    margin: 70px 24px;
  }

  .stack-header {
    flex-direction: column;
  }

  .stack-header h2 {
    position: relative;
    left: 0;
    top: 0;
    font-size: 32px;
    margin-top: 12px;
  }

  .stack-header p {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    text-align: left;
    margin-top: 10px;
  }

  .stack-grid {
    margin-top: 36px;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .tool-card {
    width: 100%;
    height: 90px;
  }

  .projects-container {
    margin: 70px 24px;
  }

  .projects-header {
    flex-direction: column;
    gap: 12px;
  }

  .projects-header h2 {
    font-size: 32px;
    margin-top: 10px;
  }

  .github-link {
    position: relative;
    top: 0;
    height: auto;
    justify-content: flex-start;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .project-card {
    width: 100%;
    height: auto;
    padding-bottom: 16px;
  }

  .description {
    height: auto;
    min-height: 70px;
  }

  .card-tags {
    margin: 10px 20px 0;
    padding-bottom: 0;
  }

  .contacts-container {
    margin: 70px 24px;
  }

  .contact-header h2 {
    font-size: 40px;
  }

  .contact-header p {
    width: 100%;
    font-size: 15px;
    margin-top: 20px;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 8px;
  }

  .social-links a {
    font-size: 13px;
    padding: 14px 16px;
  }

  .footer-container {
    flex-direction: column;
    height: auto;
    padding: 24px 20px;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 30px; }
  .hero-image img { width: 148px; height: 152px; }
  .about-text h2,
  .stack-header h2,
  .projects-header h2 { font-size: 28px; }
  .contact-header h2 { font-size: 32px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { border-radius: 14px; }
  .card-header { border-radius: 14px 14px 0 0; }
  .social-links a {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
}

@media (max-width: 360px) {
  nav ul { gap: 12px; font-size: 11px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content .badge { font-size: 10px; padding: 4px 8px; letter-spacing: 0; }
  .hero-image img { width: 136px; height: 140px; outline-offset: 8px; }
  .btn-primary { width: 145px; font-size: 13px; }
  .btn-secondary { width: 114px; font-size: 13px; }
  .about-text h2,
  .stack-header h2,
  .projects-header h2 { font-size: 24px; }
  .contact-header h2 { font-size: 26px; }
  .about-cards .card { padding: 14px; }
  .tool-card { height: 80px; }
  .stat h3 { font-size: 24px; }
}
