.demo-container {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 40px 20px;
}

.code-section {
  background: rgba(0, 0, 0, 0.1);
  padding: 30px;
  border-radius: 15px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
}

.code-section h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.code-block {
  background: #1a1a1a;
  color: #f8f8f2;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  text-align: left;
  font-family: "Cambria", "Times New Roman", Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
  margin: 15px 0;
}

.copy-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 12px;
}

.copy-btn:hover {
  background: #45a049;
}

/* CÓDIGO DEL BOTÓN FLOTANTE */
.floating-register-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #1A8014;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  text-decoration: none;
  border: none;
  overflow: hidden;
}

.floating-register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-register-btn:hover::before {
  opacity: 1;
}

.floating-register-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

.floating-register-btn:active {
  transform: scale(0.95);
}

.floating-register-btn i {
  font-size: 24px;
  color: white;
  transition: transform 0.3s ease;
}

.floating-register-btn:hover i {
  transform: rotate(10deg) scale(1.1);
}

/* Tooltip */
.floating-register-btn::after {
  content: "Registro";
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: "Cambria", "Times New Roman", Georgia, serif;
}

.floating-register-btn:hover::after {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-register-btn {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .floating-register-btn i {
    font-size: 20px;
  }
}

/* Animación de pulso opcional */
@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6),
      0 0 0 10px rgba(255, 107, 53, 0.1);
  }
  100% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  }
}

.floating-register-btn.pulse {
  animation: pulse 2s infinite;
}

/* Botón Flotante de Registro */
.floating-register-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #1A8014;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    text-decoration: none;
    border: none;
    overflow: hidden;
}

.floating-register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-register-btn:hover::before {
    opacity: 1;
}

.floating-register-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

.floating-register-btn:active {
    transform: scale(0.95);
}

.floating-register-btn i {
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.floating-register-btn:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* Tooltip */
.floating-register-btn::after {
    content: 'Registro';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: "Cambria", "Times New Roman", Georgia, serif;
}

.floating-register-btn:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-register-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-register-btn i {
        font-size: 20px;
    }
}

/* Animación de pulso opcional */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px #45A049;
    }
    50% {
        box-shadow: 0 8px 25px #45A049, 0 0 0 10px rgba(255, 107, 53, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px #45A049;
    }
}

.floating-register-btn.pulse {
    animation: pulse 2s infinite;
}
