
/* ORDEN de estilos:
1- Posicionamiento --> static, absolute, relative, fixed
2- Modelo de caja (Box model) --> margin, border, padding, content
3- Tipografía --> tipos, tamaños de fuente, etc
4- Estilos visuales --> box-shadow, border-radius, gradient, etc
5- Otros --> reglas CSS y más 
*/
/* Go from zero to full opacity */
@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
  }

:root{
    --darkest-primary-color: #001233;
    --dark-3-primary-color: #001845;
    --dark-2-primary-color: #002855;
    --dark-1-primary-color: #023E7D;
    --light-1-primary-color:#0353A4;
    --lightest-primary-color:#0466C8;

    --darkest-secondary-color: #33415C;
    --dark-1-secondary-color: #5C677D;
    --light-2-secondary-color:#7D8597;
    --light-1-secondary-color:#9da3b3;
    --lightest-secondary-color:#e0e3eb;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html{
    font-size:62.5%;
    font-family: 'DM Sans',sans-serif;

}

body{
    height: 100vh;
    width: 100%;
   
}

/* header styles */
header{
    height: 50vh;
    width: 100%;
    min-width: 320px;
    min-height: 652px;
    max-height: 900px;
    text-align: center;
    background-image: linear-gradient(134deg, #979dacc9 0%, #023d7de8 100%), url('images/closeup-of-working-table-workplace-office.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

header .header_menu-container {
    position: fixed;
    width: 100%;
    min-width: 290px;
    height: 15vh;
    min-height: 120px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #e9edf5;
    z-index: 20;
}

.title-container h1{
    font-size: 2rem;
    color: var(--dark-2-primary-color);
}

.title-container img{
    border-radius:10px;
}

span{
    width: 50px;
    height: 50px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}

.toggle-nav{
    background-image: url('images/menu.png');
    
}

#close-button{
    width: 20px;
    height: 20px;
    background-image: url('images/cerrar.png');
    
}

.menu-container{
    margin-top: 20px;
    position:fixed;
    top: 0;
    right: 0;
    width: 50%;
    display:none;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
    background: #d3d5db;
    border-radius:5px;   
}

.title-menu_container {
    margin-top: -20px;
    width: 100%;
    height: 80px;
    padding-right: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--darkest-secondary-color);
    
}
.title-menu_container h3{
    margin-left: 1em;
    font-size: 2.3rem;
    font-weight: 700;
    color:var(--light-2-secondary-color);
}


nav{
    width: 100%;
}
nav ul{
    width: 100%;
}
nav a{
    display: block;
    margin: 0 10px;
    margin-bottom: 1em;
    font-size:2rem;
    font-weight:600;
    border-bottom: 1px solid var(--dark-1-secondary-color);
    color: var(--dark-1-primary-color);
    transition: all 1000ms;
}


/* main title styles */
.header-title_container{
    position: relative;
    top: 300px;
    margin: 0 auto;
    width: 80%;
    min-width: 290px;
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
}

.header-title_container h2{
    font-size: 4rem;
    font-weight: 500;
    color: #e9edf5;
}

.header-title_container a{
    display: block;
    margin-top: 4em;
    padding: 1em;
    font-size:clamp(2rem, 2vw, 2.5rem);
    font-weight: bold;
    background:#e9edf5;
    color: var(--light-1-primary-color);
    border-radius: 20px;
    transition: all 500ms;
}

.header-title_container a:hover{
    color: #e9edf5;
    background:var(--dark-3-primary-color);
}


/* who section styles */
.who-section{
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    min-width: 320px;
    min-height: 50vh;
    background:var(--dark-2-primary-color);
}


.who-section div:first-child{
    min-width: 290px;
    max-width: 600px;
    padding:3.5em;
    background: var(--dark-2-primary-color); 
}

.who-section h3{
    margin-top: 1em;
    margin-bottom: 2em;
    font-size: 2.8rem;
    font-weight: bold;
    text-align: center;
    color: var(--lightest-secondary-color);
}

.who-section p{
    margin-bottom: 1em;
    font-size: 2rem;
    font-weight: 400;
    line-height: 2em;
    text-align: center;
    color: var(--light-1-secondary-color);
}

