@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;
    /* Configuración Flex para estructura vertical completa */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px; /* Espacio para el header fijo */
	margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.header{
    background-color: #000000;
    display:flex;
    justify-content: center;
    align-items: center;
    height: 85px;
    padding: 5px 10%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.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;
    display: flex;
    justify-content: center; /* Asegura que los elementos estén centrados */
    width: 100%; /* Ocupa todo el ancho disponible */
    padding: 0;
}

.header .nav-links li{
    display: inline-block;
    padding: 0 20px;
    text-align: center;
}

.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{
    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) {
    .header {
        justify-content: space-between; /* ← Distribuye en esquinas */
        padding: 0 20px;
    }
    .header .nav-links {
        display: none !important;
    }

    .header .btn {
        display: none !important;
    }

    .header .menu {
        display: block !important;
    }
}

/*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 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;
    text-align: left;
}


/* formulario*/
body{
    font-family: "Nunito Sans", sans-serif;
    display: flex;
    flex-direction: column; /* Asegura que los elementos se apilen verticalmente */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 130px; /* Ajuste para evitar que el header lo tape */
}

form {
    padding: 60px 70px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    text-align: center;
    background-color: white;
    margin: 0 auto; 
    margin-bottom: 50px; 
}

.input-group{
    display: flex;
    flex-direction: column;
    text-align: center;
}

h2{
    color: #000000;
    font-size: 35px;
}

label{
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

input,textarea{
    padding: 17px 25px;
    border-radius: 25px;
    margin-bottom: 20px;
    background-color: #ebebeb;
    border:2px solid #dddddd;
    color: #000000;
    outline: none;
}

input::placeholder,textarea::placeholder{
    color:#a56666;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.form-txt {
    display: flex;
    justify-content: center; /* Centra los elementos horizontalmente */
    gap: 20px; /* Aumenta la separación entre los enlaces */
    margin-top: 15px; /* Añade espacio superior */
}

.form-txt a{
    color:#af3f3f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn{
    font-size:16px;
    color: #FFFFFF;
    border: 0;
    border-radius: 25px;
    background-color: #ad2e2e;
    box-shadow: 0 0 20px rgba(254, 0, 0, 0.4);
    cursor: pointer;
    padding: 15px 25px;
    margin-top: 20px; /* Agrega espacio arriba del botón */
}

.btn:hover{
    background-color:50E04B;
}

@media(max-width:991px){
    body{
        /* Quitamos el padding del body para que el footer toque los bordes */
        padding-left: 0;
        padding-right: 0;
        /* Mantenemos el padding-top del header si es necesario, o lo dejamos en 100px del body general */
    }

    form{
        padding: 50px 30px;
        /* Ajustamos el ancho y el margen para móviles */
        width: 90%; 
        margin-bottom: 50px; /* Un poco menos de espacio en móvil */
    }

    input{
        padding: 15px;
    }

    .btn {
        width: 100%; 
        padding: 15px;
        font-size: 18px;
        display: block; 
        text-align: center;
    }
}

/* Estilos para la sección de redes sociales */
.social-footer {
    text-align: center;
    background-color: #000;
    color: #fff;
    padding: 20px;
    margin-top: 30px;
    border-radius: 20px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    background-color: white;
    padding: 30px;
}

.social-footer p {
    color: #000;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.social-icons img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.social-icons img:hover {
    transform: scale(1.3);
}
/* Footer institucional */
.sicpic-footer {
    background: #2c2c2c;
    color: #fff;
    padding: 40px 20px;
    width: 100%; 
    margin-top: auto; 
}

.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 */
    }
}
