body {
  min-height: 100vh;
  margin: 0;
  max-height: 100vh;
  overflow: hidden;
  background: url('stars.jpg') center center repeat;
  background-size: 100%;
  animation: moveStars 60s linear infinite;
}
@keyframes moveStars {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 1000px 0;
  }
}
#principal-container{
  position: relative;
}
.star {
  position: fixed; /* usa fixed para estar siempre en pantalla */
  background: url('star.png') no-repeat center center;
  background-size: contain;
  opacity: 0;
  pointer-events: none;
  animation: sparkle 1s ease-in-out infinite;
  z-index: 999;
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.3) rotate(20deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
}
.principal-container{
  width: 95%;
  position: relative;

}
h2{
  font-size:35px;
}
.text_cit{
  text-align: center;
  font-family: 'Georgia', serif;  /* Fuente estilo libro */
            text-transform: uppercase;  /* Convertir texto a mayúsculas */
            font-size: 20px;  /* Tamaño grande para el texto */
            line-height: 1.5;
            color: #333;  /* Color de texto */
            letter-spacing: 2px;
}
.text_cit_2{
  text-align: center;
  font-family: 'Montserrat' serif;  /* Fuente estilo libro */
            text-transform: uppercase;  /* Convertir texto a mayúsculas */
            font-size: 17px;  /* Tamaño grande para el texto */
            line-height: 1.5;
            color: #333;  /* Color de texto */
            letter-spacing: 2px;
}
.text_cit_2::before,
.text_cit_2::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 0;
  height: 2px;
  background-color: #fca675;
}



.text_cit_2.animar::before {
  animation: expandLine 1s ease-out forwards; /* Aplica la animación cuando la página está activa */
}
.text_cit_2.animar::after {
  animation: expandLine 1s ease-out forwards; /* Aplica la animación cuando la página está activa */
}

.text_cit_2::before {
  left: 10%;
}

.text_cit_2::after {
  right: 10%;
}
@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 50px;
  }
}
.line-open{
  width:0px;height:2px;background:#fca675;
  transition:ease-in-out 1s;
}
.text_cit_sec{
  text-align: center;
  font-family: 'Merriweather', serif;  /* Fuente estilo libro */
            font-style: italic;  /* Hacer el texto en itálico */
            font-size: 10px;  /* Tamaño grande para el texto */
            line-height: 1.5;
            color: #333;  /* Color de texto */
            letter-spacing: 1px;  /* Color de texto */
}
.grand-hotel{
  font-family: 'Grand Hotel', cursive, sans-serif;
  letter-spacing:3px;
  font-weight: 300;
}
.color-or{
  color:#fca675;
}
.title-principal{
  font-size:50px;
  margin-top:-20px;
}
img {
  border-radius: 0.5em;
}
* {
  box-sizing: border-box;
}
.centered {
  margin: auto;
  width: max-content;
}
.flipbook {
  margin: 3em auto;
  width: 95%;
  height: 80vh;
	min-height:500px;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  
}
.flipbook .leaf {
  position: absolute;
  transform-style: preserve-3d;
  height: 100%;
  width: 90%;
  left:5%;
  transition: transform 1s;
  transform-origin: left 0px;
  transition:ease-in-out 0.5s;
  
}
.flipbook .leaf .page {
  transform-style: preserve-3d;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  box-shadow: 0px 1px 10px rgb(77, 76, 98),inset 2px 2px 20px rgba(199, 199, 199, 0.3);
  overflow:hidden;
}
.flipbook .leaf .page.front {
  transform: rotate3d(0, 1, 0, 0deg) translate3d(0, 0, 0.1px);
}
.flipbook .leaf .page.front:not(.external) {
  box-shadow: inset 5px 0px 5px -5px #000 5;
}
.flipbook .leaf .page.back {
  transform: rotate3d(0, 1, 0, 180deg) translate3d(0, 0, 0.1px);
}
.flipbook .leaf .page.back:not(.external) {
  box-shadow: inset -5px 0px 5px -5px #000 5;
}
.disabled {
  user-select: none;
  opacity: 0.6;
}
.img-1{
  position:absolute;
  bottom:-100px;
  right:-20px;
  width:100%;
  animation: rotateSelf 15s linear infinite;
  transform-origin: 100px calc(100% - 100px);
}
@keyframes rotateSelf {
  0% {
    transform: rotate(-50deg); /* Inicia sin rotación */
  }
  50% {
    transform: rotate(50deg); /* Rota 360 grados */
  }
  100% {
    transform: rotate(-50deg); /* Rota 360 grados */
  }
}
.img-2{
  position: absolute;
  bottom: 50px;              /* A 100px desde la parte inferior */
  left: 50%;                  /* Centrado horizontal */
  transform: translateX(-50%); /* Ajuste para centrar la imagen */
  width: 180px;                /* Asegura que la imagen ocupe todo el ancho */
  animation:increase 1s ease-out forwards;
}
.img-3 {
  position: absolute;
  bottom: 50px; /* A 100px desde la parte inferior */
  right: 50px; /* Comienza desde el borde derecho */
  width: 100px; /* Ajusta el tamaño de la imagen si es necesario */
  animation: none; /* Inicialmente, no se aplica ninguna animación */
  transition: transform 1s ease-in-out;
}
.img-3.animada {
  animation: walkingInFromRight 1s ease-out forwards; /* Aplica la animación cuando la página está activa */
}
.title {
  text-align: center;
  width: 100%;
  padding: 0em !important;
  padding-top: 2em;
}
.page {
}
.page.front {
  border-radius: 0em 1em 1em 0;
}
.page.back {
  border-radius: 1em 0em 0em 1em;
}
.leaf {
  background-color: #000 0 !important;
}
.pageNumber {
  font-size: 0.75em;
  position: absolute;
  bottom: 0.5em;
}
.front .pageNumber {
  right: 0.75em;
}
.back .pageNumber {
  left: 0.75em;
}
.contents-row {
  display: flex;
  flex-flow: row nowrap;
}
.contents-row .spacer {
  flex: 1 1;
  height: 1em;
  border-bottom: 1px dashed #000;
}
.contents-row .text {
  flex: 0 0 auto;
}
h1,
h2,
h3 {
  font-family: cursive;
}
body[onload] {
  /*Cheesing the preview*/
  transform: scale(1.5);
  transform-origin: center top;
}
body[onload] .leaf:nth-child(1) {
  transform: rotate3d(0, 1, 0, -128deg) !important;
}
body[onload] .leaf:nth-child(2) {
  transform: rotate3d(0, 1, 0, -70deg) !important;
}
body[onload] .leaf:nth-child(3) {
  transform: rotate3d(0, 1, 0, -40deg) !important;
}
body[onload] div.leaf:nth-child(4) > div:nth-child(1) {
  background-color: #e76f51;
}
.cd__intro {
  background-color: #c0e;
}

