  /* Reset básico */
  @font-face {
    font-family: "Montreal";
    src: url("/media/fonts/PPNeueMontreal-Medium.otf") format("otf");
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: "Montreal Bold";
    src: url("/media/fonts/PPNeueMontreal-Bold.otf") format("otf");
    font-weight: 700;
    font-style: bold;
  }

  @font-face {
    font-family: "Editorial";
    src: url("/media/fonts/PPEditorialNew-Regular.otf") format("otf");
    font-weight: 700;
    font-style: normal;
  }

  @font-face {
    font-family: "EditorialItalic";
    src: url("/media/fonts/PPEditorialNew-Italic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
  }

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




  /* HEADER */
  .site-header {
      font-family: "Montreal","Helvetica Neue",
                Helvetica, Arial, sans-serif;
    display: flex;
      align-items: center;
    justify-content: space-between;
  padding: 10px 24px;   /* CLAVE */
    margin-bottom: 1%;
      text-decoration: none;
    font-size: 19px;
    letter-spacing: 0.5px;
    color: #000;
    background-color: white;
  position: -webkit-sticky; /* Para compatibilidad */
    position: sticky;
    top: 0;
    z-index: 1000;      


  }

  .site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(5px);
}

  .nombre {

    display: flex;
      justify-self: center;
        position: absolute;
  left: 50%;
  transform: translateX(-50%);

  }


  .logo img {
    width: 40px;   /* ajusta aquí */
    height: auto;
      display: flex;

  }

  .main-nav ul {
    list-style: none;
    gap: 8px;
      display: flex;

  }

  .main-nav a {
    text-decoration: none;
    font-size: 15px;
    color: #000;
  }



  /* Base */
  body {
    font-family: "Montreal", "Helvetica Neue",
                Helvetica, Arial, sans-serif;
    color: #000000;
      padding: 5px 15px;

  }

  h1 {
    font-family: "Montreal Bold", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
                Helvetica, Arial, sans-serif;
    color: #000000;
  }

  a:link {
    color: #000000;
      text-decoration: none;

  }



  a:visited {
    color: #000000;
      text-decoration: none;

  }

  .main-nav a:hover {
    color: #72748b;
      text-decoration: none;

  }


  /* Portada */

  .portada {
    margin-top: 120px;
  display: flex;
  flex-direction: column;  /* uno debajo del otro */
  justify-content: center; /* centro vertical */
  align-items: center;     /* centro horizontal */
  text-align: center;
  }

  #nombreportada {
  font-family: "Montreal Bold", Helvetica, Arial, sans-serif;
  font-size: 145px;
  margin-bottom: 18px;

}

#subtextoportada {
  font-family: "EditorialItalic";
  font-style: italic;
  font-size: 25px;
  max-width: 710px;
  letter-spacing: 0.2px;
  margin-bottom: -35px;
}

body {
  -webkit-font-smoothing: antialiased;
      background-color: white; /* El fondo es importante para el efecto */

}

  .gatitos-container {
  position: relative;
  display: inline-block;
}

  .gifportada{
      width: 450px;     /* ajusta tamaño */
  height: auto;

  }

  
  .gatiños{
      position: absolute;
      width: 130px;     /* ajusta tamaño */
  height: auto;
    top: 135px;         /* baja o sube */
  left: 98%;
  transform: translateX(-50%);
  pointer-events: none; /* para que no moleste */


  }

  .ciervo-container {
  position: relative;
  display: inline-block;
}

/* burbuja */
.burbuja {
  position: absolute;

  /* RELATIVO AL CIERVO */
  top: 35%;        /* altura de la cabeza */
  right: 96%;     /* a su izquierda */

  width: 22vw;     /* responsive */
  max-width: 300px;
  min-width: 180px;

  opacity: 0;
  transform: translateX(12px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;

  pointer-events: none;
  z-index: 20;
}

/* hover */
/* estado normal */
.ciervo-container .burbuja {
  opacity: 0;
  transform: translateX(12px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* cuando está permitida */
.ciervo-container.show-burbuja .burbuja {
  opacity: 1;
  transform: translateX(0) scale(1);
}

  
.stamp {
  position: fixed;
  width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.15s ease;
    mix-blend-mode:exclusion;
    

  
}

.stamp.active {
  opacity: 1;
}

/* burbuja glass */
/* contenedor del ciervo para hover */



  
  /* Responsive */
  @media (max-width: 768px) {
    .site-header {
      padding: 16px 24px;
    }

    .main-nav ul {
      gap: 16px;
    }
  }


