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

html, body{
  width: 100%;
  overflow-x: hidden;
}

body{
  font-family: Arial, Helvetica, sans-serif;
  background-color: white;
  color: black;
}

/*Intro */
.intro{
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background-image: url("https://res.cloudinary.com/dyylbfcmf/image/upload/v1769202544/fotoFondo_yeuuwz.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.site-title{
  position: absolute;
  top: -2.5rem;
  left: 2rem;
  margin: 0;
  font-size: 3.3rem;
  font-weight: 700;
  text-transform: lowercase;
}

.site-title a{
  color: white;
  text-decoration: none;
}

.site-title a:hover{
  color: #e65c5c;
}

.main-nav{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-left: 1.5rem;
  margin-top: 20rem;
  pointer-events: none;
}

.main-nav a{
  text-decoration: none;
  font-size: 1.4rem;
  color: white;
  text-transform: lowercase;
  pointer-events: auto;
  display: inline-block;
  width: fit-content;
}

.main-nav a:hover{
  color: #e65c5c;
}

#bubbles-layer{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 15%;      
  overflow: hidden;
  z-index: 1;
  pointer-events: auto;
}

.site-title, .main-nav{
  position: relative;
  z-index: 2;
}

.bubble{
  position: absolute;
  width: var(--size);
  height: var(--size);
  background-image: url("https://res.cloudinary.com/dyylbfcmf/image/upload/v1769202541/burbuja_jjtew4.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%);
  opacity: .95;
  cursor: pointer;
  will-change: left, top, transform;
}

.bubble.pop{
  animation: pop 220ms ease-out forwards;
}

@keyframes pop{
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to   { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}

.splash{
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1px;
  height: 1px;
  pointer-events: none;
  z-index: 1;
}

.drop{
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  transform: translate(-50%, -50%);
  filter: blur(0.35px);
  animation: drop 480ms ease-out forwards;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

@keyframes drop{
  0%{
    transform: translate(-50%, -50%) translate(0,0) scale(1);
    opacity: 1;
  }
  100%{
    transform: translate(-50%, -50%) translate(var(--dx), calc(var(--dy) + 10px)) scale(0.55);
    opacity: 0;
  }
}

.contacto{
  min-height: 87vh;
  padding: 3rem;
  
  background-color: white;
  color: black;
}

.contacto h1{
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-transform: lowercase;
}

.contact-content{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 8rem;
}

.info p{
  line-height: 1.6;
  max-width: 100%;
}

.info .bloque{
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.info .bloque br{
  line-height: 1.4;
}

.info a{
  color: black;
  text-decoration: none;
}

.info a:hover{
  color: rgb(254, 0, 0);
}

.bottom-name{
  position: static;
  width: 100%;
  color: black;
  padding: 1rem 0;
  font-size: 1.8rem;
  font-weight: bold;
  margin-left: 2rem;
}

@media (max-width: 768px){
  .intro{
    background-attachment: scroll;
    padding: 1.5rem;
  }

  .site-title{
    top: -1.5rem;
    left: 1rem;
    font-size: 2.4rem;
  }

  .main-nav{
    margin-top: 14rem;
    margin-left: 1rem;
  }

  .main-nav a{
    font-size: 1.2rem;
  }

  .contacto{
    padding: 2rem 1.25rem;
  }

  .contact-content{
    margin-top: 3rem;
  }

  .bottom-name{
    margin-left: 0;
    text-align: center;
  }

  .bottom-name h1{
    white-space: nowrap;
    font-size: 2.4rem;
  }
}
