/* ====================== GLOBAL ====================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #111;
  font-family: Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* ====================== HEADER ====================== */

#uf-header {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
}

#uf-logo {
  height: 50px;
  width: auto;
}

#uf-main-btn {
  background: #e53935;
  color: #fff;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

#uf-main-btn:hover {
  background: #b71c1c;
}

/* ====================== INTRO SEO (OCULTO) ====================== */
/* Se mantiene en el DOM para SEO pero no es visible para el usuario */

#catalog-intro {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ====================== FLIPBOOK ====================== */

#flipbook-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#flipbook {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
  background: #111;
}

#flipbook .page {
  background: #222;
  overflow: hidden;
}

#flipbook .page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* ====================== CONTROLES ====================== */

#controls {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 40px;
}

.btn {
  padding: 7px 14px;
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 4px;
  margin: 0 6px;
  cursor: pointer;
  font-size: 13px;
}

.btn:hover {
  background: #c62828;
}

/* ====================== CRÉDITO ====================== */

#credits-watermark {
  position: fixed;
  bottom: 20px;
  left: 16px;      /* antes right: 10px; */
  right: auto;
  z-index: 2;
  opacity: 0.2;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

#credits-watermark a {
  color: #fff;
  text-decoration: none;
}

#credits-watermark:hover {
  opacity: 0.45;
}


/* ====================== RESPONSIVE ====================== */

@media (max-width: 768px) {
  #uf-header {
    padding: 8px 14px;
  }

  #uf-logo {
    height: 42px;
  }

  #uf-main-btn {
    padding: 7px 12px;
    font-size: 13px;
  }

  #flipbook-container {
    margin-top: 12px;
  }

  #controls {
    margin-top: 10px;
  }
}

/* ====================== Botón flotante de Whatsapp ====================== */

/* Botón flotante de WhatsApp */
    .float-wa{
        position:fixed;
        width:60px;
        height:60px;
        bottom:40px;
        right:40px;
        background-color:#25d366;
        color:#FFF;
        border-radius:50px;
        text-align:center;
        font-size:30px;
        z-index:100;
    }


/* ====================== AJUSTE DE IMÁGENES EN PÁGINAS DEL FLIPBOOK ====================== */
/* Asegura que cada página del flipbook no recorte la imagen */
#flipbook .page {
  position: relative;
  overflow: hidden;       /* por si acaso alguna imagen se pasa */
}

/* Importante: la imagen SIEMPRE se adapta al contenedor */
#flipbook .page img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* muestra toda la página, aunque deje márgenes internos */
  display: block;
}