/* ===========================
   Reset y Configuración Global
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: url('../assets/logoSinergia.jpeg') repeat;
  background-size: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===========================
   Contenedores Generales
=========================== */
.container {
  width: 90%;
  max-width: 800px;
  padding: 20px;
  margin: 20px auto;
}

/* Contenedores con fondo blanco forzado */
.transparent-container {
  background-color: white !important;
  padding: 20px;
}

/* ===========================
   Encabezado (Header)
=========================== */
.site-header {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-container a {
  display: inline-block;
}

.logo {
  max-width: 200px;
  height: auto;
  display: block;
}

/* Menú de Navegación */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav ul li {
  margin: 0 15px;
}

.main-nav ul li a {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover {
  color: #007BFF;
}

/* Responsive Header (Tablet y móviles) */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 10px;
  }
  
  .main-nav ul {
    flex-direction: column;
    margin-top: 10px;
  }
  
  .main-nav ul li {
    margin: 5px 0;
  }
}

/* ===========================
   Sección de Video
=========================== */
.video-section {
  margin-bottom: 40px;
}

.video-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  display: block;
}

/* ===========================
   Sección del Slider
=========================== */
.slider-section {
  width: 100%;
  margin-bottom: 40px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  height: 300px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.slider img:hover {
  transform: scale(1.05);
}

/* ===========================
   Sección "Servicios de Sinergia Consultoría SGI"
=========================== */
.services-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
  color: #1f580d;
}

.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-section header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.services-section header p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #555;
}

/* Categorías de servicio */
.service-category {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  margin: 0 auto 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-category .icon-container {
  margin-bottom: 15px;
}

.service-category .service-icon {
  width: 60px;
  height: auto;
}

.service-category h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1f580d;
}

.service-category ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-category ul li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.service-category ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: #1f580d;
  font-size: 1rem;
  line-height: 1;
}

.services-section footer p {
  font-size: 1.2rem;
  margin-top: 40px;
  color: #333;
}

/* ===========================
   Sección "¿Por qué elegir Sinergia Consultoría SGI?"
=========================== */
.why-choose {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
  color: #1f580d;
}

.why-choose .container {
  max-width: 1200px;
  margin: 0 auto;
}

.why-choose h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.why-choose p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #555;
}

.why-choose .features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.why-choose .feature {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.why-choose .feature:hover {
  transform: translateY(-5px);
}

.why-choose .feature img {
  max-width: 60px;
  margin-bottom: 15px;
}

.why-choose .feature h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1f580d;
}

.why-choose .feature p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* ===========================
   Sección de Chatbot Widget
=========================== */
/* Chatbot Toggle Button */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #007BFF;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  font-family: 'Roboto', sans-serif;
}

/* Chatbot Widget - estado minimizado (oculto) */
#chatbot.minimized {
  display: none;
}

/* Chatbot Widget - estado expandido */
#chatbot {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 320px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  z-index: 1100;
}

/* Encabezado del Chatbot */
#chatbot-header {
  background: #007BFF;
  color: #fff;
  padding: 10px;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Botón para cerrar el Chatbot */
#chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* Área de mensajes y entrada */
#chatbot-messages {
  padding: 10px;
  height: 200px;
  overflow-y: auto;
  background: #f9f9f9;
}

#chatbot-input-container {
  display: flex;
  border-top: 1px solid #eee;
}

#chatbot-input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 1rem;
}

#chatbot-input:focus {
  outline: none;
}

#chatbot-send {
  border: none;
  background: #007BFF;
  color: #fff;
  padding: 0 15px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

#chatbot-send:hover {
  background: #0056b3;
}

/* Opcional: estilos para mensajes individuales */
.chat-message {
  margin-bottom: 10px;
  line-height: 1.4;
}

.chat-message.user {
  text-align: right;
  color: #333;
}

.chat-message.bot {
  text-align: left;
  color: #555;
}

/* ===========================
   Botón Flotante de WhatsApp
=========================== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-button img {
  width: 40px;
  height: 40px;
}

.whatsapp-button:hover {
  background-color: #1ebe57;
  transform: scale(1.05);
}

/* ===========================
   Footer
=========================== */
.site-footer {
  width: 100%;
  background-color: #f8f8f84e;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-top: 40px;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  text-decoration: none;
  color: #333;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #007BFF;
}

.social-links a img {
  width: 24px;
  height: 24px;
}

/* ===========================
   Media Queries para Responsividad
=========================== */

/* Para pantallas medianas (max-width: 768px) */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 10px;
  }
  
  .main-nav ul {
    flex-direction: column;
    margin-top: 10px;
  }
  
  .main-nav ul li {
    margin: 5px 0;
  }
  
  .services-section header h2,
  .why-choose h2 {
    font-size: 2rem;
  }
  
  .services-section header p,
  .why-choose p {
    font-size: 1rem;
  }
  
  .service-category {
    width: 90%;
    margin: 0 auto 20px;
  }
}

/* Para dispositivos muy pequeños (max-width: 480px) */
@media (max-width: 480px) {
  .header-container {
    padding: 0 10px;
  }
  
  .logo {
    max-width: 150px;
  }
  
  .main-nav ul li a {
    font-size: 0.9rem;
  }
  
  button {
    font-size: 14px;
    padding: 8px;
  }
  
  .site-footer {
    font-size: 0.8rem;
  }
  
  /* Ajustar el slider para dispositivos muy pequeños */
  .slider-container {
    max-width: 100%;
    height: 250px;
  }
}
