@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 20px;
}

body{
    background-color: #ffffff;
	padding-top: 60px;
}

.header {
    background-color: #000000;
    display:flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
    padding: 5px 10%;
    position: fixed;       /* Hace que el header quede fijo */
    top: 0;                /* Pegado a la parte superior */
    left: 0;
    width: 100%;           /* Abarca todo el ancho */
    z-index: 9999;         /* Se queda por delante de todo */
}


.header .logo{
    cursor: pointer;
}

.header .logo img{
    height: 70px;
    width: auto;
    transition: all 0.3s;
}

.header .logo img:hover{
    transform: scale(1.2);
}

.header .nav-links{
    list-style: none;
}

.header .nav-links li{
    display: inline-block;
    padding: 0 20px;
}

.header .nav-links li:hover,
.overlay a:hover{
    transform: scale(1.1);
}

.header .nav-links a{
    font-size: 700;
    color:#ffffff;
    
}

.header .nav-links li a:hover{
    color:#d31a1a;
}

.menu{
    display: none;
}

.header .btn button,
.header .menu button{
     
    font-weight: 700;
    color: #000000;
    padding: 9px 25px;
    background: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.header .btn button:hover,
.header .menu button:hover{
    background-color: #ffffff;
    color:#d31a1a;
    transform: scale(1.1);
}

@media screen and (max-width:800px) {
    .nav-links, .btn{
        display:none;
    }
    .menu{
        display: inherit;
    }
}

/*Nav*/

 .header a{
    text-decoration: none;

 }

 .header .overlay{
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    background-color: rgb(0, 0, 0);
    overflow: hidden;
    transition: all 0.3s ease 0s;
 }
 
 .header .overlay .overlay-content{
    display:flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;

 }

 .header .overlay a{
    padding: 15px;
    font-size: 36px;
    display: block;
    transition: all 0.3s ease 0s;
    font-weight: 700;
    color:#ffffff
 }

 .header .overlay a:hover,
 .header .overlay a:focus{
    color:#d31a1a;
 }

 .header .overlay .close{
    position: absolute;
    top:20px;
    right: 45px;
    font-size: 65px;
 }

 @media screen and (max-height:450px){
    .header .overlay a{
        font-size: 20px;
    }

    .header .overlay .close{
        font-size: 40px;
        top: 15px;
        right:35px;
    }
 }

/* Estilos para la presentación de imágenes */

 .slider-box{
    width: 1280px;
    height: auto;
    margin:50px auto;
    overflow: hidden;
    position: relative;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}



 .slider-box ul{
    display: flex;
    padding: 0;
    width: 400%;
    animation: slide 20s infinite alternate ease-in-out;
 }
 .slider-box li{
    width: 100%;
    list-style: none;
    position: relative;
 }
 .slider-box img{
    width: 100%;
 }

 @keyframes slide{
    0%{margin-left: 0;}
    20%{margin-left: 0;}

    25%{margin-left: -100%;}
    45%{margin-left: -100%;}

    50%{margin-left: -200%;}
    70%{margin-left: -200%;}

    75%{margin-left: -300%;}
    100%{margin-left: -300%;}
 }

 @media (max-width: 991px) {
    .slider-box {
        max-width: 100%;
        padding: 0; 
        overflow: hidden; 
        margin: 40px auto;
    }

    .slider-box ul {
        width: 400%; 
    }
}

/* Estilos mejorados para el menú desplegable de servicios*/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown a {
    padding: 10px 15px;
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

.dropdown a:hover {
    color: #d31a1a;
}

/* Estilo para el menú desplegable */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown {
    position: relative;
    display: inline-block;
}

/* Estilo del menú desplegable con correcciones */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;  /* Asegura que esté encima de otros elementos */
    overflow: hidden;
}

/* Hace que el menú se despliegue correctamente */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Ajuste de los elementos del menú */
.dropdown-menu li {
    list-style: none;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease, padding-left 0.3s ease;
}

/* Apartado Nosotros */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/*Estilos Titular*/
.sicpic_t {
    position: relative;
    background: url('img/PoliticasYTerminos/IMG_PRINCIPAL.jpg') no-repeat center center/cover;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.747);
}

.sicpic_t::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(150, 0, 0, 0.45); /* Rojo con transparencia */
    backdrop-filter: blur(2px);        /* Difuminado suave */
    z-index: 1;
}

.sicpic_t .contenido {
    position: relative;
    z-index: 2;
}

.contenido {
    background: rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    max-width: 500;
}
h2 {
    font-size: 3em;
    margin-bottom: 10px;
}
p {
    font-size: 1em;
    color: white;
    max-width: 450px;
}

  
/*Estilos para descripcion politica*/

.politica_des {
    background: white;
    max-width: 1200px;
    width: 90%;
    margin: 60px auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    text-align: center; /* Centra elementos como títulos y listas */
}

/* Títulos */
.politica_des h2,
.politica_des h3 {
    font-size: 24px;
    color: #000000;
    margin: 20px 0 10px;
    text-align: center;
}

/* Párrafos justificados */
.politica_des p {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    text-align: justify;
    margin: 0 auto 20px auto;
    max-width: 1000px; /* para que el texto no sea tan ancho */
}

/* Listas */
.politica_des ul {
    list-style: disc;
    text-align: left; /* importante: viñetas necesitan alineación izquierda */
    padding-left: 60px;
    margin: 0 auto 25px auto;
    max-width: 1000px;
}

.politica_des li {
    font-size: 17px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: justify;
}

/* Separadores */
.linea {
    width: 60px;
    height: 3px;
    background-color: #a72828;
    margin: 20px auto;
}

.separador {
    height: 60px;
    margin: 40px auto;
    border-top: 2px solid #a72828;
}

/* Responsividad */
@media (max-width: 768px) {
    .politica_des {
        padding: 0 15px;
    }

    .politica_des h2,
    .politica_des h3 {
        font-size: 20px;
    }

    .politica_des p,
    .politica_des li {
        font-size: 16px;
    }

    .politica_des ul {
        padding-left: 30px;
    }
}

/* Footer institucional */
.sicpic-footer {
    background: #2c2c2c;
    color: #fff;
    padding: 40px 20px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.footer-logo {
    width: 120px;
    height: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
    text-align: left;
}

.footer-column {
    min-width: 250px;
    margin: 10px;
}

.footer-column h4 {
    font-size: 1.1rem;
    color: #d90000;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #d90000;
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-links img {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.2);
}

/* Responsive */
/* --- RESPONSIVE INTRO SECCIÓN (QUIÉNES SOMOS) --- */
@media (max-width: 768px) {
    
    .intro-content {
        /* Cambia la dirección de fila a columna (apilados) */
        flex-direction: column;
        
        /* Opcional: Reduce el espacio entre la imagen y el texto */
        gap: 20px; 
    }

    /* Aseguramos que la imagen y el texto ocupen el ancho completo */
    .intro-image, 
    .intro-text {
        width: 100%;
        flex: none; /* Resetea el flex:1 del escritorio */
    }

    /* Opcional: Centrar el texto en móviles para mejor estética */
    .intro-text p {
        text-align: center; /* O justify, según tu preferencia */
    }
}