@view-transition {
  navigation: auto;
}

html {
  scroll-behavior: smooth;

}

* {
  box-sizing: border-box;
}

body.noscroll {
  overflow: hidden;
}

body {

  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #f9f9f9;
  width: 100%;
  padding: 0;
  margin: 0;
}


#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(52, 52, 52);
  z-index: 9999;
  transition: 0.2s ease-in;
}

#preloader.oculto {
  opacity: 0;
  pointer-events: none;
}



/* Animación de secciones */
.section {
  opacity: 0;
  transform: rotateY(90deg);
  transition: 0.2s ease-in;
  will-change: transform, opacity;
}

.section.visible {
  opacity: 1;
  transform: rotateY(0deg);
  transition: 0.2s ease-in;
}







/* Estilos generales*/
h1 {
  color: white;
  font-size: 3rem;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin: 0;
}

h2 {
  color: white;
  font-size: 2rem;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-weight: 300;
  margin: 0;
}

h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  margin: 0;
  text-decoration: underline #088685;
  text-underline-offset: 0.5rem;
}

h4 {
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  margin: 0;
  color: #088685;
}

h5 {
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  color: white;
}

h6 {
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  margin: 0;
  color: white;
}

a {
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-size: 16px;
  text-decoration: none;
}

p {
  margin: 0;
  font-size: 18px;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  color: #4E4E4E;
  line-height: 2rem;
  /* 142.857% */
}

button {
  white-space: nowrap;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  padding: 1rem 3rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 4px;
  border: 2px solid #FFF;
  color: white;
  background-color: rgba(0, 0, 0, 0);
  transition: 0.2s ease-in;
}

button span {
  position: relative;
  display: inline-block;
  transition: 0.2s ease-in;
}

button span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: 0.2s ease-in;
}

button:hover span::after {
  width: 100%;
}

.button-black span::after {
  background-color: #1a1a1a;
}

/* BREAKPOINT: Desktop pequeño*/
@media screen and (max-width: 1250px) {
  button {
    font-size: 1rem;
    padding: 1rem 3rem;
    gap: 10px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  p {
    font-size: 18px;
    line-height: 2rem;
    /* 142.857% */
  }
}

/* BREAKPOINT: Tablet*/
@media screen and (max-width: 991px) {
  button {
    font-size: 1rem;
    padding: 0.8rem 2.2rem;
    gap: 10px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.3rem;
  }

  p {
    font-size: 18px;
    line-height: 1.5rem;
    /* 142.857% */
  }
}

/* BREAKPOINT: Movil L*/
@media screen and (max-width: 767px) {
  button {
    font-size: 1rem;
    padding: 0.8rem 2.5rem;
    gap: 10px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.3rem;
  }

  p {
    font-size: 18px;
  }
}

/* BREAKPOINT: Movil*/
@media screen and (max-width: 521px) {
  button {
    font-size: 1rem;
    gap: 10px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.3rem;
  }

  p {
    font-size: 18px;
  }
}
















/* ========== FADE IN / FADE OUT DEL CONTENIDO ========== */
#content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  position: relative;
  z-index: 1000;
}

#content.show {
  opacity: 1;
  pointer-events: auto;
}

/* ========== CONTENEDOR DE LA ANIMACIÓN ========== */
.scroll-anim {
  position: relative;
  height: 200dvh;
  z-index: 1;
}

/* Escenario donde se inyecta la imagen */
.scroll-anim__stage img {
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

/* ========== RESET BÁSICO ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}



/* ========== Contenido que aparece ========== */
#contenido {
  display: flex;
  text-align: center;
  position: fixed;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(0.5px);
  top: 0;
  padding: 20px 40px;
  z-index: 1000;
  transition: transform 0.5s ease-out;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.50) 0%, rgba(217, 217, 217, 0.00) 70%);
}

#contenido.visible {
  transform: translateY(0);
}

