/* Fixes adicionales específicos para laptops 1360x768 */

/* Media query específica para resolución 1360x768 */
@media screen and (width: 1360px) and (height: 768px),
       screen and (min-width: 1340px) and (max-width: 1380px) and (min-height: 750px) and (max-height: 780px) {

  /* Ajustar el contenedor principal */
  body {
    padding-left: 14rem !important;
    font-size: 14px !important;
  }

  /* Sidebar más estrecho */
  #sideNav {
    width: 14rem !important;
    padding: 0.5rem !important;
  }

  #sideNav .navbar-nav .nav-item .nav-link {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
  }

  /* Reducir imagen de perfil */
  .view .over,
  #sideNav .navbar-brand .img-profile {
    max-width: 7rem !important;
    max-height: 7rem !important;
  }

  /* Secciones más compactas */
  section.resume-section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    min-height: auto !important;
  }

  /* Títulos más pequeños */
  h1 {
    font-size: 3.5rem !important;
    line-height: 3.2rem !important;
    margin-bottom: 1rem !important;
  }

  h2 {
    font-size: 2.2rem !important;
    margin-bottom: 1.5rem !important;
  }

  h3 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  /* Optimizar la sección About */
  #about .my-auto {
    padding: 1rem !important;
  }

  /* Skills section super optimizada */
  #skill .container .row {
    gap: 1rem !important;
  }

  .sb-container,
  .sb-container2 {
    width: 100px !important;
    height: 280px !important;
    margin: 15px auto !important;
  }

  .sb-container div,
  .sb-container2 div {
    width: 90px !important;
    height: 280px !important;
  }

  .sb-icon {
    max-width: 35px !important;
    max-height: 35px !important;
    margin: 8px auto !important;
  }

  .sb-container h4 span,
  .sb-container2 h4 span {
    font-size: 0.7rem !important;
    display: block !important;
    margin-top: 3px !important;
  }

  /* Portfolio carousel más pequeño */
  .carousel-inner {
    max-height: 320px !important;
  }

  .img-galeria {
    max-height: 240px !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .carousel-item h4 {
    font-size: 1.1rem !important;
    margin: 0.5rem 0 !important;
  }

  .carousel-item h5 {
    font-size: 0.9rem !important;
    margin: 0.3rem 0 !important;
  }

  .carousel-item p {
    font-size: 0.8rem !important;
    margin: 0.2rem 0 !important;
  }

  /* Competencias más pequeñas */
  .competencias {
    max-width: 400px !important;
    max-height: 240px !important;
    width: auto !important;
    height: auto !important;
  }

  /* YouTube player compacto */
  .youtube-player-container {
    max-width: 500px !important;
  }

  #youtube-player {
    height: 280px !important;
  }

  .custom-controls .btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    margin: 0 2px !important;
  }

  /* Experience section más compacta */
  .resume-item {
    margin-bottom: 1.5rem !important;
  }

  .resume-item .resume-content {
    margin-right: 1rem !important;
  }

  .resume-item p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }

  .resume-date {
    font-size: 0.85rem !important;
    min-width: 14rem !important;
  }

  /* Education section optimizada */
  .resume-content h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.5rem !important;
  }

  .resume-content h4 {
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
  }

  .subheading {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Logos de instituciones más pequeños */
  .sb-icon {
    max-width: 60px !important;
    max-height: 40px !important;
  }

  /* Footer más compacto */
  footer {
    padding: 1.5rem 0 !important;
    margin-top: 1.5rem !important;
  }

  footer p {
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem !important;
  }

  /* Popup de contacto */
  .popup {
    max-width: 450px !important;
    max-height: 70vh !important;
    padding: 1.5rem !important;
  }

  .popup h1 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
  }

  .contenedor-inputs input,
  .contenedor-inputs textarea {
    padding: 0.5rem !important;
    margin-bottom: 0.8rem !important;
    font-size: 0.9rem !important;
  }

  /* Modales más pequeños */
  .modal-dialog {
    max-width: 600px !important;
    margin: 0.5rem auto !important;
  }

  .modal-body {
    padding: 1rem !important;
    font-size: 0.9rem !important;
  }

  .modal-body h6 {
    font-size: 1rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Navegación del menú desplegable */
  .nav__item ul {
    max-height: 120px !important;
    font-size: 0.8rem !important;
  }

  .nav__item ul li a {
    padding: 0.3rem 0.6rem !important;
  }

  /* Botón de contacto */
  .boton-contacto-menu {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    margin-top: 0.5rem !important;
  }

  /* Optimización del container fluid */
  .container-fluid.p-0 {
    padding-left: 14rem !important;
    padding-right: 0.5rem !important;
  }

  /* Ajuste final para el contenido principal */
  main.container-fluid {
    max-width: calc(100vw - 14rem) !important;
    overflow-x: hidden !important;
  }
}

/* Media query para altura específica de 768px */
@media screen and (height: 768px),
       screen and (min-height: 750px) and (max-height: 780px) {

  /* Navegación aún más compacta */
  #sideNav .navbar-nav .nav-item {
    margin-bottom: 0.1rem !important;
  }

  /* Secciones sin altura mínima */
  section.resume-section {
    min-height: auto !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* About section muy compacta */
  #about {
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
  }

  /* Skills aún más pequeños */
  .sb-container,
  .sb-container2 {
    height: 250px !important;
  }

  .sb-container div,
  .sb-container2 div {
    height: 250px !important;
  }

  /* Portfolio muy compacto */
  .carousel-inner {
    max-height: 280px !important;
  }

  .img-galeria {
    max-height: 200px !important;
  }

  /* Competencias muy pequeñas */
  .competencias {
    max-width: 350px !important;
    max-height: 210px !important;
  }

  /* Video player muy compacto */
  #youtube-player {
    height: 250px !important;
  }
}