button {
  width: 100px;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  border: none;
}
.arrow {
 color: white;
  position: absolute;
  top: 50%;
  width:45px;
  height:45px;
  padding-left :7px;
  transform: translateY(-50%);
  z-index: 9999; /* más alto por si hay otros elementos encima */
  font-size: 2em;
  cursor: pointer;
  border-radius:50%;
  background:rgba(0,0,0,0.7);
}
.arrow-right{
  right:5px;
}
.arrow-left{
  left:5px;
}

@keyframes walkingInFromRight {

 
  0% {
    transform: translate(100px, 80px) scale(5);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
.img-4 {
  width: 150px; /* Ajusta el tamaño según tus necesidades */
  height: auto;
  position: absolute;
  bottom:100px;
  right:50%;
  offset-path: path('M150,100 a100,50 0 1,0 200,0 a100,50 0 1,0 -200,0');
  
}
.img-4.elip{
    animation: movimientoEliptico 5s linear infinite;
}
@keyframes movimientoEliptico {
  0% {
    offset-distance: 0%;
    width:150px;
  }
  50% {
    width:200px;
    offset-distance: 50%;
  }
  100% {
    width:150px;
    offset-distance: 100%;
  }
}
#text-pa{
  transform:rotate(-10deg);
}
@keyframes aparecerDesdeAbajo {
  0% {
    opacity: 0;
    transform: translateY(100px) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(-10deg);
  }
}

.texto-aparecer {
  animation: aparecerDesdeAbajo 2s ease-out;
}
.contenedor-imagen {
  margin-top:20px;
  transform: rotate(-10deg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-5 {
  border-style: solid;
  border-color: white;
  width:80%;
  border-radius: 0; 
  border-width: 10px 5px 20px 5px; /* Arriba, derecha, abajo, izquierda */
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.mi-elemento {
  opacity: 0; /* Asegura que el elemento esté inicialmente invisible */
  animation: fade-in 1s ease-in-out 2s forwards;
}

  #container-secundario {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  #cordero-img {
        width: 200px;
    height: auto;
    cursor: pointer;
    animation: escape 1.5s infinite;
	 transition: transform 3s ease-in-out, opacity 2s ease-in-out;
  }


  .hidden {
    display: none;
  }

  .principal-container {
    opacity: 0;
    transform: rotate(-20deg) scale(0.5);
    transition: transform 2s ease, opacity 1s ease;
    text-align: center;
  }

  .show {
    display: block;
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
 @keyframes escape {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(5px, -3px) rotate(1deg); }
    20% { transform: translate(-4px, 4px) rotate(-1deg); }
    30% { transform: translate(3px, -5px) rotate(1deg); }
    40% { transform: translate(-3px, 3px) rotate(-2deg); }
    50% { transform: translate(4px, 4px) rotate(2deg); }
    60% { transform: translate(-4px, -2px) rotate(-1deg); }
    70% { transform: translate(3px, 3px) rotate(1deg); }
    80% { transform: translate(-2px, -3px) rotate(0deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
  }
.explode{
transform:scale(50);
	opacity:0;
}
/* Texto y flecha */
.overlay-text {
  position: absolute;
  top: calc(50% - 140px); /* ajusta según el tamaño de la imagen */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  z-index: 2;
  pointer-events: none; /* para que no bloquee el clic en la caja */
}

.overlay-text .text {
  font-weight: bold;
  color: white;
	text-transform: uppercase;  /* Convertir texto a mayúsculas */
            font-size: 50px;
	letter-spacing:2px;
	font-family:'';
}

.overlay-text .arrow-new {
  font-size: 2rem;
  color: #333;
  margin-top: 0.5rem;
}
.overlay-text .arrow-new {
  font-size: 2rem;
  color: white;
  margin-top: 0.5rem;
  animation: arrow-bounce 1s infinite ease-in-out;
}

@keyframes arrow-bounce {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(10px); }
  100% { transform: translateY(0); }
}
.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}