/************************* MEDIA QUERIES CLAVES ***************************/
@media (width >= 375px) {
  .navbar {
    padding: 1rem 1.5rem;
    width: 80%;
  }

  /* Mostramos el botón de hamburguesa */
  .menu-toggle {
    display: block;
    z-index: 1001; /* Siempre por encima */
  }

  /* Ocultamos el botón Hablemos superior en móvil */
  .contact {
    display: none;
  }

  /* PANEL MÓVIL OCULTO FUERA DE PANTALLA PERFECTAMENTE */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 13, 16, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    /* La magia anti-desborde: lo empujamos 100% a la derecha fuera de la vista */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  /* Clase que activa JavaScript para traerlo a la pantalla */
  .nav-links.active-mobile {
    transform: translateX(0); /* Lo trae a su posición original */
  }

  /* Tamaños de texto cómodos para móvil */
  .nav-links li a {
    font-size: 1.4rem;
    font-weight: 600;
  }
  header .name a {
    font-size: 2rem !important;
  }
  .about {
    height: 100%;
    padding-top: 6.5rem;
  }
  .about .container {
    width: 90%;
  }
  .status .active {
    font-size: 12px !important;
    padding: 0.5rem 1rem !important;
  }
  .description-me .name {
    font-size: 40px !important;
  }
  .description-me .title {
    font-size: 15px !important;
  }
  .description-me .description {
    font-size: 12px !important;
    width: 100% !important;
  }
  .about .btn {
    display: block !important;
  }
  .about .about-me .cards .container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /*PROYECTOS*/
  .projects {
    height: 100%;
  }
  .projects .container {
    width: 90%;
  }
  .projects-header p {
    font-size: 12px !important;
  }
  .projects-header a {
    font-size: 12px !important;
  }
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }
  .about_me {
    width: 100%;
    height: 100%;
  }
  .about_me .about-container {
    width: 90%;
  }
  .about-container .text-info {
    grid-template-columns: repeat(1, 1fr);
  }
  .text-info .info p {
    font-size: 12px !important;
  }
  .text-info .tickets p {
    font-size: 12px !important;
  }

  .services {
    height: 100%;
  }
  .services .container {
    width: 90%;
  }
  .services .services-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .services h1 {
    font-size: 3rem !important;
  }
  .contact-section {
    height: 100%;
  }
  .contact-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  dialog {
    margin: 60% 10%;
  }
}

/************************* MEDIA QUERIES CLAVES ***************************/
@media (width >= 1080px) {
  .navbar {
    width: 70%;
  }
  .about {
    height: 100%;
    height: 100dvb;
  }
  .about .container {
    width: 80%;
  }
  .status .active {
    font-size: 12px !important;
    padding: 0.5rem 1rem !important;
  }
  .description-me .name {
    font-size: 6rem !important;
  }
  .description-me .title {
    font-size: 2rem !important;
  }
  .description-me .description {
    font-size: 1rem !important;
    width: 70% !important;
  }
  .about .btn {
    display: flex !important;
  }
  .about .about-me .cards .container {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  /*PROYECTOS*/
  .projects {
    height: 100%;
    height: 100dvb;
  }
  .projects .container {
    width: 80%;
  }
  .projects-header p {
    font-size: 0.9rem !important;
  }
  .projects-header a {
    font-size: 0.9rem !important;
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .about_me {
    width: 100%;
    height: 100dvb;
  }
  .about_me .about-container {
    width: 80%;
  }
  .about-container .text-info {
    grid-template-columns: repeat(2, 1fr);
  }
  .text-info .info p {
    font-size: 0.9rem !important;
  }
  .text-info .tickets p {
    font-size: 0.8rem !important;
  }

  .services {
    height: 100%;
    height: 100dvb;
    width: 100%;
  }
  .services .container {
    width: 90%;
  }
  .services .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .services h1 {
    font-size: 3.2rem !important;
  }
  .contact-section {
    height: 100dvh;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  dialog {
    margin: 20% auto;
  }
  /* ============================================
   1. VERSIÓN PC (Escritorio) - Estilos por defecto
   ============================================ */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: relative;
    transform: translateX(0);
    width: auto;
    height: auto;
    background: transparent;
    gap: 2rem;
    list-style: none;
  }
  .menu-toggle {
    display: none;
  }
  .contact {
    display: block;
  }
}
