/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  --altura-footer-informacion: 380px;
  isolation: isolate;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  color: #111;
  background-color: #f4f3ef;
}

a {
  color: inherit;
}

/* Mantiene el pie fuera de la primera pantalla */

main {
  min-height: calc(100vh - 56px);
}


/* =========================
   CABECERA
========================= */

.cabecera {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  height: 56px;
  padding-left: 4px;
  background-color: #f4f3ef;
}

.logo {
  display: block;
  width: auto;
  height: 32px;
}

.nombre-completo {
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nombre-movil {
  display: none;
  font-size: 18px;
}


/* =========================
   SECCIÓN CARRUSEL
========================= */

.seccion-carrusel {
  position: relative;
  width: 100%;
  height: 420px;
  max-height: 65vh;
  overflow: hidden;
}


/* =========================
   CARRUSEL
========================= */

.carrusel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carrusel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: translateX(100%);
  transition: transform 0.8s ease-in-out;
}

.carrusel .slide.activo {
  transform: translateX(0);
  z-index: 2;
}

.carrusel .slide.saliendo {
  transform: translateX(-100%);
  z-index: 1;
}

/* Recorrido vertical completo de las dos primeras imágenes */
.carrusel .slide:nth-child(1).activo,
.carrusel .slide:nth-child(2).activo,
.carrusel .slide:nth-child(3).activo  {
  animation: recorrido-hacia-abajo 8s linear forwards;
}

@keyframes recorrido-hacia-abajo {
  /* Quieta durante los primeros 0,5 segundos */
  0%,
  10% {
    object-position: center bottom;
  }

  /* Desplazamiento vertical durante 4 segundos */
  90%,
  100% {
    object-position: center top;
  }
}
/* =========================
   MENÚ PRINCIPAL
========================= */

.menu-principal {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(60px, 12vw, 180px);
  padding-top: 16px;
}

.menu-principal > a {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.menu-principal > a:hover {
  opacity: 0.45;
}


/* =========================
   SERVICIOS DEL PIE
========================= */

.footer-servicios {
  padding: 40px 30px;
  background-color: #f4f3ef;
}

.footer-servicios ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.footer-servicios li {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: #444;
}


/* =========================
   INFORMACIÓN DEL PIE
========================= */

.footer-informacion {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  padding: 60px 30px 22px;
  color: #f4f3ef;
  background-color: #3d3d3b;
}

.footer-columnas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-texto-principal {
  margin: 0 0 32px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: inherit;
}

.footer-columna h2 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.5px;
}

.footer-columna p {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

.footer-columna address {
  font-style: normal;
}

.footer-columna a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-columna a:hover {
  opacity: 0.55;
}


/* =========================
   COPYRIGHT
========================= */

.copyright,
.copyright2 {
  display: block;
  width: 100%;
  margin-top: 55px;
  text-align: center;
  font-size: 11px;
  font-weight: 300;
  color: #aaa;
}
.copyright2 {
  font-size: 15px;
  color: #222;
}


/* =========================
   EFECTO PIE BAJO LA PÁGINA
========================= */

.cabecera,
main,
.footer-servicios {
  position: relative;
  z-index: 2;
  background-color: #f4f3ef;
}

.pie-servicios::after {
  display: block;
  height: var(--altura-footer-informacion);
  content: "";
}





/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

  .menu-principal {
    gap: 60px;
  }

}


/* =========================
   MÓVIL
========================= */

@media (max-width: 768px) {

  body {
    --altura-footer-informacion: 520px;
  }

  .cabecera {
    height: 52px;
  }

  .nombre-completo {
    display: none;
  }

  .nombre-movil {
    display: inline;
  }

  main {
    min-height: calc(100vh - 52px);
  }


  /* MENÚ PRINCIPAL */

  .menu-principal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 12px;
    column-gap: 24px;
    max-width: 320px;
    margin: 0 auto;
    padding: 24px 16px;
  }

  .menu-principal > a {
    font-size: 13px;
    white-space: nowrap;
  }


  /* SERVICIOS */

  .footer-servicios {
    padding: 30px 20px;
  }

  .footer-servicios ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-servicios li {
    width: 100%;
    font-size: 13px;
    text-align: center;
  }


  /* INFORMACIÓN */

  .footer-informacion {
    padding: 42px 26px 20px;
  }

  .footer-columnas {
    grid-template-columns: 1fr;
    gap: 38px;
    max-width: 420px;
  }

  .footer-texto-principal {
    margin-bottom: 28px;
    font-size: 13px;
  }

  .footer-columna h2 {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .footer-columna p {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .copyright {
    margin-top: 40px;
  }

}


/* =========================
   MÓVIL EN HORIZONTAL
========================= */

@media (max-width: 768px) and (orientation: landscape) {

  .menu-principal {
    flex-wrap: nowrap;
    max-width: 100%;
    gap: clamp(20px, 5vw, 50px);
    padding: 15px 20px;
  }

}