.who-section div:last-child{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-2-primary-color);
}
.who-section img{
    margin-bottom: 20px;
    height: 350px;
    width: 95%;
    max-width: 650px;
    min-width: 290px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 10px solid var(--light-1-secondary-color);
}


/* Client styles */
.client-section{
    padding-bottom: 20px;
    width: 100%;
    min-width: 320px;
    height: 600px;
    background-color: var(--lightest-secondary-color);
} 

.client-section h3{
    padding-top: 60px;
    margin-bottom: 25px;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-3-primary-color);
}

 .swiper-container{
    width: 95%;
    max-width: 900px;
    min-width: 290px;
    height: 80%;
    max-height: 400px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    box-shadow: 0px 0px 6px 1px var(--dark-1-secondary-color);
}
 
 .swiper-wrapper{
     background: #fbfbfb;
     border-radius: 10px;
 }
.swiper-slide{
    min-width: 200px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: calc((100% - 30px) / 2);
}

/* contact styles */

/* div container  */
.contact-section{
    padding-top:40px;
    margin: 0 auto;
    width: 100%;
    min-width: 320px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background: var(--light-1-primary-color);
}

.contact-section div{
    max-width: 500px;
    min-width: 296px;
}

.contact-section h3{
    margin: 0 auto;
    margin-bottom:10px;
    padding: 0.5em;
    font-size: 3rem;
    font-weight: bold;
    color: var(--lightest-secondary-color);
}

.contact-section p{
    margin: 15px 0;
    font-size:2rem;
    font-weight:500;
    text-align: center;
    color: var(--dark-3-primary-color);
}

.contact-section .subtitle{
    margin-top:20px;
    font-size:2.4rem;
    font-weight:700;
    color: var(--light-1-secondary-color);
}

.contact-section iframe{
    margin-left:10px;
    width: 95%;
    height:30vh;
    border-radius: 10px;
    box-shadow: 0px 0px 6px 1px var(--dark-3-primary-color);
}

/* form div styles */
.form,
.contact-section div:nth-child(2n){
    margin:30px 10px;
    padding: 30px;
    width: 100%;
    background: var(--dark-2-primary-color);
    border-radius: 10px;
    box-shadow: 0px 0px 6px 1px var(--dark-3-primary-color);
}

#form{
    margin: 0;
    margin-bottom:20px;
}
    /* styles to consulta de expedientes form */

.contact-section label,input{
    display: block;
}

.contact-section label{
    margin-bottom: 5px;
    font-size:1.6rem;
    color: var(--light-1-secondary-color);
}

.contact-section input{
    padding: 5px;
    margin-bottom: 5px;
    width: 100%;
    line-height:2.3em;
    font-weight: 500;
    color: var(--dark-1-primary-color);
    border-radius:10px;
    border:none;
    outline: none;
    cursor: pointer;
    transition: all 500ms;
}

.contact-section .input:hover{
    color: var(--light-1-secondary-color);
    background-color:var(--dark-1-primary-color);
    box-shadow: 0px 0px 6px 1px var(--dark-3-primary-color);
}

.contact-section select{
    margin-bottom: 5px;
    padding: 5px;
    color: var(--dark-1-primary-color);;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

.contact-section textarea{
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    border-radius: 7px;
    outline: none;
}

.contact-section .button-container{
    margin-top: 10px;
    min-width: 200px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    box-shadow: none;
}

.button-container input{
    width: 30%;
    max-width: 200px;
}

.button-container input:first-child{
    font-weight: 600;
    color: var(--lightest-secondary-color);
    background: var(--light-1-primary-color);
    box-shadow: 0px 0px 6px 1px var(--dark-3-primary-color);
}

.button-container input:hover{
    transform: scale(1.2);
}


/* footer styles */

footer {
    padding: 50px;
    width: 100%;
    min-width:320px;
    height:10vh;
    display: flex;
    justify-content:space-evenly;
    align-items: center;
    background: var(--light-2-secondary-color);
}

footer img{
    border-radius: 5px;
}

footer p{
    margin-left: 30px;
    font-size:clamp(1.4rem, 2vw, 2rem);
    font-weight: 300;
    color: var(--dark-3-primary-color)
}

footer p a{
    font-weight: bold;
    color: var(--darkest-primary-color);
    transition: all 1000ms;
}

p a:hover{
    text-decoration: underline;
}


/* dto productos section styles */
.product-main{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 30px 0;
    width:100%;
    min-width: 320px;
    background: var(--dark-2-primary-color);
}

.product-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
    width: 95%;
    max-width: 639px;
    min-height:30vh;
    padding: 30px;
    background: var(--light-1-primary-color);
    box-shadow: 0px 0px 8px 4px var(--dark-3-primary-color);
    border-radius: 5px;
}


