.slider {
    position: relative;
    width: 65%;
    margin: auto;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    margin-bottom: 30px;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
    font-size: 2em;
    z-index: 1000;
}

.left-arrow {
    left: 10px;
    z-index: 900;
}

.right-arrow {
    right: 10px;
    z-index: 900;
}


/* SERVICIOS */

.servicios{
    margin-top: 40px;
    width: 85%;
    height: 120px;
    background-color:#444444;
    margin: 0 auto;
    display: flex;
}
.serv1{
    width: 20%;
    height: 120px;
    color: white;
    text-align: center;
    font-size: 16px;
}

.icon-serv{
    width: 15%;
    padding: 10px;
}
#NSS{
    display: flex;
    width: 90%;
    text-align: center;
    vertical-align: middle;
    
}

.text-serv{
    margin-left: 10px;
    color: white;
    font-size: 12px;
    align-items: center;
}
.cont-serv{
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}

.cont-serv>div{flex:1;
    display: flex;}

.a{
    height: 50%;
    width: 100%;
}
.b{
    height: 50%;
    width: 75%;
}
.Escritorio{
    width: 58%;
    height: 200px;
    background-color: rgb(246, 246, 246);
    margin-top: 40px;
    margin-left: 7.5%;
}


.link-escritorio{
    color: #12C;
    font-family: 'Montserrat';
    font-weight: 500;
    font-size: 18px;
    
}

.link-escritorio:hover{
    color: rgb(114, 121, 204);
    text-decoration: underline;
}

.Menu{

    width: 100%;
}
.Menu li{
    display: inline-block;
    list-style-type: none;
    background-color:#eeeeee;
    height: 45px;
    width: 25%;
    margin-bottom: -16px;
}

#patron{
    width: 15%;
    justify-content: center;
    align-items: center;
}

.contenedor-tramites{
    display: flex;
    width: 95%; /*AJUSTA EL TAMAÑO DE TODO*/
    margin: auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    margin-top: 2%;
}



.cuadro-tramites{
            flex-grow: 1;
            padding: 10px;
            cursor: pointer;
            
            max-width: 65%; /*Aumenta el tamaño del contenido*/
}

.titulo-tramites{
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 100px;

}
.contenido{
    width: 100%;
    margin-top: -20px;
    display: none;
    padding: 10px 0;
    font-family: 'Montserrat';

}

.img-t a img{
    width: 150px;
    margin-left: 40px;
}
.img-t{
    justify-content: right;
}

#titulos-tramites{
    font-size: 38px;
    font-weight: bold;
    margin-top: 2%;
    display: flex;
    color:  #404041;
    margin-left: 2.5%;

}
.titulot{
color:#3b6858;
font-family: Soberana Titular;
text-decoration: underline;
font-size: 19px;
font-weight: bold;
}

.imagen-tramite{
    width: 40%;
    justify-content: right;
}


.contenido1 {
    display: none; /* Ocultar por defecto */
}
.activo {
    display: block; /* Mostrar contenido activo */
}
.tab-link {
    padding: 10px;
    text-decoration: none;
    color: #000;
}
.tab-link.selected {
    background-color: #611232; 
    color: #fff; 

}


@media (min-width:380px) and (max-width: 400px) {

    .contenedor-inicio{
        flex-direction: column;
        height: 500px;
    }
    .contenedor-tramites{
        flex-direction: column;
        
    }
    .Escritorio{
        width: 90%;
        
    }
    .Barra-lateral{
        display: none;
    }
    .Menu{
       width: 95%;
       height: auto;
    }
    .Menu ul{
        flex-direction: column;
        width: 190%;
    }

    .contenido1{
        width: 1350px;
        margin-left: 8px;
    }
    .servicios{
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .serv1{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: -70px;      
    }
    
    .text-serv{
        margin-top: 20px;
        align-items: center;
    }
  
    .cont-serv {
        display: flex;
        flex-direction: column; /* Cambia a columna en pantallas pequeñas */
    }
    .a, .b {
        flex-direction: column;
        width: 100%; /* Ocupa el ancho completo en móviles */
        margin: 0; /* Elimina márgenes entre columnas */
        margin-bottom: 15px; /* Espacio entre servicios */
    }

    .final{
        margin-top: 490%;
    }

}

@media (min-width:400px) and (max-width: 1080px) {

    .contenedor-inicio{
        flex-direction: column;
        height: 500px;
    }
    .contenedor-tramites{
        flex-direction: column;
        
    }
    .Escritorio{
        width: 90%;
        
    }
    .Barra-lateral{
        display: none;
    }
    .Menu{
       width: 95%;
       height: auto;
    }
    .Menu ul{
        flex-direction: column;
        width: 190%;
    }

    .contenido1{
        width: 1350px;
        margin-left: 8px;
    }
    .servicios{
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .serv1{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: -70px;      
    }
    
    .text-serv{
        margin-top: 20px;
        align-items: center;
    }
  
    .cont-serv {
        display: flex;
        flex-direction: column; /* Cambia a columna en pantallas pequeñas */
    }
    .a, .b {
        flex-direction: column;
        width: 100%; /* Ocupa el ancho completo en móviles */
        margin: 0; /* Elimina márgenes entre columnas */
        margin-bottom: 15px; /* Espacio entre servicios */
    }

    .final{
        margin-top: 510%;
    }

}