#hero-section-scroll {
  gap: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  top: 0;
  height: 100vh;
  z-index: 1;
  background-size: cover;
}

#scroll-icon {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: auto;
  z-index: 9999;
  animation: moveUpDown 2s ease-in-out infinite;
}

@keyframes moveUpDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-15px);
    /* sube 15px */
  }
}










/* ========== NAVBAR ========== */
#navbar {
  position: fixed;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(0.5px);
  top: 0;
  padding: 20px 40px;
  z-index: 1000;
  transition: transform 0.5s ease-out;
  /* slide hacia abajo */
  background: linear-gradient(0deg, rgba(217, 217, 217, 0) 0%, #373737 100%);
}










/* Logo */
#logo {
  width: 100%;
}

/* Menú desktop */
#nav-tittles {
  color: white;
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

#nav-tittles li a {
  position: relative;
  display: inline-block;
  color: white;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  text-decoration: none;
  transition: 0.2s ease-in;
}

#nav-tittles li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: 0.2s ease-in;
}

#nav-tittles li a:hover {
  transform: translateY(-3px);
  transition: 0.2s ease-in;
}

#nav-tittles li a:hover::after {
  width: 100%;
}

/* Botón hamburguesa */
.hamburger-icon {
  color: white;
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

/* Botón cerrar menú */
#close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
  display: none;
  /* oculto por defecto */
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  #navbar {
    padding: 20px 40px;
  }

  #contact-button {
    display: none;
  }

  .hamburger-icon {
    display: block;
  }

  #nav-tittles {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  #nav-tittles.active {
    display: flex;
  }

  #nav-tittles.active li {
    text-align: center;
  }

  #nav-tittles.active a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
  }

  #nav-tittles.active #close-menu {
    display: block;
  }
}

@media (max-width: 767px) {
  #navbar {
    padding: 20px 20px;
  }

  #logo {
    width: 100%;
  }
}

@media (max-width: 521px) {
  #navbar {
    padding: 20px 20px;
  }

  #logo {
    width: 70%;
  }
}




.button-icon {
  display: flex;
  flex-direction: row;
}

.img-icon {
  width: 25%;

}

section {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-inline: 220px;
  gap: 1rem;
}

#hero-section {
  gap: 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0;
  top: 0;
  height: 100vh;
  z-index: 1;
  background-image: url("Images/hero section.jpg");
  background-size: cover;
}

#hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-inline: 220px;
  align-items: center;
  text-align: center;
}



/* BREAKPOINT: Desktop pequeño*/
@media screen and (max-width: 1250px) {
  #hero-content {
    display: flex;
    margin: 220px 160px;
  }

  section {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-inline: 120px;
    gap: 1rem;
  }
}

/* BREAKPOINT: Tablet*/
@media screen and (max-width: 991px) {
  #hero-content {
    display: flex;
    margin: 200px 120px;
    gap: 1.5rem;
  }

  section {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-inline: 40px;
    gap: 1rem;
  }
}


/* BREAKPOINT: Movil L*/
@media screen and (max-width: 767px) {
  #hero-content {
    display: flex;
    margin: 200px 60px;
    flex-direction: column;
  }

  section {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-inline: 40px;
    gap: 1rem;
  }
}

/* Movil */
@media screen and (max-width:521px) {
  section {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-inline: 20px;
  }

  #hero-content {
    display: flex;
    margin: 200px 60px;
    flex-direction: column;
  }
}

#About-us {
  background-image: url("Images/City black and white.webp");
  background-size: cover;
  background-position: bottom;
  min-height: 140vh;
  position: relative;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  text-align: start;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 50%;
  justify-content: center;
}

.text-block button {
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
  width: auto;
}

#text-button-block {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 1rem;
}

.content img {
  width: 50%;
  aspect-ratio: 4/ 2;
}

.img-filter {
  width: 50%;
  filter: grayscale(50%)
}

