@charset "utf-8";
@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: black;
    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/ObraMecanica/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;
}

/* Descripción Introductoria */
.header-desc {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem; /* Ajustado para que no sea gigante con tu regla de 20px */
    line-height: 1.6;
    color: #333;
	text-align: justify;
}

/* Galería Superior (Fondo Negro) */
.top-gallery-section {
    background-color: #000;
    padding: 40px 0;
    /* margin-top eliminado porque Bootstrap maneja el espaciado vertical */
}

.gallery-img {
    object-fit: cover;
    height: 300px;
    width: 100%;
    border-radius: 2px;
}

/* Lista de Servicios */
.services-list h3 {
    font-weight: 800; /* Extra bold para resaltar */
    color: #000;
}

.service-item {
    margin-bottom: 20px;
    font-size: 1rem; /* Reset de tamaño para lectura cómoda */
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #000;
}

/* Estado visible para la animación JS */
.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Barra Lateral Roja (Expandida al 50% con imágenes limitadas) */
.red-sidebar {
    background: 
        linear-gradient(to right, rgba(160, 0, 0, 0.85), rgba(120, 0, 0, 0.95)),url("img/ObraElectrica/02.jpg"); 
    background-size: cover;
    background-position: center;
    padding: 40px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centra las imágenes horizontalmente */
    gap: 40px;
}

.sidebar-img {
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px; /* Límite para que no se estiren demasiado */
    height: auto;
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .red-sidebar {
        min-height: auto;
    }
    .services-list {
        padding: 30px 20px !important; /* Ajuste de padding en móviles */
    }
}

/* === 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;
}
/* Línea divisoria roja */
.divider {
    width: 100px;
    height: 4px;
    background-color: #d90000; /* Un rojo constructora */
    margin: 0 auto 40px auto;
}
/* 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);
}

/* --- Estilos del Modal (Lightbox) --- */
.modal-galeria {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 10000; /* Por encima de todo, incluso del header */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); /* Fondo negro con transparencia */
    justify-content: center;
    align-items: center;
}

/* Imagen dentro del modal */
.modal-contenido {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 90vh; /* Que no sea más alta que la pantalla */
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* Botón de cerrar (X) */
.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.cerrar-modal:hover,
.cerrar-modal:focus {
    color: #d31a1a; /* Rojo de tu marca */
    text-decoration: none;
    cursor: pointer;
}

/* Animación de zoom */
@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Ajuste para móviles */
@media only screen and (max-width: 700px){
    .modal-contenido {
        width: 100%;
    }
}
/* 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;
    }
}
/*Seccion contacto*/
/* --- 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%;
    }
}


/* 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 */
@media (max-width: 768px) {
    .banner-superior, .banner-medio, .banner-inferior {
        padding: 60px 15px;
    }

    .texto-banner p {
        font-size: 1.1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}
.banner-medio, .banner-inferior {
    opacity: 0;
    transition: opacity 1.2s ease;
}
/*Para el Header estatico*/
body {
    padding-top: 85px;  /* Igual a la altura del header */
}