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

html {
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Poppins', sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HEADER */
header {
  width: 100%;
  background-color: #0200B0;
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.contenedor-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
}

.menu {
  margin-left: auto;
  z-index: 1100;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

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

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    background-color: #0200B0;
    border: 1px solid white;
    border-radius: 5px;
    margin-right: 10px;
  }

  .menu ul {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .menu.mostrar {
    display: block;
  }

  .menu {
    margin-left: 0;
  }
}

/* MAIN */
.contenido-principal {
  max-width: 1200px;
  margin: 150px auto 0 auto;
  padding: 0 20px;
  flex: 1;
}

.contenido-principal h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #0200B0;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.bloque-columnas {
  position: relative;
}

.bloque-columnas::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-1.5px);
  width: 3px;
  background: linear-gradient(to bottom, rgba(0, 51, 102, 0), #0200B0, rgba(0, 51, 102, 0));
  z-index: 1;
}

.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 40px;
  position: relative;
  min-height: 300px;
  z-index: 2;
}

.columna {
  flex: 1;
  padding: 20px;
  min-width: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.columna p {
  font-size: 1rem;
  line-height: 1.6;
}

.columna.imagen img {
  max-height: 300px;
  object-fit: cover;
  margin: 0 auto;
}

.fila:not(:last-of-type)::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(to right, rgba(0, 51, 102, 0), #0200B0, rgba(0, 51, 102, 0));
}

@media (max-width: 800px) {
  .bloque-columnas::before {
    display: none;
  }

  .fila {
    flex-direction: column;
  }

  .fila:not(:last-of-type)::after {
    display: none;
  }

  .columna::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, rgba(0, 51, 102, 0), #0200B0, rgba(0, 51, 102, 0));
  }

  .fila .columna.texto {
    order: 1;
  }

  .fila .columna.imagen {
    order: 2;
  }
}

.bloque-llamada {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bloque-llamada.presupuesto {
  background-image: url("../img/presupuesto_1.png");
  alt: "Presupuesto";
}

.bloque-llamada.cv {
  background-image: url("../img/cv_1.png");
  alt: "Equipo";
}

.contenido-llamada {
  position: relative;
  z-index: 1;
}

.boton-azul {
  background-color: #0200B0;
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.boton-azul:hover {
  background-color: #1d1df0;
}

.bloque-llamada:last-of-type {
  margin-bottom: 0 !important;
}

/* FOOTER */
.footer {
  background-color: #0200B0;
  color: white;
  padding: 20px;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer .columna {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.footer .columna h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer .columna p {
  margin: 0 0 10px 0;
  line-height: 1.5;
  font-size: 1rem;
}

.footer .contenedor-mapa {
  display: block;
  width: 100%;
  max-width: 100%;
}

.footer .contenedor-mapa iframe {
  width: 100%;
  height: 150px;
  border: none;
  border-radius: 5px;
  display: block;
}

.footer-inferior {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.footer-inferior a {
  color: white;
  text-decoration: underline;
  margin: 0 5px;
}

@media (max-width: 800px) {
  .footer-contenido {
    flex-direction: column;
    padding: 0 20px;
  }

  .footer .columna {
    width: 100%;
  }

  .footer .contenedor-mapa iframe {
    height: 200px;
  }

  .footer-inferior {
    text-align: center;
  }

  .footer-inferior span {
    display: block;
    margin-top: 5px;
  }
}

.footer .columna:nth-child(1) h3 {
  margin-top: 7px;
}

.footer .columna:nth-child(2) h3 {
  margin-top: 7px;
}

.footer .columna:nth-child(3) h3 {
  margin-top: 7px;
}

/* ANIMACIONES */
.animada {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animada.visible {
  opacity: 1;
  transform: translateY(0);
}