img {
  border-radius: 4px;
  object-fit: cover;
}


#BW-photo {
  width: 100%;
}


/* BREAKPOINT: Desktop pequeño*/
@media screen and (max-width: 1250px) {
  #About-us {
    min-height: 120vh;
  }

  .content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    text-align: start;
  }
}

/* BREAKPOINT: Tablet*/
@media screen and (max-width: 991px) {
  #About-us {
    min-height: 100vh;
  }

  .content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    text-align: start;
    align-items: center;
  }

  .text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}


/* BREAKPOINT: Movil L*/
@media screen and (max-width: 767px) {
  #About-us {
    min-height: 200vh;
  }

  .content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: start;
  }

  .content img {
    width: 100%;
    aspect-ratio: 4/ 2;
  }

  .text-block {
    width: 100%;
  }

  #text-button-block {
    gap: 0.5rem;
  }
}

/* Movil */
@media screen and (max-width: 521px) {
  #About-us {
    min-height: 150vh;
  }

  .content {
    display: flex;
    flex-direction: column;
    text-align: start;
  }
}




















#projects {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-center {
  text-align: center;
}

#projects h3 {
  text-align: center;
}

.buttons {
  margin: 0;
  padding: 0%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.buttons button {
  font-weight: 300;
  color: #1a1a1a;
  padding: 0.7em 1.5em;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-size: 1.1em;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s ease-in;
}

.buttons button:hover {
  color: #088685;
  border: 2px solid #088685;
  transition: 0.2s ease-in;
  background-color: rgba(255, 0, 0, 0);
}

.buttons .btn-clicked {
  color: #088685;
  border: 2px solid #088685;
  transition: 0.2s ease-in;
}

.H-flex1 {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 100%;
}

.H-flex1 img {
  width: 50%;
  aspect-ratio: 6/ 2;
}

.H-flex {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}

.H-flex img {
  object-fit: cover;
}

.V-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.V-flex img {
  object-fit: cover;
  width: 100%;
}

.img100 {
  width: 50% !important;
}























#people {
  display: flex;
  flex-direction: column;
  text-align: center;
}

#people-photos {
  overflow-x: auto;
  width: 100%;
}

#people-photos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(5, auto);
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  /* flex-wrap: wrap;
  display: flex;
  gap:1rem;*/
}

.block-image {
  position: relative;
  width: auto;
}

.block-gradient {
  background-color: rgba(255, 0, 0, 0);
  background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.8));
  position: absolute;
  inset: auto 0% 0%;
  margin: 0;
  align-items: start;
  display: flex;
  flex-direction: column;
  padding-top: 125px;
  padding-bottom: 8px;
  padding-left: 8px;
}

.bloque {
  display: none;
}

.bloque.active {
  display: block;
}

.buttons .btn-clicked {
  font-weight: 500;
  box-shadow: 0px 2px 8px #CACACA;
}



/* BREAKPOINT: Tablet */
@media screen and (max-width: 991px) {
  #proyectos {
    margin-inline: 80px;
    gap: 1rem;
  }

  .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .img100 {
    width: 100% !important;
  }

  .H-flex1 {
    flex-direction: column;
  }

  .H-flex1 img {
    width: 100%;
  }

  .H-flex {
    flex-direction: column;
  }

  .H-flex img {
    width: 100%;
    ;
  }

  .grid-row {
    display: grid;
    grid-template-columns: repeat(3, auto);
  }

  .block-image {
    width: 80%;
  }
}

/* BREAKPOINT: Movil L */
@media screen and (max-width: 767px) {
  .grid-row {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.5rem;
  }

}

/* BREAKPOINT: Movil */
@media screen and (max-width: 521px) {
  .buttons button {
    width: 100%;
  }

  .grid-row {
    display: grid;
    grid-template-columns: repeat(1, auto);
  }

  .block-image {
    width: 80%;
  }
}































/* Contacto*/