.product-section:nth-child(odd){
    background: var(--lightest-secondary-color);  
}

.product-section:nth-child(odd) h3{
    color: var(--dark-3-primary-color);
}

.product-section:nth-child(odd) p{
    color: var(--dark-2-primary-color);
}

.product-section:nth-child(odd) a{
    font-weight: bold;
    color: var(--darkest-primary-color);
}


.product-section h3{
    margin-bottom: 30px;
    font-size:clamp(2.2rem, 2vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    color: var(--lightest-secondary-color);
}
.product-section h3 span{
    font-weight: bolder;
    color: #81d4fa;
}
.product-section p{
    font-size:clamp(1.8rem, 2vw, 2.2rem);
    font-weight: 500;
    text-align: center;
    line-height: 1.8em;
    color: var(--light-1-secondary-color);
}

.product-section a{
    font-weight: bold;
    color: var(--lightest-secondary-color);
}

 .tab-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    background-color:var(--light-1-secondary-color);
    padding: 0;
}
/* tab acordeon style */

/* Style the tab */
.tab {
    position: sticky;
    top:0;
    Overflow:scroll;
    overscroll-behavior-x: contain; 
    scroll-snap-type: x proximity;
    align-self: center;
    display:flex;
    justify-content:space-between;
    width: 95%;
    background-color:var(--light-2-secondary-color);
    border: 2px solid var(--dark-2-primary-color);
    border-bottom: none;
    border-top: none;
    box-shadow: 0 0 6px 1px rgb(0 0 0 / 98%);
    z-index: 10;
  }

  /* scroller styles */
.tab::-webkit-scrollbar{
    width: 0;
    height: 8px;
  }

.tab::-webkit-scrollbar-thumb {
    background: var(--light-1-secondary-color);
    border-radius: 4px;
    transition: 0.8s;
}
  
.tab::-webkit-scrollbar-thumb:hover {
    background: var(--light-1-primary-color);
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.tab::-webkit-scrollbar-track {
    background: var(--dark-2-primary-color);
}

  /* Style the buttons that are used to open the tab content */
  .tab button {
    scroll-snap-align: center; 
    background-color: inherit;
    border:none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 1.5rem;
    font-weight:600;
    color: var(--lightest-secondary-color);
    
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: var(--dark-1-primary-color);
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: var(--dark-2-primary-color);
  }
  

  /* Style the tab content */
  .tabcontent {
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    padding:1em;
    margin: 0 auto;
    margin-bottom: 20px;
    width: 95%;
    background: var(--dark-2-primary-color);
    animation: fadeEffect 1s;   
    border: 2px solid var(--dark-2-primary-color);
    border-top: none;
    box-shadow: 0 0 5px 4px rgb(0 0 0 / 20%);
    z-index: 1;
  }

  .tabcontent div{
      max-width: 600px;
      min-height: 300px;
      display: flex;
      flex-direction:column;
      justify-content:space-around;
      align-items:center;
     text-align: center;
  }

  .tabcontent div p,h3{
    margin-bottom: 30px;
      font-size: 1.7rem;
      font-weight: 500;
      line-height: 1.5em;
      text-align: center;
      color: var(--light-1-secondary-color);
  }

  .tabcontent h3{
      font-size: 2.7rem;
  }

  .tabcontent div:last-child{
      max-width: 800px;
      padding: 2em;
     background-color: var(--light-1-secondary-color);
     border-radius: 5px;
  }

  .tabcontent div:last-child p{
      font-weight: 700;
      margin-bottom: 30px;  
      color: var(--dark-2-primary-color);
  }

  .tabcontent .li{
      font-size: 1.5rem;
      line-height: 1.5em;
      font-weight: 500;
      text-align: center;
      margin-bottom: 15px;
      color: var(--darkest-secondary-color);
  }

  .tabcontent .li:nth-child(odd){
      color: var(--dark-1-primary-color);
  }
    .tabcontent a{
        display:block;
        height:80px;
        width: 150px;
        background: var(--lightest-secondary-color);
        background-image: url("images/senasa.gif");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        border-radius: 5px;
    }

    #inv a{
        background-color: transparent;
        background-image: url("images/inv.jpg");
    }

    #sedronar a{
        background-image: url("images/sedronar.jpg");
    }
