
html, body {
    font-family: Helvetica, sans-serif;
    height: 100%;
    margin: 0;
    line-height: 25px;
}

.img-bloque {
  display: block;
  margin-bottom: 24px; /* ajustable */
}
.img-bloque:last-child {
  margin-bottom: 0; /* sin espacio extra al final */
}

.picture-menor{
    width: 800px;
    margin: 0 auto;
}

.no_desk{
    display: none;
}

.campos {
    width: 100%;
}

.form_izq {
    float: left;
    width: 50%;
    padding: 0;
    margin-bottom: 10px;
}

.form_der {
    float: right;
    width: 50%;
    padding: 0;
    margin-bottom: 10px;
}

.campo_inputs {
    border: 1px solid #00bccc;
    background: #fff !important;
    width: 92%;
    padding: 4%;
    font-family: Helvetica, sans-serif;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    font-weight: normal !important;
}

.campo_textareas {
    border: 1px solid #00bccc;
    background: #fff !important;
    width: 95.9%;
    padding: 2%;
    font-family: Helvetica, sans-serif;
    height: 140px;
    margin-top: 2px;
    margin-left: 1px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    font-weight: normal !important;
}

.enviar {
    font-family: Helvetica, sans-serif;
    border: 0px solid #00bccc;
    background: #00bccc;
    color: #000;
    font-size: 0.9em;
    width: 96%;
    padding: 2%;
    font-weight: bold;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
}

.texto_legal {
    font-size: 0.8em;
    line-height: 25px;
    text-align: justify;
    width: 98%;
    margin-left: 7px;
}

.texto_legal_bis {
    font-size: 0.8em;
    line-height: 25px;
    text-align: center;
    width: 98%;
    margin-left: 7px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.centrar_legal{
    position: relative!important;
    bottom: 2px!important;
}

.centra_2025{text-align: center;margin-bottom: 30px}



.contacto_izq{ float:left; width: 48%;text-align: center;line-height: 40px}
.contacto_der{float: right; width: 48%}


.noticias_home {
    display: flex;
    flex-wrap: nowrap; /* evita que bajen de línea */
    gap: 20px;          /* espacio entre ítems */
    justify-content: space-between;
}

.noticias_home li {
    width: calc(33.33% - 20px); /* 3 por fila con espacio */
    padding: 1%;
    text-align: center;
    border: 1px solid #dfdfdf;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #000;
    transition: all 0.2s ease-in-out;
}

.noticias_home li:hover {
    border-color: #00bccc;
    color: #999;
    box-shadow: 0 4px 8px rgba(0, 188, 204, 0.2);
    cursor: pointer;
}

.noticias_home li a{
    color: #000;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tit_not{
    font-weight: bold;
    padding: 20px;
    margin-top: 10px;
}


.proyectos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.proyectos li {
  width: calc(25% - 20px); /* 4 por fila */
  min-height: 200px;       /* opcional, para mantener altura uniforme */
  padding: 1%;
  text-align: center;
  border: 1px solid #dfdfdf;
  border-radius: 5px;
  box-sizing: border-box;
  color: #000;
  transition: color 0.3s ease;
}

.proyectos li:hover {
    border-color: #00bccc;
    color: #999;
    box-shadow: 0 4px 8px rgba(0, 188, 204, 0.2);
    cursor: pointer;
}

.proyectos li a{
    color: #000;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}




.contenedor_img {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-shadow: 
    0 -2px 4px rgba(0, 0, 0, 0.2),  /* sombra superior */
    0 2px 4px rgba(0, 0, 0, 0.2);   /* sombra inferior */
}

.contenedor_img img {
  width: 100%;
  height: auto;
  max-height: 350px; /* Ajustable */
  object-fit: cover;
  vertical-align: top;
  display: block;
}

/* Capa clara para "aclarar" */
.contenedor_img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7); /* cambia el 0.4 para más/menos claridad */
  pointer-events: none;
}

.frase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: #1a66cc; /* ahora queda mejor en negro sobre fondo claro */
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 2px 1px rgba(255, 255, 255, 0.2); /* sombra blanca suave */
  padding: 0 10px;
  pointer-events: none;
  z-index: 1;
}





.envuelve_color{
    background-color: #00bccc;
    padding: 2%;
    box-shadow: 
  0 -2px 4px rgba(0, 0, 0, 0.2),  /* sombra superior */
  0 2px 4px rgba(0, 0, 0, 0.2);   /* sombra inferior */
}

.visto_ok{
    font-size: 1.8em;
    color: #00bccc;
    padding-top: 10px;
    padding-bottom: 20px;
}

.cuatro_mod {
    display: flex;
    flex-wrap: nowrap; /* evita que bajen de línea */
    gap: 20px;          /* espacio entre ítems */
    justify-content: space-between;
}

