@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    height: 100%;
    background-image: url(fondoweb.png); /* Asegúrate de que esta es la imagen que quieres como fondo fijo */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-y: auto;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/*
.content {
    flex: 1;
    background-image: url(fondoweb.png); /* Asegúrate de que esta es la imagen que quieres como fondo fijo
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-y: auto;
}
*/
.scroll-content {
    min-height: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
}

header {
    background-color: #00102E;
    color: #fff;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

header .logo {
    margin-right: 20px;
    width: 200px;
    height: 200px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

header nav ul li {
    margin-right: 20px;
}

header nav a {
    color: #fff;
    text-decoration: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
}

section {
    max-width: 1200px;
    background-color: #fff;
    padding: 2em;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #00102E;
    margin-bottom: 10px;
}

p {
    margin-bottom: 20px;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

#sobre-nosotros {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

#sobre-nosotros h2 {
    text-align: center;
    color: #00102E;
    margin-bottom: 40px;
}

#contacto {
    margin-top: 20px; /* Añadir margen superior */
}

.mision-vision {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.mision, .vision {
    flex-basis: 48%;
}

.historia, .valores, .equipo, .compromiso {
    margin-bottom: 40px;
}

.valores ul, .compromiso ul {
    list-style-type: none;
    padding-left: 0;
}

.valores li, .compromiso li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.valores li:before, .compromiso li:before {
    content: "•";
    color: #00102E;
    position: absolute;
    left: 0;
}

#inicio button {
    margin: 0 auto;
    display: block;
}

.boton-contacto {
    display: inline-block;
    text-decoration: none;
    color: white;
}
.boton {
    background-color: #00102E;
    color: white;
    padding: 1em 2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.boton:hover {
    background-color: #444;
}

.boton:hover a {
    color: #fff;
}

.clientes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px; /* Espacio entre las columnas */
}

.cliente {
    flex-basis: calc(33.333% - 20px); /* Ancho para 3 columnas con espacio entre ellas */
    box-sizing: border-box;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cliente img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.cliente h3 {
    margin-bottom: 10px;
    color: #00102E;
}

.cliente p {
    font-style: italic;
}

.proyectos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.proyecto {
    margin: 20px;
    width: calc(33.33% - 20px);
}

.proyecto img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.proyecto h3 {
    margin-top: 10px;
}

.formulario {
    background-color: #fff;
    padding: 2em;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.formulario input, .formulario textarea {
    width: 100%;
    padding: 1em;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.privacidad {
    margin-bottom: 20px;
}

.privacidad input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.privacidad label {
    font-size: 14px;
    color: #666;
    display: inline-block;
}

.privacidad a {
    text-decoration: underline;
    color: #337ab7;
}

.privacidad a:hover {
    color: #23527c;
}

.privacidad input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
}

.privacy-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
  }
/*
.privacy-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.privacy-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  }
*/
  .privacy-content {
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.formulario button {
    background-color: #00102E;
    color: white;
    padding: 1em 2em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.formulario button:hover {
    background-color: #444;
    color: #fff;
}

#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00102E;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: none;
}

#scroll-to-top img {
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

#scroll-to-top:hover {
  background-color: #444;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background-color: #00102E;
    color: #fff;
}

.correo {
    color: #fff;
}

.info-footer {
    text-align: left;
}

.info-footer p {
    margin-bottom: 10px;
}

.redes-sociales img{
    width: 50px;
    height: 50px;
}

.logo-footer {
    margin-left: 20px;
}

.logo-footer img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.copyright {
    text-align: center;
    padding: 0.5em;
    background-color: #00102E;
    color: #fff;
    border-top: 1px solid #444;
}

.cookie-popup {
    display: none; /* Inicialmente oculto, se muestra con JavaScript */
    position: fixed;
    left: 20px;
    bottom: 20px;
    background-color: #666; /* Fondo claro */
    font-family: 'Barlow Semi Condensed', sans-serif;
    color: white; /* Texto negro para contraste */
    padding: 20px;
    border-radius: 5px; /* Bordes redondeados */
    z-index: 100; /* Asegura que el pop-up esté sobre otros elementos */
}

.cookie-popup button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin-right: 10px; /* Espacio entre botones */
    border-radius: 5px; /* Bordes redondeados */
}

/* Estilo para el botón "Aceptar" */
#accept {
    background-color: #4CAF50; /* Verde */
    color: white;
}

/* Estilo para el botón "Rechazar" */
#reject {
    background-color: #f44336; /* Rojo */
    color: white;
}

.cookie-popup.active {
    display: block;
}

#noticias-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.noticia {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
}
.noticia h2 {
    font-size: 1.2em;
    margin: 0;
    padding-bottom: 5px;
}
.noticia .fecha {
    font-size: 0.9em;
    color: #888;
}
.noticia p {
    font-size: 1em;
    margin: 5px 0;
}
.noticia a {
    display: block;
    width: fit-content;
    margin-top: 10px;
    color: #007BFF;
}
.noticia img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.noticia a:hover {
    text-decoration: underline;
}

/* Estilos para el menú de hamburguesa */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

/* Estilos para el menú de navegación en móvil
#nav-menu {
    display: flex;
}
*/
.close-menu {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Responsive design */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }
    header .logo {
        margin-bottom: 20px;
    }
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    header nav ul li {
        margin-bottom: 20px;
    }
    main {
        flex-direction: column;
        align-items: center;
    }
    .cliente {
        flex-basis: 100%; /* En pantallas pequeñas, cada cliente ocupa todo el ancho */
    }
    section {
        margin-bottom: 40px;
    }

    .mision-vision {
        flex-direction: column;
    }

    .mision, .vision {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
    .proyectos-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%; /* Cambio de ancho a 100% */
      }

      .proyecto {
        margin: 20px;
        width: 100%;
      }

      .proyecto img {
        width: 100%;
        height: auto;
      }
    .formulario {
        margin-bottom: 40px;
    }
    .privacy-content {
        width: 90%;
        max-width: none;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
      }
      .hamburger {
        display: block;
    }
    #nav-menu {
        display: none;
        flex-direction: column;
        background-color: #00102E;
        position: absolute;
        top: 70px;
        width: 100%;
        left: 0;
        z-index: 1000;
    }
    #nav-menu.active {
        display: flex;
    }
    #nav-menu ul {
        flex-direction: column;
        width: 100%;
    }
    #nav-menu ul li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    .close-menu {
        display: block;
    }

}

@media (max-width: 480px) {
    header {
        padding: 0.5em;
    }
    header .logo {
        width: 100px;
        height: 100px;
    }
    header nav ul {
        padding: 0;
    }
    header nav ul li {
        margin-bottom: 10px;
    }
    main {
        padding: 1em;
    }
    section {
        padding: 1em;
    }
    .proyectos-container {
        padding: 1em;
    }
    .proyecto {
        margin-bottom: 20px;
    }
    .formulario {
        padding: 1em;
    }
}
