/* Optimizaciones específicas para laptops 1360x768 */

/* Breakpoint específico para laptops 1360x768 y similares */
@media screen and (min-width: 1200px) and (max-width: 1400px) {

  /* Reducir padding lateral del contenido principal */
  .container-fluid {
    padding-left: 15rem !important;
  }

  /* Ajustar sidebar navigation */
  #sideNav {
    width: 15rem !important;
  }

  /* Reducir espaciado entre secciones */
  section.resume-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    min-height: auto !important;
  }

  /* Optimizar títulos principales */
  h1 {
    font-size: 4.5rem !important;
    line-height: 4rem !important;
  }

  h2 {
    font-size: 2.8rem !important;
    margin-bottom: 2rem !important;
  }

  /* Ajustar foto de perfil */
  #sideNav .navbar-brand .img-profile,
  .view .over {
    max-width: 8rem !important;
    max-height: 8rem !important;
  }

  /* Optimizar Skills section */
  .sb-container,
  .sb-container2 {
    width: 120px !important;
    height: 320px !important;
    margin: 20px auto 0 auto !important;
  }

  .sb-container div,
  .sb-container2 div {
    width: 110px !important;
    height: 320px !important;
  }

  .sb-icon {
    max-width: 45px !important;
    max-height: 45px !important;
    margin: 10px auto !important;
  }

  .sb-container h4,
  .sb-container2 h4 {
    font-size: 0.8rem !important;
    margin-top: 5px !important;
  }

  /* Portfolio carousel adjustments */
  .carousel-inner {
    max-height: 400px !important;
  }

  .img-galeria {
    max-height: 300px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  /* Competencias image optimization */
  .competencias {
    max-width: 500px !important;
    max-height: 300px !important;
    width: auto !important;
    height: auto !important;
  }

  /* YouTube player container */
  .youtube-player-container {
    max-width: 600px !important;
  }

  #youtube-player {
    height: 350px !important;
  }

  /* Formulario de contacto */
  .popup {
    max-width: 500px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }

  /* Optimizar spacing en experience section */
  .resume-item {
    margin-bottom: 2rem !important;
  }

  /* Ajustar footer */
  footer {
    margin-top: 2rem !important;
    padding: 2rem 0 !important;
  }

  /* Reducir padding en secciones específicas */
  .p-3.p-lg-5 {
    padding: 1.5rem !important;
  }

  /* Optimizar navegación del menú */
  #sideNav .navbar-nav .nav-item .nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
  }

  /* Ajustar botones de descarga */
  .nav__item ul {
    max-height: 150px !important;
    overflow-y: auto !important;
  }

  /* Mejorar legibilidad de texto */
  .subheading {
    font-size: 1.1rem !important;
  }

  /* Optimizar tabla de formación */
  .resume-content h3 {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  .resume-content h4 {
    font-size: 1.1rem !important;
  }

  /* Ajustar modales para laptop */
  .modal-dialog {
    max-width: 700px !important;
    margin: 1rem auto !important;
  }

  .modal-lg {
    max-width: 800px !important;
  }
}

/* Ajustes adicionales para altura específica de 768px */
@media screen and (min-width: 1200px) and (max-height: 800px) {

  /* Reducir altura mínima de secciones */
  section.resume-section {
    min-height: 600px !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Navbar más compacta */
  #sideNav {
    font-size: 0.85rem !important;
  }

  #sideNav .navbar-nav .nav-item {
    margin-bottom: 0.3rem !important;
  }

  /* Ajustar altura del carousel */
  .carousel-inner,
  .carousel-item {
    max-height: 350px !important;
  }

  /* Skills section más compacta */
  .skills-row {
    margin-bottom: 1rem !important;
  }

  /* Reducir espaciado en about section */
  #about .my-auto {
    padding: 1rem 0 !important;
  }

  /* Competencias más pequeñas */
  .competencias {
    max-width: 450px !important;
    max-height: 270px !important;
  }
}

/* Scroll suave optimizado para laptop */
@media screen and (min-width: 1200px) and (max-width: 1400px) {
  html {
    scroll-behavior: smooth;
  }

  /* Asegurar que el contenido no se superponga */
  .container-fluid {
    max-width: calc(100vw - 15rem) !important;
  }

  /* Optimizar el responsive del carrusel */
  .carousel-control-prev,
  .carousel-control-next {
    width: 8% !important;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 25px !important;
    height: 25px !important;
  }
}