.cuatro_mod li {
    width: calc(33.33% - 20px); /* 3 por fila con espacio */
    padding: 1%;
    text-align: center;
    border: 1px solid #00bccc;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cuatro_mod li a{
    color: #000;
    transition: all 0.3s ease;
}

.cuatro_mod li a:hover{
    color: #00bccc;
}

.cuatro_mod li img{
    width: 100%;
    vertical-align: top;
}



.cuatro_mod_serv {
    display: flex;
    flex-wrap: nowrap; /* evita que bajen de línea */
    gap: 20px;          /* espacio entre ítems */
    justify-content: space-between;
    position: relative;
    bottom: 100px;
}

.cuatro_mod_serv li {
    width: calc(33.33% - 20px); /* 3 por fila con espacio */
    padding: 1%;
    text-align: center;
    border: 1px solid #87CEEB;
    background-color: #87CEEB;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cuatro_mod_serv li a{
    color: #000;
    transition: all 0.3s ease;
}

.cuatro_mod_serv li a:hover{
    color: #4f73a6;
}

.cuatro_mod_serv li img{
    width: 100%;
    vertical-align: top;
}



.tit_cuatro_mod{
    font-size: 1.2em;
    font-weight: bold;
}

.tam{
    font-size: 1.2em;
    line-height: 40px;
}



.tam_bis_blanco{
    font-size: 1.6em;
    line-height: 40px;
    color: #fff;
}

.tam_bis_negro{
    font-size: 1.6em;
    line-height: 40px;
    color: #000;
}

.cent_2025{
    text-align: center;
}


.not_izq_2025{
	float: left;
	width: 58%;
	text-align: left;
}

.not_der_2025{
	float: right;
	width: 40%;
}

.not_der_2025 img{
	width: 100%;
	vertical-align: top;
}

.texto_ancho_2025{
	text-align: left;
}



.not_izq_2025_bis{
	float: left;
	width: 40%;
}

.not_izq_2025_bis img{
	width: 100%;
	vertical-align: top;
}

.not_der_2025_bis{
	float: right;
	width: 58%;
}

.envuelve_ante{
	width: 1200px;
	margin: 0 auto;
}



.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contenido_sector {
    width: 1300px;
    margin: 0 auto;
    flex: 1; /* Esto hace que ocupe todo el espacio disponible */
}




/* SLIDE */
.slider-container {
            position: relative;
            width: 100%;
            height: 555px;
            overflow: hidden;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }

.slider-container-contacto {
            position: relative;
            width: 100%;
            height: 300px;
            overflow: hidden;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }        

        /* Responsive para móvil */
        @media (max-width: 768px) {
            .slider-container {
                height: 200px;
            }
            .slider-container-contacto {
                height: 200px;
            }
        }

        @media (max-width: 480px) {
            .slider-container {
                height: 150px;
            }
            .slider-container-contacto {
                height: 150px;
            }
        }

        .slider-list {
            margin: 0;
            padding: 0;
            list-style: none;
            position: relative;
            width: 100%;
            height: 100%;
        }

        .slider-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .slider-item.active {
            opacity: 1;
        }

        .slider-item a {
            display: block;
            width: 100%;
            height: 100%;
        }

        .slider-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }




/* container */

.container {
    width: 100%;
    overflow: hidden;
}



.titulo_h1{
	font-size: 1.8em;
	color: #00bccc;
	padding: 20px;
	text-align: center;
    line-height: 40px;
}

.titulo_h1_servicios {
    font-size: 1.8em;
    color: #00bccc;
    padding: 20px;
    text-align: center;
    line-height: 40px;
    position: relative;
    bottom: 20px;
}


.titulo_h2{
	font-size: 1em;
	color: #000;
	padding: 1%;
}

/* IMAGENES  */

.not_der_2025 {
	display: inline-block;
	overflow: hidden;
	border-radius: 12px;
	transition: box-shadow 0.4s ease;
	max-width: 100%;
}

img.corner {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	opacity: 0;
	transform: rotate(-3deg);
	transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease;
	border-radius: 6px;
}

img.corner.visible {
	opacity: 1;
	transform: rotate(0deg);
}




/* PINTADO */

::-moz-selection {
    background-color: #279ee1;
    color: #fff;
}

::-ms-selection {
    background-color: #279ee1;
    color: #fff;
}

::selection {
    background-color: #279ee1;
    color: #fff;
}


/* PLACEHOLDER */

::-webkit-input-placeholder {
    color: #999;
}

:-moz-placeholder {
    /* Firefox 18- */
    color: #999;
}

::-moz-placeholder {
    /* Firefox 19+ */
    color: #999;
}

