/* === Estilos base generales === */
body, html {
   height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #0D1B2A;
  color: white;
}

/* Chat container por defecto visible en escritorio */
.chat-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100dvh; /* mejor compatibilidad móvil */
  background-color: #0D1B2A;
  display: flex;
  flex-direction: column;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  max-height: 100dvh;
  justify-content: space-between;
}

/* Ocultar scroll visible pero permitir scroll funcional */
.chat-messages {
  padding: 15px 10px;
  flex: 1 1 auto;
  overflow-y: auto;
  background-color: #0D1B2A;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
  padding-bottom: 80px;
}
.chat-messages::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari */
}

/* Botón flotante oculto por defecto */
#btn-chat-toggle {
  display: none;
}

/* ===== Estilos Responsive ===== */
@media screen and (max-width: 768px) {

  body, html {
   height: 100%;
  }


  .main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
  }

  .landing-container {
    width: 100%;
    height: 100%;
  }

  .header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .logo {
    font-size: 1.8rem;
    margin-top: 40px;
  }

  .promo-timer-azul {
    background: none !important;
    border: none !important;
    padding: 0;
    margin-top: 50px;
    width: 90%;
    border-radius: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: none !important;
  }

  .promo-icon {
    display: none;
  }

  .promo-countdown-blue {
    font-size: 3rem;
    font-weight: bold;
    background: none;
    color: #00c6ff;
    width: 100%;
    text-align: center;
  }

  .promo-text {
    font-size: 1rem;
    color: #F3D191; /* naranja suave */
    font-weight: bold;
  }

  .hero {
    width: 100%;
    text-align: center;
    padding: 0 15px;
  }

  .hero h2 {
    font-size: 1.7rem;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    font-size: 0.95rem;
  }

  .icon-wa {
    width: 20px;
    height: 20px;
  }

  .features {
    gap: 60px;
  }

  /* Chat oculto en móvil */
  .chat-container {
    display: none;
    position: fixed;
    inset: 0; /* top: 0, right: 0, bottom: 0, left: 0 */
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    z-index: 999;
    justify-content: space-between;
  }

  .chat-container.active {
    display: flex;
    background-color: #0D1B2A;
    flex-direction: column;
    width: 100vw;
    height: 100dvh;
  }

  /* Botón flotante para abrir el chat */
  #btn-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
  }

  #btn-chat-toggle:hover {
    transform: scale(1.1);
  }

  #btn-chat-toggle .icon-chat {
    width: 42px;
    height: 42px;
  }

  .chat-input {
    
      padding: env(safe-area-inset-bottom, 12px) 12px 12px 12px;
  }
}

/* Animación de entrada opcional */
.chat-container.active {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
