@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* GENERAL */
body {
    background-color: #f4f7fb;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 50px; /* Igual que archivo 2 */
}

main {
    flex: 1;
}

/* MENÚ SUPERIOR */

.menu { 
    background-color: #ffffff;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    padding: 0 60px;   
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.logo img {
    height: 100px;
    margin-left: 50px;
}

.linksmenu {
    display: flex;
    margin-left: auto;
    margin-right: 10px;
    gap: 30px;        
    padding-right: 50px;
    font-weight: bold;
}

.linksmenu a {
    text-decoration: none;
    color: #0a2fa3;
    font-size: 25px;
}

.desplegable {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    color: #0a2fa3;
    cursor: pointer;
}

/* FOOTER */

.sticky-footer {
  background-color: #d9d6d5;
  width: 100%;
  color: #222;
}

.footer-container {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.footer-logo .logo-peque {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.footer-links-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.footer-links {
  font-size: 14px;
  display: inline-block;
  margin: 0 auto;
}

.footer-links a {
  text-decoration: none;
  margin: 0 5px;
}
.footer-links a:hover {
    color: #0a2fa3;
    text-decoration: underline;
}

.footer-img-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: auto;
}

.footer-copy {
  font-size: 12px;
  margin-bottom: 15px;
}

#navtop {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
  align-items: center;
  text-align: center;
}

#navtop img#linkedin {
  width: 25px;
  height: 25px;
}

/* PRIMER BLOQUE (HERO) */

.textoprincipal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 250px;
    margin-bottom: 100px;
}

.ppaltext {
    max-width: 45%;
    margin-left: 300px;
}

.ppaltext h1 {
    color: #0a2fa3;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.ppaltext p {
    color: #0a2fa3;
    font-size: 20px;
    line-height: 1.5;
}

.botoncontacto {
    display: inline-block;
    margin-top: 25px;
    margin-left: 15%;
    padding: 14px 40px;
    font-size: 25px;
    background-color: #448ac0;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 60px;
}

.botoncontacto:hover {
    background-color: #081f6e;
    transform: translateY(-2px);
}

.imgInicio img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-right: 100px;
}

/* SEGUNDO BLOQUE */

.textosec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 50px;
}

.sectext {
    max-width: 50%;
    margin-left: 20px;
}

.sectext h2 {
    color: #0a2fa3;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sectext p {
    color: #0a2fa3;
    font-size: 20px;
    line-height: 1.5;
}

.aboutboton {
    display: inline-block;
    margin-top: 25px;
    margin-left: 35%;
    padding: 14px 40px;
    font-size: 25px;
    background-color: #448ac0;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 60px;
}

.imgsec img {
    width: auto;
    height: 400px;
}

/* TERCER BLOQUE */

.tercerbloque {
    display: flex;
    justify-content: space-between;
    background-color: #f4f7fb;
    margin-bottom: 50px;
}

.valores {
    max-width: 75%;
    margin-left: 100px;
    color: #0a2fa3;
    font-size: 20px;
}

.listavalores {
    margin-left: 60px;
}


@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    body {
        padding-top: 80px;
    }

    /* MENÚ */
    .menu {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 20px;
    }

    .logo img {
        height: 60px;
        margin-left: 0;
    }

    .desplegable {
        display: block;
        align-self: flex-end;
        margin-bottom: 10px;
    }

    .linksmenu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
        padding: 20px 0;
        background-color: #ffffff;
    }

    .linksmenu.active {
        display: flex;
    }

    .linksmenu a {
        font-size: 18px;
    }

    /* HERO */
    .textoprincipal {
        flex-direction: column;
        text-align: center;
        margin-top: 150px;
    }

    .ppaltext {
        max-width: 90%;
        margin: 0 auto;
        padding: 20px;
    }

    .botoncontacto {
        margin-left: 0;
        margin-right: 0;
        font-size: 18px;
        padding: 12px 30px;
    }

    .imgInicio img {
        margin: 20px auto;
        max-width: 80%;
    }

    /* SEGUNDO BLOQUE */
    .textosec {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .sectext {
        max-width: 90%;
        margin: 0 auto;
    }

    .aboutboton {
        margin-left: 0;
        font-size: 18px;
        padding: 12px 30px;
    }

    .imgsec img {
        height: auto;
        max-width: 80%;
        margin: 20px auto;
    }

    /* TERCER BLOQUE */
    .tercerbloque {
        flex-direction: column;
        padding: 20px;
    }

    .valores {
        margin-left: 0;
        max-width: 100%;
    }

    .listavalores {
        margin-left: 0;
    }
    .listavalores dt{
        margin-left: 10px;
    }
}

/* FOOTER MOBILE */
@media (max-width: 600px) {
  .footer-links-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-img-right {
    position: static;
    transform: none;
    margin-top: 10px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
    #navtop {
        flex-direction: column;
        gap: 10px;
}
}

/*COOKIES*/
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e1e;
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  display: flex;
  gap: 15px;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  animation: fadeIn 0.6s ease-out;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-banner button {
  background: #4CAF50;
  border: none;
  padding: 8px 15px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

#reject-cookies {
  background: #d9534f;
}

.cookie-banner button:hover {
  opacity: 0.85;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
