@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(to bottom, #0d3b82,#0a2b5a);
    font-family: 'Open Sans', sans-serif;

}

.flipbook {
    overflow: hidden;
    position: relative;
    border-radius: 8px; /* opcional: esquinas suaves */
    background: linear-gradient(to bottom, #0d3b82,#0a2b5a);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    margin-top: 20px;   /* espacio arriba del flipbook */
}


.flipbook .hard {
    background: #c0392b !important;
    color: #fff;
    font-weight: bold;
    border: none;
}

.flipbook .hard small {
    font-style: italic;
    font-weight: lighter;
    opacity: 0.7;
    font-size: 14px;
}

.flipbook .page {
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.flipbook .page small {
    font-size: 18px;
    margin-bottom: 0px;
}

#page-info {
    font-weight: bold;
}

/* ---------------- BOTONES ---------------- */
.next-btn,
.prev-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background-color: rgba(118,183,41,0.9);
  border-radius: 50%;
  border: none;
  padding: 8px 17px;
  font-size: 21px;
  color: #E7EBDA;
  opacity: 0.8;
}

.next-btn:hover,
.prev-btn:hover {
   background-color: rgba(52,181,157); /* background-color:rgba(118,183,41);*/
  cursor: pointer;
   opacity: 1;
}

.next-btn:focus,
.prev-btn:focus {
  outline: none;
}

.next-btn { right: 10px; }
.prev-btn { left: 10px; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Fondo circular con degradado igual al ejemplo */
  background: linear-gradient(180deg, rgba(114, 175, 39, 0.9) 0%, rgba(118,183,41,0.9) 100%);
  /* Sombra exterior y ligera sombra interior para dar volumen */
  box-shadow:
    0 10px 24px rgba(8, 46, 68, 0.45),
    inset 0 -6px 10px rgba(0,0,0,0.12);
  color: white;
  padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.7;
  
}

    /* Icono esquina superior izquierda */
  .icono {
  position: absolute;
  top: 34px;
  left: 45px;
  width: 134px;
  height: 46px;
  z-index: 9999;
  animation: pulse 4.5s infinite; /* efecto de pulso */
  }

@media (max-width: 820px) {
    .next-btn { right: 5px; opacity: 0.6; }
    .prev-btn { left: 5px; opacity: 0.6; }
}

@media (max-width: 568px) {
    .next-btn { right: 5px; opacity: 0.6;  }
    .prev-btn { left: 5px; opacity: 0.6; }
}


 
@keyframes pulseOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* posicionamiento según lado */
.carousel-btn.right { right: 10px; }
.carousel-btn.left  { left: 10px; }

/* Hover / active */
.carousel-btn:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow:
    0 12px 28px rgba(8, 46, 68, 0.55),
    inset 0 -6px 10px rgba(0,0,0,0.12);
}

/* PSEUDO-ELEMENTO: cheurón blanco con forma EXACTA (SVG inline) */
.carousel-btn::after {
  content: "";
  display: block;
  width: 36px;   /* tamaño de la flecha dentro del círculo */
  height: 36px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* SVG chevron blanca (data URI). Los espacios y # están codificados. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 32'><path d='M8%206%20L20%2016%20L8%2026' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
  /* pequeña sombra para separar la flecha del fondo */
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.12));
  pointer-events: none;
}

/* Girar la flecha para el botón izquierdo */
.carousel-btn.left::after {
  transform: rotate(180deg);
}

#divDeslizar.indicador {
  width: 100%;
  text-align: center;
  margin-top: 5px;
  padding: 8px 0;
  font-size: 16px;
  color: white;
  background: transparent; /* sin bloque de color */
  opacity: 0.95;
  font-family: 'Open Sans', sans-serif;
}

/* ---------------- LOGO POSICIONADO ---------------- */

/* Contenedor del logo */
.logo-container {
  position: absolute;   /* lo posiciona sobre el flipbook */
  left: 0px;           /* distancia desde la izquierda */
  z-index: 9999;        /* siempre encima de todo */
  display: block;       /* visible por defecto en PC y tablets */
}

/* Imagen del logo */
.logo-container img {
  width: 120px;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-container img:hover {
  opacity: 1;
  transform: scale(1.05); /* pequeño zoom al pasar el mouse */
}

 /* Zonas táctiles SIEMPRE activas */
    .touch-zone {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 50%;
        z-index: 500; /* encima del flipbook */
        background: transparent; /* invisible */
    }
    .touch-zone.left { left: 0; }
    .touch-zone.right { right: 0; }

/* Ocultar logo únicamente en celulares */
@media (max-width: 600px) {
  .logo-container {
    display: none;
  }
}

/* Ajuste general para móviles */
@media (max-width: 768px) {
  body {
    min-height: 100vh;
    overflow: hidden; /* evita scroll innecesario */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .flipbook {
    width: 100%;
    height: 100vh;   /* Fallback para navegadores que no soportan dvh */
    max-height: 100vh;
  }

  /* Soporte moderno: ocupar siempre la altura visible real del dispositivo */
  .flipbook {
    height: 100dvh;   /* dvh = Dynamic Viewport Height */
    max-height: 100dvh;
  }

  .page img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ajusta la imagen sin deformarse */
  }

   .logo-container {
    display: none;
  }

  .touch-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 500; /* encima del flipbook pero debajo de botones */
    background: transparent; /* invisible */
  }

  .touch-zone.left {
    left: 0;
  }

  .touch-zone.right {
    right: 0;
  }
}
/* Oculta el título principal para usuarios, visible para motores de búsqueda */
.main-title-seo {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Asegura el mismo comportamiento en móviles */
@media (max-width: 768px) {
  .main-title-seo {
    position: absolute;
    left: -9999px;
    top: -9999px;
  }
}