/* --------------------------------------------------------------------------------- */
/* ------------------------------ ANIMACIÓN PRINCIPAL ------------------------------ */
/* --------------------------------------------------------------------------------- */

#animacion {
  background-color: #222222;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.animacion_boomerang {
  text-align: center;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}

.animacion_boomerang h3 {
  font-weight: 800;
  font-size: clamp(5rem, 25vw, 30rem);
  color: #F0EFEA;
  position: absolute;
  bottom: -0.31em;
  left: 0;
  transform: translateX(0%);
  white-space: nowrap;
  z-index: 10;
  margin-bottom: 0;
  padding-bottom: 0;
}

.animacion_boomerang img[src*="fotoperfil_web"],
.animacion_boomerang img[src*="fotoperfil_móvil"] {
  height: auto;
  max-height: 90vh;
  width: auto;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(0%);
  z-index: 5;
  object-fit: contain;
}

.animacion_boomerang img[src*="fotoperfil_web"] {
  display: block;
}

.animacion_boomerang img[src*="fotoperfil_móvil"] {
  display: none;
}

.animacion_boomerang h4 {
  font-weight: 300;
  font-size: clamp(2.8rem, 15vw, 15rem);
  color: #F0EFEA;
  position: absolute;
  top: 25vh;
  left: 0;
  transform: translateX(100%);
  white-space: nowrap;
  z-index: 0;
}


/* --------------------------------------------------------------------------------- */
/* ---------------------------------- EFECTO HOVER --------------------------------- */
/* --------------------------------------------------------------------------------- */

.efecto-hover {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.efecto-hover .foto-portfolio {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: filter 0.3s ease;
}

.texto-hover {
  position: absolute;
  z-index: 1010;
  color: #F0EFEA;
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.5rem);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 10px;
}

.efecto-hover:hover .foto-portfolio {
  filter: brightness(25%);
}

.efecto-hover:hover .texto-hover {
  opacity: 1;
}

/* --------------------------------------------------------------------------------- */
/* --------------------------------- EFECTO FADE IN -------------------------------- */
/* --------------------------------------------------------------------------------- */

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------- */
/* ------------------------- Efecto Sombra Galería --------------------------- */
/* --------------------------------------------------------------------------- */

.portfolio-item-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item-wrapper h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    text-align: center;
}

.portfolio-item-wrapper .foto-portfolio {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
    z-index: 1;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.portfolio-item-wrapper:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-text {
    color: #F0EFEA;
    font-weight: 300;
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
}

.portfolio-item-wrapper:hover .overlay-text {
    opacity: 1;
}

.portfolio-item-wrapper:hover h2 {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.portfolio-item-wrapper h2 {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.ilustraciones, .videojuegos, .tatuajes, .modelado3d,
.diseno-web, .identidad-corporativa, .maquetacion, .redes-sociales,
.spot-publicitario, .motion-graphic, .fotografia-paisaje, .fotografia-retrato {
    height: clamp(1px, 1vw, 1px);
    position: relative;
}

.foto-portfolio {
    margin-top: 0;
    box-shadow: none;
}