/* Brochure corporativo StaffPro (independiente de style.css) */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #eeeeee; /* color de fondo de las páginas del brochure */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

.brochure {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.brochure section { margin: 0; }

/* Espacio final para que el pie de la última página quede por encima del botón de WhatsApp */
.brochure section:last-of-type {
  padding-bottom: 84px;
  background: #424242;
}

.brochure img {
  display: block;
  width: 100%;
  height: auto; /* width/height del HTML reservan el espacio (sin CLS) */
  max-width: 100%;
}

/* Ocultamiento visual accesible (visible para lectores de pantalla y buscadores) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px 12px 18px;
  background: #0f7b3f; /* contraste con texto blanco >= 4.5:1 */
  color: #fff;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  transition: background-color .2s ease, transform .2s ease;
}
.whatsapp-float:hover { background: #0c6634; transform: translateY(-2px); }
.whatsapp-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #0f7b3f; }
.whatsapp-float .wa-icon { flex: none; }

@media (max-width: 768px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    padding: 12px;
    min-width: 52px;
    justify-content: center;
  }
  /* En móvil solo el icono; el nombre accesible lo da aria-label */
  .whatsapp-float .wa-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}
