@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: 80px;
}

.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/Nosotros/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;
}

/* --- Encabezado y Sección de Introducción --- */
.intro-section {
    padding: 50px 20px;
    text-align: center;
}

.intro-section h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}

/* Línea divisoria roja */
.divider {
    width: 100px;
    height: 4px;
    background-color: #d90000; /* Un rojo constructora */
    margin: 0 auto 40px auto;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Pequeño borde redondeado */
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}


/* --- Estilos Sección MVV (Misión, Visión, Valores) OPTIMIZADO --- */

.mvv-section {
    background-color: #111111;
    padding: 60px 0; /* Reduje padding vertical un poco */
    color: #ffffff;
    overflow: hidden;
}

.mvv-container {
    width: 90%; /* Ocupa el 90% de la pantalla */
    max-width: 2000px; /* Tope máximo más ancho para pantallas grandes */
    margin: 0 auto;
}

.mvv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.mvv-row:last-child {
    margin-bottom: 0;
}

/* --- ICONOS --- */
.mvv-icon {
    /* CAMBIO IMPORTANTE: Ancho fijo para que no robe espacio al texto */
    flex: 0 0 150px; 
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Alineado arriba */
    margin-right: 70px; /* Separación entre icono y texto */
    padding-top: 10px; /* Ajuste visual para alinear con el título */
}

.mvv-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.mvv-row:hover .mvv-icon img {
    transform: scale(1.1); /* Pequeño efecto al pasar el mouse */
}

/* --- TEXTOS --- */
.mvv-text {
    flex: 1; /* Toma todo el espacio restante disponible */
}

.mvv-text h3 {
    font-size: 2.2rem;
    color: #d90000;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mvv-text span {
    font-size: 1.15rem; /* Letra ligeramente más grande para lectura fácil */
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 15px;
    text-align: justify; /* Hace que el texto llene el bloque cuadrado */
}

.mvv-text strong {
    color: #ffffff;
    font-weight: 700;
	text-align: justify;
}

/* Lista de valores */
.mvv-list {
    list-style: none;
    padding: 0;
}

.mvv-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #ccc;
    text-align: justify;
}

.mvv-list li::before {
    content: "•";
    color: #d90000;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
	left: 0;
    top: -2px;
}

/* Clase para activar la animación (JS) */
.mvv-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN (ADAPTABILIDAD) --- */

/* Pantallas Medianas (Laptops pequeñas y Tablets horizontales) */
@media (max-width: 1024px) {
    .mvv-container {
        width: 95%; /* Aprovecha más bordes */
    }
    
    .mvv-icon {
        flex: 0 0 120px; /* Icono un poco más pequeño */
        margin-right: 30px;
    }
    
    .mvv-text h3 {
        font-size: 2rem;
    }
	
	.mvv-text span{
		text-align: justify;
	}
}

/* Pantallas Pequeñas (Celulares y Tablets verticales) */
@media (max-width: 768px) {
    .mvv-section {
        padding: 40px 0;
    }

    .mvv-row {
        flex-direction: column; /* Apila uno sobre otro */
        align-items: center;
        margin-bottom: 50px;
        text-align: center; /* Centra textos en móvil */
    }

    .mvv-icon {
        flex: 0 0 auto;
        width: 100px; /* Tamaño controlado del icono */
        margin-right: 0;
        margin-bottom: 20px;
    }

    .mvv-list li {
        text-align: left; /* En celular es mejor leer a la izquierda que justificado */
        font-size: 1rem;
    }
    
    .mvv-text h3 {
        text-align: center;
        font-size: 1.8rem;
    }
	
	.mvv-text span{
		text-align: justify;
	}
	
}


/* --- BENEFICIOS --- */

.beneficios-container {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
    text-align: center;
    color: #000;
}

.beneficios-title {
    font-size: 34px;       /* Más grande y uniforme */
    font-weight: 700;
    margin-bottom: 15px;
    color: #1d1f22;
}

.beneficios-subtitle {
    max-width: 900px;
    margin: 0 auto 60px auto;
    font-size: 19px;       /* Igual a tus otros textos introductorios */
    color: #333;
}

/* GRID */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 60px;
}

/* ITEM */
.beneficio-item {
    text-align: left;
}

.beneficio-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    object-fit: contain;
}

.beneficio-item h3 {
    font-size: 22px;        /* Igual a tus subtítulos en el sitio */
    font-weight: 700;
    color: #d90000;
    margin-bottom: 12px;
}

.beneficio-item p {
    font-size: 18px;        /* Para que coincida con el resto del sitio */
    line-height: 1.65;
    color: #000;
    text-align: justify;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .beneficio-item {
        text-align: center;
    }

    .beneficio-icon {
        margin: 0 auto 15px auto;
    }
}

/* === GALERÍA DE PROYECTOS === */

.galeria-proyectos {
    background: #000;
    padding: 80px 5%;
    color: #fff;
    text-align: center;
}

