
.reveal-title{
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.9,.2,1.1);
  will-change: transform, opacity;
}

/* Estado visible */
.reveal-title.is-visible{
  opacity: 1;
  transform: translateX(0);
}

/* “Rebote” extra (opcional) */
.reveal-title.is-visible.bounce{
  animation: titleBounce 650ms ease-out 1;
}

@keyframes titleBounce{
  0%   { transform: translateX(-24px); }
  70%  { transform: translateX(0); }
  85%  { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .reveal-title{
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}

/* estado inicial */
.reveal-right{
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.9,.2,1.1);
    will-change: transform, opacity;
  }
  
  /* visible */
  .reveal-right.is-visible{
    opacity: 1;
    transform: translateX(0);
  }
  
  /* rebote */
  .reveal-right.bounce{
    animation: bounceRight 650ms ease-out 1;
  }
  
  @keyframes bounceRight{
    0%   { transform: translateX(24px); }
    70%  { transform: translateX(0); }
    85%  { transform: translateX(6px); }
    100% { transform: translateX(0); }
  }

  /* estado inicial */
.reveal-up{
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.9,.2,1.1);
    will-change: transform, opacity;
  }
  
  /* visible */
  .reveal-up.is-visible{
    opacity: 1;
    transform: translateY(0);
  }
  
  /* rebote premium */
  .reveal-up.bounce{
    animation: bounceUp 700ms ease-out 1;
  }
  
  @keyframes bounceUp{
    0%   { transform: translateY(32px); }
    70%  { transform: translateY(0); }
    85%  { transform: translateY(8px); }   /* micro rebote */
    100% { transform: translateY(0); }
  }
  
  .ocean {
    position: relative;
    width: 100%;
    height: 200px;
    bottom: 0;
    background-color: transparent;
    overflow: hidden;
  }
  
  .wave {
    position: absolute;
    bottom: 0;
    width: 6400px;
    height: 198px;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    animation: wave 8s linear infinite;

  }

  

  .wave-front-blue {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='198' viewBox='0 0 1600 198'><path fill='%23FDE9EF' fill-rule='evenodd' d='M.005 121C311 121 409.898-.25 811 0c400 0 500 121 789 121v77H0s.005-48 .005-77z' transform='matrix(-1 0 0 1 1600 0)'/></svg>");
    z-index: 2;
    animation-duration: 6s;
  }
  
  .wave-back-blue {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='198' viewBox='0 0 1600 198'><path fill='%23F48FB1' fill-rule='evenodd' d='M.005 121C311 121 409.898-.25 811 0c400 0 500 121 789 121v77H0s.005-48 .005-77z' transform='matrix(-1 0 0 1 1600 0)'/></svg>");
    z-index: 1;
    opacity: 0.7;
    animation-duration: 12s;
    bottom: -10px;
  }

  @keyframes wave {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-1600px); }
  }
  
  @media (max-width: 768px){

    .ocean{
      height: 100px; /* antes 200px */
    }
  
    .wave{
      height: 100px;          /* antes 198px */
      width: 3200px;          /* antes 6400px */
      background-size: 800px 100px;
    }
  
    .wave-front-blue{
      bottom: 0;
      animation-duration: 5s; /* más rápida = más visible */
    }
  
    .wave-back-blue{
      bottom: -6px;
      animation-duration: 9s;
    }
  
    @keyframes wave {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-800px); } /* misma proporción */
    }
  }
  