@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: 85px;
}
html, body {
  margin: 0;
  padding: 0;
}
/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 1.8s ease-in-out; 
}

/* Logo más grande y con animación suave */
#preloader-logo {
    width: clamp(180px, 28vw, 420px); 
    opacity: 0;
    animation: logoAppear 2.2s ease forwards;
}

/* Animación del logo */
@keyframes logoAppear {
    0%   { opacity: 0; transform: scale(0.7); filter: blur(6px); }
    40%  { opacity: 1; transform: scale(1.05); filter: blur(2px); }
    70%  { opacity: 1; transform: scale(1); filter: blur(0px); }
    100% { opacity: 1; transform: scale(1); }
}

/* Cuando esté oculto */
#preloader.hidden {
    opacity: 0;
    filter: blur(10px); /*difuminado más suave */
    pointer-events: none;
}

/*Header*/

.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: 5000;         /* 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 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;
}



.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;
}


/* — Contenedor de vídeo — */

.video-container{
  width: 100vw;                        /* ocupa todo el ancho de la pantalla */
  margin-left: calc(50% - 50vw);       /* Quita los margenes del Layout */
  position: relative;
  aspect-ratio: 21 / 9;                /* ajusta la altura del video; relacion de video 21:9 */
  overflow: hidden;
  z-index: 0;
}

.video-container .bg-video{
  position: absolute;
  inset: 0;                            
  width: 100%;
  height: 100%;
  object-fit: cover;                    /* llena el ancho de la pantalla sin deformar el video */
  object-position: center;
}
/* === Filtro rojo sobre video principal === */
/* === VIDEO PRINCIPAL CON FRANJA ROJA INCLINADA === */
.video-container {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* --- Franja roja inclinada --- */
.video-overlay-rojo {
  position: absolute;
  top: 0;
  left: -10%; /* pequeño desplazamiento hacia la izquierda */
  width: 60%;
  height: 120%; /* cubre todo incluso en inclinación */
  background: rgba(170, 0, 0, 0.5);
  transform: skewX(-12deg); /* inclinación diagonal */
  transform-origin: top left;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Texto dentro de la franja --- */
.texto-sobre-franja {
  transform: skewX(12deg); /* corrige la inclinación del texto */
  text-align: left;
  color: #fff;
  max-width: 600px;
  padding: 40px;
}
.logo-franja {
  width: clamp(110px, 14vw, 220px); /* antes era 90px–160px */
  height: auto;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
}

.texto-sobre-franja h1 {
  font-size: clamp(1.8rem, 3vw, 3.8rem); /* incrementado el rango */
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.texto-sobre-franja p {
  font-size: clamp(1rem, 1.5vw, 1.8rem); /* un poco más grande */
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* --- Responsivo --- */
@media (max-width: 900px) {
  .video-overlay-rojo {
    width: 100%;
    left: 0;
    height: 100%;
    transform: skewX(-8deg);
  }

  .texto-sobre-franja {
    transform: skewX(8deg);
    text-align: center;
    padding: 20px;
  }

  .texto-sobre-franja h1 {
    font-size: 1.8rem;
  }

  .texto-sobre-franja p {
    font-size: 1rem;
  }
}



/* Apartado Nosotros */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- 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;
}

/* --- Sección de Misión, Visión, Valores --- */
.core-values-section {
    background-color: #000;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.core-values-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.values-container {
    display: flex;
    /* (CAMBIO) Permite que los elementos pasen a la siguiente línea si no caben */
    flex-wrap: wrap; 
    /* (CAMBIO) Centra los elementos en el contenedor */
    justify-content: center; 
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    /* (CAMBIO) 'flex: 1' permite que el ítem crezca */
    flex: 1; 
    /* (CAMBIO) Define el ancho base. No será más pequeño que esto */
    min-width: 320px; 
    /* (CAMBIO) Define un ancho máximo para legibilidad en pantallas muy grandes */
    max-width: 450px; 
    padding: 20px;
}


/* Estilos para las imágenes PNG */
.value-item .icon-png {
    width: 60px; /* Ancho deseado para el icono */
    height: 60px; /* Altura deseada para el icono */
    margin-bottom: 25px;
    display: block; /* Para centrar la imagen */
    margin-left: auto;
    margin-right: auto;
}

.value-item h3 {
    font-size: 1.5rem;
    color: #d90000; /* Mismo rojo */
    margin-bottom: 15px;
}

.value-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f0f0f0; /* Un blanco ligeramente más suave */
    text-align: justify;
}

/* --- Estilos Responsivos para Móviles --- */
/* Esta sección se mantiene igual. */
@media (max-width: 768px) {
    .intro-section h1 {
        font-size: 1.5rem;
    }
    
    .intro-content {
        flex-direction: column; /* Apila las columnas */
    }

    .core-values-section h2 {
        font-size: 1.4rem;
    }

    .values-container {
        flex-direction: column; /* Apila las columnas */
        align-items: center;
        /* Reseteamos el flex-wrap para evitar conflictos, aunque 'column' suele ser suficiente */
        flex-wrap: nowrap; 
    }

    /* Opcional: Aseguramos que los ítems tomen un ancho controlado en móvil */
    .value-item {
        flex: 0 1 auto; /* Reseteamos el crecimiento en modo columna */
        width: 90%; /* Hacemos que ocupe el 90% del contenedor */
        max-width: 450px; /* Mantenemos el máximo */
        min-width: auto; /* Reseteamos el mínimo */
    }
}

/* Sección de Misión, Visión y Valores */
.mvv-section {
    background-color: #000;
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.mvv-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: nowrap; /* Evita que los elementos se reorganicen en columnas */
}

.mvv-box {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: #000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    flex-shrink: 0; /* Evita que los elementos se reduzcan en pantallas pequeñas */
}


.mvv-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #a30000; 
}

.mvv-icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
}

.mvv-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.mvv-box p {
    font-size: 18px;
    text-align: justify;
}

@media (max-width: 900px) {
    .mvv-container {
        display: flex;
        flex-wrap: wrap; /* Evita que se apilen en columna */
        justify-content: center;
        align-items: center;
    }

    .mvv-box {
        width: 80%; /* Mantiene los tres cuadros en una sola línea */
        margin: 10px auto;
    }
}

/* --- Título de Servicios --- */
.titulo-servicios {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
}

.titulo-servicios h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    letter-spacing: 1px;
}

.titulo-servicios .divider {
    width: 120px;
    height: 5px;
    background-color: #d90000; /* rojo constructora */
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/*Estilos tarjetas de presentación*/

.contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

.tarjeta {
    background: white;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.tarjeta:hover {
    transform: scale(1.05);
}

.tarjeta img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tarjeta h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
}

.tarjeta p {
    font-size: 14px;
    color: #333;
    padding: 0 15px 20px;
    text-align: justify;
}
.img-cambio {
    transition: opacity 0.5s ease-in-out;
}


/* --- 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 */
@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 */
}