/* TÍTULO PRINCIPAL */
.galeria-header h2 {
    font-size: 34px;       /* Igual que Beneficios */
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

/* TEXTO INTRODUCTORIO */
.galeria-header p {
    font-size: 19px;        /* Igual que subtítulo de Beneficios */
    max-width: 900px;
    margin: 0 auto;
    color: #ddd;            /* Gris suave legible */
    line-height: 1.55;
}

.galeria-header .linea {
    width: 100px;
    height: 4px;
    background: #000;
    margin: 25px auto 50px auto;
    border-radius: 2px;
	
}

/* GRID */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.galeria-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.35s ease, filter 0.3s ease;
}

/* EFECTO CRECER */
.galeria-grid img:hover {
    transform: scale(1.07);
    filter: brightness(1.17);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .galeria-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .galeria-header h2 {
        font-size: 26px;
    }

    .galeria-header p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .galeria-header h2 {
        font-size: 24px;
    }

    .galeria-header p {
        font-size: 17px;
    }
}


/*Estilos para Footer*/

footer {
    background: #222;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-top: 20px;
}
.social-links {
    text-align: right;
}

.social-links p {
    margin-bottom: 10px;
}

.social-links a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

.social-links a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease-in-out;
}

.social-links a img:hover {
    transform: scale(1.2);
}

.contact-info {
    text-align: left;
}
.banner-inferior {
    background-color: rgba(100, 0, 0, 0.8);
    padding: 50px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Sección de Contacto con fondo de imagen --- */
.contacto {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

/* Imagen de fondo con filtro rojo */
.contacto-bg {
    position: relative;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 60px;
    overflow: hidden;
}

.contacto-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Solo cubre la zona roja */
    background: url("img/Imagen_Contacto.png") center/cover no-repeat;
    filter: blur(3px); /* Difuminado */
    z-index: 0;
    opacity: 0.8;
}

/* Filtro rojo translúcido */
.overlay-rojo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(150, 0, 0, 0.55);
    z-index: 1;
}

/* Título */
.contacto h2 {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
}

/* Contenedor de recuadros */
.contacto-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Recuadros blancos */
.contacto-box {
    background: #fff;
    color: #222;
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.contacto-box:hover {
    transform: translateY(-5px);
}

/* Título dentro del recuadro derecho */
.contacto-box h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

/* Iconos de contacto */
.icono-contacto {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.contacto-box p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Redes sociales */
.redes-sociales {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.redes-sociales img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Animación hover redes */
.redes-sociales img:hover {
    transform: scale(1.25);
}

/*Estilos enlace telefónico*/
.telefono-contacto {
  color: #222;               /* color del texto */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.telefono-contacto:hover {
  color: #d90000;            /* rojo de tu marca SICPIC */
  text-decoration: underline;
}

/*Estilo enlace correo*/
.correo-contacto {
  color: #222; /* color del texto original */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.correo-contacto:hover {
  color: #d90000; /* rojo de tu marca */
  text-decoration: underline;
}

/* --- Responsividad --- */
@media (max-width: 768px) {
    .contacto-bg {
        padding-bottom: 40px;
    }

    .contacto-container {
        flex-direction: column;
        align-items: center;
    }

    .contacto-box {
        width: 90%;
    }

    .overlay-rojo {
        height: 60%;
    }
}

/* === Sección Eslogan === */

.sicpic-info {
    text-align: center;
    color: #fff;
    font-family: "Nunito Sans", sans-serif;
    margin-top: 80px;
}

/* Imagen y cita superior */
.banner-superior {
    background: url("img/Imagen_Sec_Eslogan.jpg") center/cover no-repeat;
    padding: 100px 20px;
    position: relative;
}


.banner-superior::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.texto-banner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(40, 40, 40, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.texto-banner p {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Bandas de color */
.banner-medio {
    background-color: rgba(180, 0, 0, 0.8);
    padding: 60px 20px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
}

.banner-inferior {
    background-color: rgba(100, 0, 0, 0.8);
    padding: 50px 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* 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 */
    }
}

/* === ESTILOS PARA EXPANDIR IMG DE GALERIA CON UN CLICK === */

/* El fondo oscuro que cubre toda la pantalla */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 10001; /* Mayor que el header (que tiene 9999) */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilitar scroll si la imagen es muy alta */
    background-color: rgba(0, 0, 0, 0.9); /* Negro con 90% opacidad */
    align-items: center;
    justify-content: center;
}

/* La imagen dentro del modal */
.modal-contenido {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px; /* Que no sea gigante en pantallas ultra wide */
    max-height: 90vh; /* Que no se salga de la altura de la pantalla */
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoom 0.6s; /* Animación de entrada */
}

/* Animación de Zoom */
@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* El botón de cerrar (X) */
.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10002;
}

.cerrar-modal:hover,
.cerrar-modal:focus {
    color: #d90000; /* Tu color rojo corporativo */
    text-decoration: none;
    cursor: pointer;
}

/* Ajuste para móviles */
@media only screen and (max-width: 700px){
    .modal-contenido {
        width: 100%;
    }
}