/* ============================================================
   VARIABLES Y RESET (Opcional: puedes ajustar o quitar)
   ============================================================ */
   :root {
    --color-bg: #f0f2f5;
    --color-primary: #262a5d;
    --color-secondary: #3c3c3d;
    --color-bot: #ffffff;
    --color-user: #dcf8c6;
    --color-whatsapp: #25d366;
    --color-whatsapp-hover: #1ebe57;
    --color-email: #0072c6;
    --transition: 0.3s ease;
  }
  
  /* Reset básico */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* ============================================================
     ESTILOS GENERALES
     ============================================================ */
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--color-bg);
  }
  
  /* ============================================================
     BOTONES DINÁMICOS (WhatsApp, Correo y canales)
     ============================================================ */
  
  /* Botón de WhatsApp */
  /* Animación para mensajes (fadeIn) */
.fadeIn {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animación para contenedores de opciones y typing indicator (slideIn) */
.slideIn {
  animation: slideIn 0.5s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animación de puntos en el indicador de escritura */
.typing-indicator .dots::after {
  content: "";
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1s steps(5, end) infinite;
}
@keyframes dots {
  0%, 20% { content: ""; }
  40% { content: "."; }
  60% { content: ".."; }
  80% { content: "..."; }
  100% { content: ""; }
}

/* Transiciones suaves para minimizar/expandir el chat */
#chatbot {
  transition: all 0.5s ease;
}

  .whatsapp-button {
    display: inline-block;
    padding: 1px 9px;
    
    background: var(--color-whatsapp);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
  }
  .whatsapp-button:hover {
    background: var(--color-whatsapp-hover);
    transform: scale(1.05);
  }
  .whatsapp-button:active {
    transform: scale(0.98);
  }
  
  /* Botón de Correo */
  .email-button {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 8px;
    background: var(--color-email);
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
  }
  .email-button:hover {
    background: #005fa3;
    transform: scale(1.05);
  }
  .email-button:active {
    transform: scale(0.98);
  }
  
  /* Botones de canales (opcional) */
  .channels button {
    margin: 0 4px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
  }
  .channels button.whatsapp { background: var(--color-whatsapp); color: #fff; }
  .channels button.messenger { background: #0084ff; color: #fff; }
  .channels button.email { background: #db4437; color: #fff; }
  
  /* Botones flotantes */
  .floating-btn {
    position: fixed;
    bottom: 10px;
    left: 10px;
    margin: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
  }
  .floating-btn a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
  }
  .floating-btn a:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.6);
    background-color: #128c7e;
  }
  .floating-btn a:active {
    transform: translateY(-5px) scale(1.05);
  }
  .floating-btn a i {
    color: #fff;
    font-size: 20px;
  }
  .whatsapp { background-color: var(--color-whatsapp); }
  .facebook { background-color: #3b5998; }
  .instagram { background-color: #e4405f; }
  .tiktok { background-color: #010101; }
  
  /* ============================================================
     CONTENEDOR DEL CHATBOT
     ============================================================ */
  .chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transition: all var(--transition);
    z-index: 10000;
  }
  .chatbot-container.minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .chatbot-container.expanded {
    width: 320px;
    height: 500px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
  }
  
  /* Vista minimizada */
  .chatbot-minimized {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
  }
  .chatbot-minimized svg {
    width: 30px;
    height: 30px;
    fill: #fff;
  }
  .chatbot-minimized .chatbot-label {
    font-size: 12px;
    margin-top: 4px;
  }
  
  /* Vista expandida */
  .chatbot-expanded {
    display: none;
    height: 100%;
    flex-direction: column;
  }
  .chatbot-container.expanded .chatbot-expanded {
    display: flex;
  }
  .chatbot-container.expanded .chatbot-minimized {
    display: none;
  }
  
  /* ============================================================
     CABECERA DEL CHAT
     ============================================================ */
  .chatbot-header {
    background: var(--color-primary);
    color: #fff;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .chatbot-header .title {
    display: flex;
    align-items: center;
  }
  .chatbot-header .title svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    margin-right: 8px;
  }
  .chatbot-header .close-btn {
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
  }
  
  /* ============================================================
     ÁREA DE MENSAJES (BODY) – ESTILO WHATSAPP
     ============================================================ */
  .chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--color-bg);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
  
  /* Estilos para mensajes en burbujas */
  .message {
    margin: 10px 0;
    clear: both;
    display: flex;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s forwards;
  }
  .message.bot {
    justify-content: flex-start;
  }
  .message.user {
    justify-content: flex-end;
  }
  
  /* Burbujas para mensajes del bot (entrantes) */
  .message.bot span {
    background: var(--color-bot);
    color: #303030;
    border-radius: 10px;
    padding: 10px 14px;
    max-width: 75%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    font-size: 15px;
  }
  
  /* Burbujas para mensajes del usuario (salientes) */
  .message.user span {
    background: var(--color-user);
    color: #303030;
    border-radius: 10px;
    padding: 10px 14px;
    max-width: 75%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
  }
  
  /* Pseudo-elementos para "flechitas" en las burbujas */
  .message.bot span::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-right: 8px solid var(--color-bot);
    border-bottom: 8px solid transparent;
  }
  .message.user span::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-left: 8px solid var(--color-user);
    border-bottom: 8px solid transparent;
  }
  
  /* Animación para aparición de mensajes */
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ============================================================
     ÁREA DE ENTRADA
     ============================================================ */
  .chatbot-input {
    display: flex;
    padding: 8px;
    border-top: 1px solid #ddd;
    background: #fff;
  }
  .chatbot-input input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .chatbot-input button {
    margin-left: 8px;
    padding: 6px 10px;
    border: none;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* ============================================================
     FOOTER DEL CHAT
     ============================================================ */
  .chatbot-footer {
    display: none;
    padding: 8px;
    border-top: 1px solid #ddd;
    text-align: center;
  }
  .chatbot-footer p {
    margin: 0 0 8px;
    font-size: 0.9em;
    color: #555;
  }
  
  /* ============================================================
     OPCIONES DINÁMICAS (BOTONES)
     ============================================================ */
  .options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
  }
  .option-button {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background var(--transition), transform var(--transition);
  }
  .option-button:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
  }
  .option-button:active {
    transform: scale(0.98);
  }
  
  /* ============================================================
     SECCIÓN NFT (Ejemplo de otra sección)
     ============================================================ */
  .nft-section {
    margin: 18px 0;
  }
  .nft-heading {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.6s ease-in-out;
  }
  .nft-heading.nft-show {
    opacity: 1;
    transform: translateY(0);
  }
  .nft-heading h2 {
    font-size: 32px;
    color: #ffffff;
  }
  .line-dec {
    width: 590px;
    height: 4px;
    background: #ff7f00;
    margin: 10px auto;
  }
  .nft-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .nft-card {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-in-out;
  }
  .nft-card:not(:nth-child(3n)) {
    border-right: 1px solid #ddd;
  }
  .nft-card.nft-show {
    opacity: 1;
    transform: translateY(0);
  }
  .nft-item {
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }
  .nft-item:hover {
    transform: scale(1.03);
  }
  .nft-item .icon img {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
    display: block;
  }
  .nft-item h4 {
    font-size: 20px;
    color: #ff7f00;
    margin: 10px 0;
  }
  .nft-item p {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
    text-align: justify;
  }
  @media (max-width: 768px) {
    .nft-card {
      flex: 0 0 100%;
      max-width: 100%;
      border-right: none;
      margin-bottom: 20px;
    }
  }
  
  /* ============================================================
     SECCIÓN COLECCIONES
     ============================================================ */
  .categories-collections {
    background-image: url('assets/images/portal.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
  }
  .categories-collections::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.586);
    z-index: 1;
  }
  .collections {
    position: relative;
    z-index: 2;
  }
  .down-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
  }
  .down-content h4 {
    color: #e36c0d;
  }
  .main-button a {
    display: inline-block;
    padding: 10px 20px;
    background: #e36c0d;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
  }
  .main-button a:hover {
    background: #c95c0a;
  }
  
  /* ============================================================
     MODAL Y WIZARD ("Habla con nosotros")
     ============================================================ */
  .wizard-step-content {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .wizard-step-content.active {
    opacity: 1;
    transform: translateX(0);
  }
  .btn-lg {
    min-width: 140px;
  }
  .modal-content {
    border-radius: 10px;
  }
  
  /* ============================================================
     ACCESIBILIDAD (FOCUS)
     ============================================================ */
  button:focus, a:focus, input:focus {
    outline: 3px solid #007bff;
  }
  