#contact {
  width: 100%;
  background-image: url("Images/Contact-bg-image.webp");
  background-position: 0 50%;
  background-size: cover;
  padding: 0;
  background-attachment: fixed;
}

form {
  padding: 3rem 0px 3rem 220px;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

#formularios {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.5rem;
  font-family: "Karla", Arial, Helvetica, sans-serif;
}

#nombre ::placeholder {
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-weight: 100;
}

form input {
  font-family: "Karla", Arial, Helvetica, sans-serif;
}

#formulario-contacto input,
#formulario-contacto textarea {
  width: 100%;
  border: 2px solid #1a1a1a;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-weight: 100;
  border-radius: 4px;
  resize: vertical;
  color: #1a1a1a
}

form ::placeholder {
  font-family: "Karla", Arial, Helvetica, sans-serif;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

form textarea {
  height: 140px;
  resize: vertical;
  /* Puedes quitar esto si no quieres que se redimensione */
}

#formulario-contacto button {
  width: 50%;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s ease-in;
  align-items: center;
  justify-content: center;
  display: flex;
  font-family: "Karla", Arial, Helvetica, sans-serif;
  font-weight: 600;
}

#formulario-contacto button:hover {
  background-color: #005f65;
}

input::placeholder {
  color: #4e4e4e;
  font-family: "Rubik";
  font-weight: 100;
}

form button {
  border-radius: 4px;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  transition: 0.2 ease-in;
}

form button:hover {
  border: 2px solid #088685;
  transition: 0.2 ease-in;
  color: #088685;
}


/* BREAKPOINT: Desktop pequeño*/
@media screen and (max-width: 1250px) {
  form {
    padding: 3rem 0px 3rem 160px;
  }
}

/* BREAKPOINT: Tablet*/
@media screen and (max-width: 991px) {
  form {
    padding: 3rem 0px 3rem 60px;
    width: 75%;
  }

  #formulario-contacto {
    gap: 0.5rem;
  }

  form textarea {
    height: 140px;
  }

  #formulario-contacto button {
    width: 100%;
  }
}


/* BREAKPOINT: Movil L*/
@media screen and (max-width: 767px) {
  form {
    padding: 3rem 0px 3rem 20px;
    width: 75%;
  }

  #formulario-contacto {
    gap: 0.5rem;
  }

  form textarea {
    height: 140px;
  }

  #formulario-contacto button {
    width: 100%;
  }
}

/* Movil */
@media screen and (max-width: 521px) {
  form {
    padding: 3rem 20px;
    width: 100%;
  }
}



.footer {
  padding: 4rem 4rem 2rem 4rem;
  width: 100%;
  background-color: #545454;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  color: white;
  width: auto;
}

footer img {
  object-fit: contain;
  height: 100%;
}

.footer-logo {
  height: 100%;
}


.footer-column {
  display: flex;
  flex-direction: column;
}

.footer h4 {
  color: white;
  margin: 0 0 12px 0;
}

.footer ul {
  padding: 0;
  list-style: none;
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

.footer ul a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer ul a:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  margin: auto;
}

.footer-social a {
  width: 28px;
  height: 28px;
  display: inline-block;
}

.btn-submit {
  padding: 0.7em 1.5em;
  font-size: 1.1em;
  border: 2px solid #088685;
  border-radius: 4px;
  cursor: pointer;
  background: none;
  color: #1a1a1a;
  transition: 0.2s;
}

.btn-submit:hover {
  background-color: #eee;
  font-weight: 600;
}

/* Responsive */

@media (max-width: 991px) {
  .footer {
    padding: 2rem 2rem 1rem 2rem;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  footer img {
    object-fit: contain;
  }
}

.footer-social {
  margin-top: 2rem;
}


@media (max-width: 767px) {
  .footer {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-social {
    justify-content: center;
  }
}

#final {
  display: flex;
  flex-direction: column;
  gap: 0;
}