
@media (min-width: 600px) {
  .contenedor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .contenedor-grid { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (min-width: 1026px) {

  .nav-toggle {
    display: none !important;
  }
}
@media screen and (max-width: 1025px) {
.nav-toggle {
    display: block !important; 
  }
  .navigation {
	display: flex;
    flex-direction: row;
    visibility: hidden;
    opacity: 0; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* Tu franja blanca */
    z-index: 9998;
  }
  .navigation.open {
  display: flex;
  visibility: visible;
  opacity: 1;
  flex-direction: column;
  justify-content: flex-start; 
  align-items: center;
  padding-top: 5vh;
  min-height: 35vh;
  text-align: center; 
}
  .navigation li {
    display: block;    
  }  
  .navigation a {
    margin-left: 0;
    font-size: 20px;
  }
  .flex-control-nav {
    bottom: 20px;
  }
}
@media screen and (max-width: 768px) {
	#header {
        background-color: transparent !important;
    }
	.nav-toggle{display: flex;align-items: center;justify-content: center;}

  .navigation .primary-nav {
    top: 60px;
    transform: none;
    margin: 0;
  }
   .navigation {
  display: flex;
  flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #logoportada {
  min-height: 400px;
  width: 90%;
}
#logoportada img {
  aspect-ratio: 1 / 1;
  width: 100px !important; 
  height: 100px !important;;
}
  .visual-hook {
  height: 35vh; 
}

  #botonesgralesp, #caracteristicas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-repeat: no-repeat;
    background-position: center;
  }
  #botonesgralesp .container {
    width: 100% !important;
    margin: 0;
    float: none !important;
    text-align: center;
    padding: 0;
  }
  .container .contmenuespsub {
    width: 100%;
  }

  .container .contmenuespsub .botsub a{font-size:12px;}
    #caracteristicas .container {
    width: 100% !important;
    margin: 0 auto;
    float: none !important;
    text-align: center;
    padding: 0;
  }
  #botonesgralesp .contmenuesp {
    float: none !important;
    margin: 0 auto;
    text-align: center;
	width: 100%;
  }
    #caracteristicas .contmenuesp {
    float: none !important;
    margin: 0 auto;
    text-align: center;
  }
  #botonesgral .container .row .contmenuesp {
    float: none !important;
    margin: 0 auto;
    text-align: center;
  }
  .botonesgral .inner-div a{font-size:12px;}
  .flex-control-nav {
    width: 100%;
  }
    .footer .col-md-6 {
        margin-bottom: 40px;
    }
  .image-display {
    width: calc(100% - 30px);
    padding: 0;
    height: 100%;
  }
  .scroll-wrapper {
    max-width: 700px;
  }
  .scroll-container img {
    width: 25%;
    height: auto;
  }
  .scroll-nav {
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    padding: 8px;
  }
  .scroll-nav.scroll-prev { left: 5px; }
  .scroll-nav.scroll-next { right: 5px; }
  /* Botones */
  .btn {
    padding: 8px;
  }
  .btn.prev { left: 0; }
  .btn.next { right: 0; }
    #botonesgralesp .container {
    padding-top: 0;
    width: 100%;
    margin: 0;
  }
  .pair {
    width: calc(33.33% - 10px);
  }
.img-responsiva-1 {
  max-width: 602px;
  aspect-ratio: 602 / 401; 
}
#caracteristicas{;padding-right:5%;padding-left:5%;}
#caracteristicas .container{width:90%;}
#menu {padding-right:5%;padding-left:5%;}

    .grid-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
	.grid-enlaces {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer .col-md-6 {
        margin-bottom: 40px;

}
@media screen and (max-width: 640px) {
  .banner-inner-wrapper {
    margin-top: 30px;
    text-align: center;
  }
  #thumbnailContainer {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    padding: 10px;
  }
  .thumbnail {
    flex: 0 0 auto;
    width: 30%;
    margin: 0 1%;
    cursor: pointer;
  }
 
}
@media (max-width: 600px) {

#botonesgralesp .container {
	padding-top: 0%;
	width: 100%;
	margin-right: 0px;
	margin-left: 0px;
}
#botonesgralesp {
	background-repeat: no-repeat;
	background-position: center;
	padding-bottom: 5%;
	justify-content: center;
	text-align: center;
	align-items: center;
	padding-top: 0px;
	padding-right: 5%;
	padding-left: 5%;
}
}
@media (max-height: 600px) and (orientation: landscape) {
  #portada {
    overflow-y: auto;
  }
h1 {
  font-size: 2.2rem;
  padding: 0.3rem 0;
}
h2 {
  font-size: 2rem;
  padding: 0.3rem 0;
}
  #portada p{
    font-size:14px;
  }
  .visual-hook {
  height: 100vh; 
}

  .contenido-portada {
    bottom: 2vw;
  }
   #menu {padding-right:20%;padding-left:20%;}
  }
@media screen and (max-width: 480px) {
  #portada p{
    font-size:12px;
  }

  .contenido-portada {
    bottom: 1vw;
  }
  #botonesgralesp .container {
    width: 100% !important;
    float: none !important;
    padding: 0;
  }
  .pair {
    width: 100%;
    margin: 5px 0;
    text-align: center;
  }
    #botonesgral .container {
    width: 90% !important;
    float: none !important;
    padding: 0;
  }
  .navigation li {
    display: block;
    margin: 5px 0 20px;
  }
  #thumbnailContainer {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    padding: 10px;
  }
  .thumbnail {
    flex: 0 0 auto;
    width: 30%;
    margin: 0 1%;
    cursor: pointer;
  }
#botonesgralesp .container {
	padding-top: 0%;
	width: 100%;
	margin-right: 0px;
	margin-left: 0px;
}
#botonesgralesp {
	background-repeat: no-repeat;
	background-position: center;
	padding-bottom: 5%;
	justify-content: center;
	text-align: center;
	align-items: center;
	padding-top: 0px;
	padding-right: 15px;
	padding-left: 15px;
}
 .pair {width: calc(50% - 5px);}

}
 @media screen and (max-width: 320px) {
  .navigation li {
    display: block;
    line-height: 4em;
  }
  .banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .banner-inner-wrapper {
    margin-top: 100px;
    text-align: center;
  }
  .banner-text {
    text-align: center;
  }
  .banner-text p {
    font-size: 13px;
  }
  .testimonials blockquote {
    padding: 20px 5% 0;
  }
  .testimonials p {
    font-size: 26px;
  }
  #botonesgralesp .container .contmenuespsub {
    float: left;
    width: 100%;
  }
  #thumbnailContainer {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    padding: 10px;
  }
  .thumbnail {
    flex: 0 0 auto;
    width: 30%;
    margin: 0 1%;
    cursor: pointer;
  }
}