/* short title style */

header .short-title{
    font-size: 6rem;
    letter-spacing: 2rem;
}


/* iframe scroller container */
.prueba{
    padding-top: 50px;
    padding-left: calc(50% - 240px);
    width: 100%;
    background: #e0e3eb;
}

/* scroll articles styles  */
#trying{
    width: 100%;
    min-width: 320px;
    padding:50px 0;
    background:var(--lightest-secondary-color)
}

#trying h3{
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--dark-1-primary-color);
}
#contain {
    margin: 0 auto;
    width: 95%;
    height: 250px;
    overflow-y: scroll;
    border: 5px solid var(--darkest-secondary-color);
  }

  #contain::-webkit-scrollbar{
    display:none;
  }


  #scroll-text {
    padding-bottom: 20px;
    padding: 10px;
    font-size:1.5rem;
    background: var(--light-1-secondary-color);
    color: var(--dark-3-primary-color);
  }

  #scroll-text h4{
    margin: 10px 0;
  }

  #link{
      margin-top: 5px;
      display:block;
      height: 30px;
      width: 100%;
      font-size: 1.5rem;
      color:var(--lightest-secondary-color);
  }
  #link:hover{
      text-decoration: underline;
  }
  
  #scroll-text:nth-child(odd){
      background: var(--dark-1-primary-color);
      color: var(--light-1-secondary-color);
  }

  /* prefectura naval general styles */

  /* merchandise styles */
  .merchandise-section{
    width: 100%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--lightest-secondary-color);
  }

  .merchandise-section h2{
      margin: 0 1em;
      padding: 1.8em 0;
      text-align: center;
      line-height:1.7em;
      font-size:2.4rem;
      font-weight:700;
      color: var(--dark-3-primary-color);
  }

  .merchandise-section p{
    margin: 0 1em;
    margin-bottom:30px;
    text-align: center;
    line-height:1.7em;
    font-size:1.8rem;
    font-weight:500;
    color: var(--dark-2-primary-color);
  }

  .merchandise-section section{
      overflow: scroll;
      overscroll-behavior-x: contain; 
      scroll-snap-type: x proximity; 
      margin: 30px auto;
      margin-bottom:100px;
      padding: 20px 0;
      width: 100%;
      display: flex;
      flex-direction: row;
  }

  .merchandise-section section > div{
      scroll-snap-align: center; 
      padding: 1.4em;
      margin-right: 10px;
      display:flex;
      align-items: center;
      justify-content:center;
      border-radius:10px;
      background: var(--light-1-primary-color);
      box-shadow: 0px 6px 6px 1px rgb(0 24 69 / 80%);
    }

    .merchandise-section section > div h3{
        font-size:clamp(1.5rem, 2vw, 2.5rem);
        color: var(--lightest-secondary-color);
    }

    .service-section{
        padding-bottom: 30px;
        width: 100%;
        min-width: 320px;
        background: var(--light-1-primary-color);
    }

    .service-section h2{
        padding: 40px;
        text-align: center;
        line-height: 1.5em;
        font-size:2.4rem;
        color: var(--lightest-secondary-color)
    }

    .text-container{
        margin: 0 auto;
        padding-bottom: 20px;
        width: 80%;
    }

    .text{
        text-align:left;
        line-height:1.6em;
        font-size: 2.1rem;
        font-weight:500;
        color: var(--light-1-secondary-color);
    }

    .service-section a{
        margin: 0 auto;
        margin-top: 2em;
        padding: 1em;
        width: 250px;
        display: block;
        text-align: center;
        font-size:clamp(2rem, 2vw, 2.5rem);
        font-weight: bold;
        color: var(--light-1-primary-color);
        background:#e9edf5;
        border-radius: 20px;
        transition: all 500ms;
    }

    .service-section a:hover{
        color: #e9edf5;
        background:var(--dark-3-primary-color);
    }