/* Definición de variables para colores y estilos generales */
:root {
  --primary-color: #25d366; /* Verde de WhatsApp */
  --secondary-color: #6a11cb; /* Gradiente inicial */
  --gradient-hover: #2575fc; /* Gradiente hover */
  --text-color: white;
  --background-color: black;
  --footer-bg: #333;
  --footer-bottom-bg: #222;
  --footer-text: #fff;
}

/* Estilo general del cuerpo y el HTML */
body,
html {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  height: 100%;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  margin: 0;
  max-width: 100%;
  perspective: 1px;
  transform-style: preserve-3d;
}

/* Botones flotantes: posición y comportamiento */
.open-button {
  padding: 2rem;
  border: none;
  background-color: transparent;
  position: fixed;
  bottom: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky {
  position: sticky;
  bottom: 20px;
  right: 20px;
}

/* Contenedor del botón de WhatsApp */
.whatsapp-container {
  position: fixed; /* Hace que el botón sea fijo en la pantalla */
  bottom: 20px; /* Distancia desde la parte inferior */
  left: 20px; /* Distancia desde la parte izquierda */
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  display: flex; /* Organiza el mensaje y el botón en línea */
  align-items: center;
  gap: 10px;
}

/* Estilo del mensaje contiguo */
.message-bubble {
  background-color: #25d366; /* Verde de WhatsApp */
  color: white;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none; /* El mensaje está oculto por defecto */
  animation: fadeIn 0.5s ease-in-out;
}

/* Estilo del botón flotante */
.whatsapp-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse sobre el botón */
.whatsapp-icon:hover {
  transform: scale(1.1); /* Agranda el botón ligeramente */
}

/* Animación para el mensaje */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}


/* Botón personalizado para funciones extra */
.btn-custom {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
  transition: all 0.4s ease;
  background: linear-gradient(to right, var(--secondary-color), var(--gradient-hover));
  color: var(--text-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
}

.btn-custom.show {
  display: block;
  opacity: 1;
}

.btn-custom:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, var(--gradient-hover), var(--secondary-color));
}

/* Textos destacados */
.text-muted {
  color: #f5f5f5 !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.text-light {
  color: var(--text-color) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-highlight {
  color: #a88e4a;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Estilo de los planes */
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Estilos de footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 20px 0;
  font-size: 13px;
}

.footer-bottom {
  background-color: var(--footer-bottom-bg);
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
}


/* Responsividad para diferentes tamaños de pantalla */
@media (max-width: 767.98px) {
  body,
  html {
      font-size: 13px;
  }
}

@media (min-width: 768px) {
  body,
  html {
      font-size: 15px;
  }
}

@media (min-width: 1200px) {
  body,
  html {
      font-size: 18px;
  }
}