:-ms-input-placeholder {
    color: #999;
}


/* MENU */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    height: 78px;
    display: flex; /* Usamos Flexbox para el escritorio */
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.logo {
    height: 78px;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Menú de escritorio */
.nav-menu-desktop {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    flex-grow: 1; /* Para que ocupe el espacio y centre el menú */
    justify-content: center;
}

.nav-menu-desktop .nav-menu-list {
    display: flex;
    gap: 30px;
}

.nav-item a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-item a:hover {
    color: #999;
}

.cat-btn {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 16px;
    color: #00bccc;
    cursor: pointer;
    transition: color 0.3s;
    text-transform: uppercase;
}

.cat-btn:hover {
    color: #000;
}

.hamburger {
    display: none; /* Oculto en escritorio */
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Menú móvil (oculto por defecto en escritorio) */
.nav-menu-mobile {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #f8f9fa;
    padding: 0;
    gap: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    text-align: center;
}

.nav-menu-mobile .nav-menu-list {
    flex-direction: column;
    width: 100%;
}

.nav-menu-mobile .nav-item {
    width: 100%;
}

.nav-menu-mobile .nav-item a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.nav-menu-mobile .nav-item:last-child a {
    border-bottom: none;
}


/* Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Ocultamos el menú de escritorio en móvil */
    .nav-menu-desktop {
        display: none;
    }

    .hamburger {
        display: flex; /* Mostramos la hamburguesa en móvil */
        order: 1; /* A la izquierda */
    }

    .logo {
        height: 40px;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2; /* Centrado */
    }

    .cat-btn {
        order: 3; /* A la derecha */
        display: block;
        padding: 0;
    }

    /* Mostramos el menú móvil y controlamos su despliegue */
    .nav-menu-mobile {
        display: flex; /* Mostramos el contenedor del menú móvil */
    }

    .nav-menu-mobile.show {
        max-height: 400px; /* Se expande hacia abajo */
    }
}


/*
.pie_2025{
	background-color: #000;
	color: #999;
	padding: 4%;
	text-align: center;
}
*/


.page-content {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main-content {
	flex: 1;
}


.pie_2025 {
	background-color: #ebebeb;
	color: #000;
	padding: 2%;
	text-align: center;
	font-size: 1rem;
	line-height: 1.6;
	letter-spacing: 0.5px;
	border-top: 1px solid #f5f5f5;
	box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease-in-out;
	width: 100%;

	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}


.pie_2025 a{
	color: #000;
	transition: all 0.3s ease-in-out;
}

.pie_2025 a:hover{
	color: #999;
}

.mod_pie {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.mod_pie li {
  flex: 1;                 /* cada item ocupa el mismo espacio */
  padding: 2%;
  text-align: center;
  border-radius: 5px;
  box-sizing: border-box;
  color: #000;
}

.tit_pie{
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.pie_logo{
    text-align: center;
}

.pie_logo img{
    vertical-align: top;
}

.envuelve_pie{
    width: 1300px;
    margin: 0 auto;
}


/*------------------------------------*\
    #MOVIL
\*------------------------------------*/

@media only screen and (min-width: 0px) and (max-width: 1024px) {


    .container {
        width: 100%;
        overflow: hidden;
        padding: 0;
    }

    .no_desk{
    display: block;
}

    .cuatro_mod li img {
    width: 50%;
    vertical-align: top;
}

    .tit_cuatro_mod {
    font-size: 1em;
    font-weight: bold;
    padding: 4%;
}

.tam_bis_blanco {
    font-size: 1.4em;
    line-height: 30px;
    color: #fff;
    margin-top: 34px;
}

.titulo_h1 {
    font-size: 1.4em;
    color: #00bccc;
    padding: 0px;
    text-align: center;
    line-height: 40px;
}

img.corner {
        width: 90%; /* Aumenta el ancho para móviles (opcional) */
        margin: 0 auto; /* Centra horizontalmente */
        display: block; /* Asegura que sea block para que funcione el margin auto */
        transform: rotate(0deg); /* Opcional: quita la rotación en móviles */
    }

img.corner_bis {
        width: 50%; /* Aumenta el ancho para móviles (opcional) */
        margin: 0 auto; /* Centra horizontalmente */
        display: block; /* Asegura que sea block para que funcione el margin auto */
        transform: rotate(0deg); /* Opcional: quita la rotación en móviles */
    }    

    .pie_2025 {
    background-color: #ebebeb;
    color: #000;
    padding: 6%;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
    border-top: 1px solid #f5f5f5;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 60px;
}

    .pie_logo {
    text-align: center;
    padding: 40px;
}

 .logo_pie {
        width: 120px !important; /* Aumenté el tamaño */
        height: auto !important; /* Mantiene la proporción */
        margin-bottom: 40px;
    }


    .mod_pie {
        flex-direction: column; /* Cambia a vertical */
        gap: 15px; /* Espacio entre elementos */
    }
    
    .mod_pie li {
        width: 100%; /* Ocupa todo el ancho */
        flex: none; /* Anula el flex:1 */
        padding: 15px 2%; /* Ajusta el padding */
    }


    .envuelve_pie {
    width: 100%;
    margin: 0px auto;
}

     .contenedor_img {
        aspect-ratio: 1 / 1; /* Hace el contenedor cuadrado */
        max-height: 100vh; /* Limita la altura máxima */
    }
    
    .contenedor_img img {
        width: 100%;
        height: 100%; /* Ocupa todo el contenedor */
        max-height: none; /* Elimina el límite máximo */
        object-fit: cover; /* Mantiene la proporción cubriendo el área */
    }
    
    .frase {
        white-space: normal; /* Permite múltiples líneas */
        text-align: center; /* Centra el texto */
        font-size: 1.2rem; /* Reduce un poco el tamaño */
        width: 90%; /* Limita el ancho del texto */
        padding: 15px; /* Más espacio interno */
        word-wrap: break-word; /* Permite romper palabras largas */
        line-height: 1.3; /* Mejor interlineado */
    }
    
    .contenedor_img::after {
        background: rgba(255, 255, 255, 0.8); /* Fondo más opaco para mejor legibilidad */
    }

    .tam_bis_negro {
    font-size: 1.4em;
    line-height: 30px;
    color: #000;
}



    .cuatro_mod {
        flex-direction: column; /* Cambia a dirección vertical */
        flex-wrap: nowrap;
        gap: 15px; /* Puedes ajustar el espacio entre elementos */
    }
    
    .cuatro_mod li {
        width: 96%; /* Ocupa todo el ancho disponible */
        margin: 2%; /* Elimina márgenes horizontales */
    }

    .noticias_home {
        flex-direction: column; /* Cambia a vertical */
        gap: 15px; /* Espacio entre elementos */
    }
    
.noticias_home li {
        width: 96%;
        margin: 2%;
        padding-top: 30px;
    }



    .not_izq_2025{
	float: left;
	text-align: center;
	width: 96%;
	padding: 2%;
}

.not_der_2025{
	float: left;
	width: 96%;
	padding: 2%;
	text-align: center;
}

.not_der_2025 img{
	width: 100%;
	vertical-align: top;
}

.texto_ancho_2025{
	text-align: center;
	width: 96%;
	padding: 2%;
	
}


.not_izq_2025_bis{
	float: left;
	width: 100%;
	text-align: center;
}

.not_izq_2025_bis img{
	width: 100%;
	vertical-align: top;
}

.not_der_2025_bis{
	float: left;
	width: 100%;
	text-align: center;
}

.envuelve_ante{
	width: 100%;
	margin: 0 auto;
}

.contenido_sector {
    width: 98%;
    padding: 1%;
    margin: 0 auto;
    flex: 1;
}

/* Proyectos - Mobile Layout */
.proyectos {
    flex-direction: column;
    gap: 15px;
}
    
.proyectos li {
    width: 96%;
    margin: 2%;
    min-height: auto;
    padding: 4%;
}

/* Cuatro mod serv - Mobile Layout */
.cuatro_mod_serv {
    flex-direction: column;
    gap: 15px;
    position: static;
    bottom: auto;
}
    
.cuatro_mod_serv li {
    width: 96%;
    margin: 2%;
    padding: 4%;
}

/* Contact sections - Mobile Layout */
.contacto_izq {
    float: none;
    width: 100%;
    text-align: center;
    line-height: 30px;
    margin-bottom: 20px;
}
    
.contacto_der {
    float: none;
    width: 100%;
    text-align: center;
}

/* Form sections - Mobile Layout */
.form_izq {
    float: none;
    width: 100%;
    margin-bottom: 15px;
}
    
.form_der {
    float: none;
    width: 100%;
    margin-bottom: 15px;
}

/* Services title - Mobile Layout */
.titulo_h1_servicios {
    font-size: 1.4em;
    padding: 10px;
    position: static;
    bottom: auto;
    line-height: 30px;
}

/* Fix horizontal scroll issues */
.envuelve_ante,
.contenido_sector,
.envuelve_pie {
    width: 100% !important;
    max-width: 100vw;
}

body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

.frase {
    max-width: 90vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.envuelve_legales{
    width: 96%;
    padding: 2%;
}

.texto_legal {
    font-size: 0.8em;
    line-height: 25px;
    text-align: justify;
    width: 95%;
    margin-left: 7px;
}

.picture-menor {
    width: 100%;
    margin: 0 auto;
}

}    
}