/* ===== Estilos Base ===== */
.chatbot-main {
    padding: 100px 0 0 0;
    min-height: 100vh;
    background: #f8f9fa;
    height: calc(100vh - 80px);
  }
  
  .fixed-header {
    height: 80px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .header-logo {
    max-height: 40px !important;
    width: auto !important;
  }
  
  .company-name {
    font-size: 1.5rem !important;
    color: #1C2E41 !important;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
  }
  
  /* ===== Chatbot Container ===== */
  .chatbot-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2A3F54 0%, #1C2E41 100%);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow: hidden;
  }
  
  /* ===== Cabecera del Chat ===== */
  .chat-header {
    background: rgba(255,255,255,0.1) !important;
    padding: 20px 10%;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .chat-header i {
    font-size: 1.8em;
    color: #C5A47E !important;
  }
  
  .chat-header h2 {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    color: #C5A47E !important;
    margin: 0;
  }
  
  .status-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50 !important;
    border-radius: 50%;
    margin-left: auto;
  }
  
  .status-text {
    font-size: 0.9em;
    color: rgba(255,255,255,0.8);
  }
  
  /* ===== Área de Mensajes ===== */
  .chat-messages {
    height: calc(100vh - 180px) !important;
    padding: 20px 10%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 100px; /* espacio extra para el chat-input fijo */
  }
  
  .message {
    display: flex;
  }
  
  .message-bubble {
    max-width: 60%;
    padding: 15px 20px;
    border-radius: 15px;
    animation: fadeIn 0.3s ease-out;
    font-size: 0.95em;
    line-height: 1.5;
    background: rgba(255,255,255,0.95) !important;
    color: #333 !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .user-message {
    justify-content: flex-end;
  }
  
  .user-message .message-bubble {
    background: #1C2E41 !important;
    color: white !important;
    border-color: #152535;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  /* ===== Animaciones ===== */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ===== Área de Entrada ===== */
  .chat-input {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 20px 10%;
    background: rgba(255,255,255,0.95) !important;
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
  }
  
  .chat-input input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid #C5A47E !important;
    border-radius: 30px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
  }
  
  .chat-input input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(197,164,126,0.3);
  }
  
  .send-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #C5A47E !important;
    color: white;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .send-button:hover {
    background: #B08F69 !important;
    transform: scale(1.1);
  }
  
  /* ===== Responsive ===== */
  @media (max-width: 768px) {
    .chat-messages {
      padding: 20px;
    }
    
    .chat-input {
      padding: 20px;
    }
    
    .message-bubble {
      max-width: 80%;
    }
  }
  
  @media (max-width: 480px) {
    .chatbot-container {
      height: 100vh;
    }
    
    .chat-messages {
      height: calc(100vh - 160px) !important;
    }
    
    .chat-header {
      padding: 20px;
    }
  }

  /* ===== Estilos para el Modal ===== */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5); /* superposición oscura */
}

.modal-content {
  background-color: #F9F5EC; /* blanco hueso */
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  text-align: center;
  font-family: 'Garamond', serif; /* tipografía elegante */
  font-size: 1.2em;
  color: #5D4037; /* color sofisticado */
  border-radius: 10px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #5D4037;
}
