/* ------------------------------------------------
   FONTS AND IMPORTS
   ------------------------------------------------ */
   @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

   /* ------------------------------------------------
      CSS VARIABLES
      ------------------------------------------------ */
   :root {
     /* Primary colors */
     --primary-color: #10B981;
     --primary-light: #34D399;
     --primary-dark: #059669;
     --primary-gradient: linear-gradient(135deg, #10B981, #059669);
     
     /* Background colors */
     --light-bg: #ffffff;
     --chat-bg: #ffffff;
     --login-bg: #ffffff;
     --general-bg: #dbf7ed;
     
     /* Text colors */
     --dark-text: #374151;
     --light-text: #ffffff;
     --subtle-text: #6B7280;
     
     /* Message colors */
     --user-message-bg: #10B981;
     --bot-message-bg: #F3F4F6;
     
     /* UI elements */
     --border-color: #E5E7EB;
     --input-bg: #F3F4F6;
     --success-color: #10B981;
     --disabled-color: #D1D5DB;
     
     /* Shadows */
     --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
     --shadow-elegant: 0 10px 25px rgba(0, 0, 0, 0.08);
     --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
     --form-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
     
     /* Transitions */
     --animation-time: 0.3s;
   }
   
   /* Dark theme variables */
   [data-theme="dark"] {
     --light-bg: #1a1a1a;
     --dark-text: #e0e0e0;
     --bot-message-bg: #2a2a2a;
     --user-message-bg: #059669;
     --chat-bg: #121212;
     --border-color: #333;
     --subtle-text: #9CA3AF;
     --login-bg: #1e1e1e;
     --form-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
     --input-bg: #2a2a2a;
     --disabled-color: #444444;
   }
   
   /* ------------------------------------------------
      RESET AND BASE STYLES
      ------------------------------------------------ */
   * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
   }
   
   body {
     background-color: var(--light-bg);
     color: var(--dark-text);
     height: 100vh;
     display: flex;
     justify-content: center;
     align-items: center;
     transition: background-color 0.3s;
   }
   
   /* ------------------------------------------------
      WELCOME AND ONBOARDING SCREENS
      ------------------------------------------------ */
   .welcome-screen,
   .onboarding-screen {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     display: flex;
     justify-content: center;
     align-items: center;
     background-color: var(--login-bg);
     z-index: 1000;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.5s ease, visibility 0.5s ease;
   }
   
   .welcome-screen.active,
   .onboarding-screen.active {
     opacity: 1;
     visibility: visible;
   }
   
   .welcome-container,
   .onboarding-container {
     width: 90%;
     max-width: 400px;
     text-align: center;
     padding: 2rem;
   }
   
   /* Logo styles */
   .logo-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1.5rem;
   }
   
   .logo-large {
     width: 160px;
     height: 160px;
     margin-top: 6rem; 
   }
   
   .logo-small {
     width: 60px;
     height: 60px;
     margin-bottom: 1.5rem;
     margin-left: auto;
     margin-right: auto;
   }
   
   .brand-name {
     font-size: 2.5rem;
     font-weight: 700;
     color: var(--dark-text);
     margin-bottom: 0.25rem;
   }
   
   .tagline {
     font-size: 1rem;
     color: var(--primary-color);
     margin-bottom: 8rem;
     line-height: 1.4;
   }
   
   .gray-text {
     color: var(--subtle-text);
   }

/* Añadir en styles.css */
#welcome-message {
  transition: opacity 0.3s ease;
}

/* Clase para la animación de actualización */
.updating-message {
  opacity: 0.7;
}
   
   /* Circular loading dots */
/* Contenedor prácticamente igual */
.loading-dots-circular {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 50px;
  color: var(--primary-color);
}

/* Cada "dot" es un eje de rotación, sin tamaño ni color */
.loading-dots-circular .dot {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  transform-origin: 25px 25px;
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* El punto real se crea en :after */
.loading-dots-circular .dot:after {
  content: "";
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin: -3px 0 0 -3px;
  opacity: 1;
}

/* 8 divis en vez de 9 para el roller */
.loading-dots-circular .dot:nth-child(1) { animation-delay: -0.036s; }
.loading-dots-circular .dot:nth-child(2) { animation-delay: -0.072s; }
.loading-dots-circular .dot:nth-child(3) { animation-delay: -0.108s; }
.loading-dots-circular .dot:nth-child(4) { animation-delay: -0.144s; }
.loading-dots-circular .dot:nth-child(5) { animation-delay: -0.180s; }
.loading-dots-circular .dot:nth-child(6) { animation-delay: -0.216s; }
.loading-dots-circular .dot:nth-child(7) { animation-delay: -0.252s; }
.loading-dots-circular .dot:nth-child(8) { animation-delay: -0.288s; }

/* Posicionamiento escalado a 50×50 (factor 0.625 sobre valores de 80×80) */
.loading-dots-circular .dot:nth-child(1):after { top: 39.142px; left: 39.142px; }
.loading-dots-circular .dot:nth-child(2):after { top: 42.321px; left: 35.000px; }
.loading-dots-circular .dot:nth-child(3):after { top: 44.319px; left: 30.176px; }
.loading-dots-circular .dot:nth-child(4):after { top: 45.000px; left: 25.000px; }
.loading-dots-circular .dot:nth-child(5):after { top: 44.319px; left: 19.824px; }
.loading-dots-circular .dot:nth-child(6):after { top: 42.321px; left: 15.000px; }
.loading-dots-circular .dot:nth-child(7):after { top: 39.142px; left: 10.858px; }
.loading-dots-circular .dot:nth-child(8):after { top: 35.000px; left: 7.679px; }

/* Giro completo */
@keyframes lds-roller {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

   
   /* Onboarding specific styles */
   .onboarding-title {
     font-size: 1.875rem;
     font-weight: 700;
     color: var(--dark-text);
     margin-bottom: 0.75rem;
     line-height: 1.2;
   }
   
   .onboarding-text {
     font-size: 1rem;
     color: var(--subtle-text);
     margin-bottom: 2.5rem;
     line-height: 1.5;
   }
   
   /* Google login button */
   .google-login-button {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     background-color: #374151;
     color: white;
     border: none;
     border-radius: 8px;
     padding: 0.875rem;
     font-size: 0.95rem;
     font-weight: 500;
     cursor: pointer;
     transition: all 0.3s ease;
     width: 100%;
     margin-bottom: 1rem;
   }
   
   .google-login-button img {
     width: 18px;
     height: 18px;
   }
   
   .google-login-button:hover {
     background-color: #1F2937;
   }
   
   /* Login separator */
   .login-separator {
     display: flex;
     align-items: center;
     text-align: center;
     margin: 1rem 0;
   }
   
   .login-separator::before,
   .login-separator::after {
     content: "";
     flex: 1;
     border-bottom: 1px solid var(--border-color);
   }
   
   .login-separator span {
     padding: 0 10px;
     color: var(--subtle-text);
     font-size: 0.875rem;
     font-weight: 500;
   }
   
   /* Login form */
   .login-form {
     display: flex;
     flex-direction: column;
     gap: 0.75rem;
   }
   
   .login-form input {
     padding: 0.875rem;
     border: 1px solid var(--border-color);
     border-radius: 8px;
     font-size: 0.75rem;
     background-color: var(--input-bg);
     color: var(--dark-text);
     width: 100%;
   }
   
   .login-form input::placeholder {
     color: var(--subtle-text);
     font-size: 0.75rem;
   }
   
   .continue-button {
     background-color: var(--primary-color);
     color: white;
     border: none;
     border-radius: 8px;
     padding: 0.875rem;
     font-size: 0.95rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     width: 100%;
   }
   
   .continue-button:hover {
     background-color: var(--primary-dark);
   }
   
   .disclaimer {
     font-size: 0.75rem;
     color: var(--subtle-text);
     margin-top: 1rem;
   }
   
   .disclaimer a {
     color: var(--dark-text);
     text-decoration: underline;
   }
   
   /* ------------------------------------------------
      PREFERENCES SCREEN
      ------------------------------------------------ */
   .preferences-screen {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100vh;
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 1001;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.5s ease, visibility 0.5s ease;
     padding: 1rem;
     overflow-y: auto;
   }
   
   .preferences-screen.active {
     opacity: 1;
     visibility: visible;
   }
   
   .preferences-container {
     width: 90%;
     max-width: 400px;
     background-color: var(--login-bg);
     padding: 1.5rem;
     text-align: center;
     height: auto;
     max-height: 90vh;
     overflow-y: auto;
     overflow-y: auto; 
   }
   
   .preferences-title {
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--dark-text);
     margin-bottom: 0.5rem;
     line-height: 1.2;
   }
   
   .preferences-subtitle {
     font-size: 0.875rem;
     color: var(--subtle-text);
     margin-bottom: 1.5rem;
     line-height: 1.4;
   }
   
   .preferences-form {
     display: flex;
     flex-direction: column;
     gap: 0.75rem;
   }
   
   .form-field {
     text-align: left;
   }
   
   .form-field input,
   .form-field select {
     width: 100%;
     padding: 0.75rem;
     border: 1px solid var(--border-color);
     border-radius: 8px;
     font-size: 0.95rem;
     background-color: var(--input-bg);
     color: var(--dark-text);
   }
   
   /* Style for placeholder text and input text separately */
   .form-field input::placeholder {
     color: var(--dark-text);
     opacity: 0.9;
   }
   
   /* Style for the disabled selected option in select */
   .form-field select {
     color: var(--dark-text);
     appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 0.9rem center;
   }
   
   /* Show disabled options with gray color */
   .form-field select option[disabled] {
     color: var(--subtle-text);
   }
   
   .form-field input:focus,
   .form-field select:focus {
     outline: none;
     border-color: var(--primary-color);
     box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
   }
   
   .preferences-form .continue-button {
     margin-top: 1rem;
   }
   
   .skip-button {
     background: none;
     border: none;
     color: var(--subtle-text);
     font-size: 0.875rem;
     cursor: pointer;
     padding: 0.5rem;
     transition: color 0.3s ease;
   }
   
   .skip-button:hover {
     color: var(--dark-text);
   }
   
   /* ------------------------------------------------
      CHAT APP (Keep exactly as is)
      ------------------------------------------------ */
   .chat-app {
     opacity: 0;
     transform: scale(0.9);
     pointer-events: none;
     transition: opacity 0.5s, transform 0.5s;
     width: 100%;
     max-width: 500px;
     height: 100vh;
     max-height: 800px;
     z-index: 1002;
     background-color: var(--chat-bg);
     border-radius: 20px;
     overflow: hidden;
     display: flex;
     flex-direction: column;
     box-shadow: var(--shadow-elegant);
     position: relative;
   }
   
   .chat-app.active {
     opacity: 1;
     transform: scale(1);
     pointer-events: auto;
   }

   /* Ajustar el padding-top del chat-messages para móviles */
@media (max-width: 600px) {
  .chat-messages {
    padding-top: 90px !important; /* Aumentar el espacio en móvil */
  }
  
  /* Si hay banner activo, también ajustar ese caso */
  .chat-app.has-banner .chat-messages {
    padding-top: 220px !important; /* Más espacio cuando hay banner */
  }
  
  /* Sin banner */
  .chat-app:not(.has-banner) .chat-messages {
    padding-top: 90px !important; /* Más espacio que en desktop */
  }
}

/* Mantener el header fijo en su posición en escritorio */
@media (min-width: 601px) {
  .chat-header {
    top: 0 !important;
    transition: none;
  }
  
  /* En escritorio, mantener las posiciones fijas sin importar el teclado */
  .chat-app.has-banner .chat-header {
    top: 120px !important;
  }
  
  .chat-app.keyboard-open .chat-header {
    /* En escritorio, mantener la posición según si hay banner o no */
    top: inherit;
  }
}

/* Solo aplicar cambios de posición en móvil */
@media (max-width: 600px) {
  /* Header fijo siempre en móvil */
  .chat-header {
    position: fixed !important;
    top: 0 !important;
  }
  
  /* Cuando hay banner y NO hay teclado */
  .chat-app.has-banner:not(.keyboard-open) .chat-header {
    top: 120px !important;
  }
  
  /* Cuando el teclado está abierto, header siempre arriba */
  .chat-app.keyboard-open .chat-header {
    top: 0 !important;
  }
  
  /* Ocultar banners cuando el teclado está abierto */
  .chat-app.keyboard-open .promo-carousel:not([style*="display: none"]) {
    transform: translateY(-120px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
}

/* Para dispositivos pequeños */
@media (max-width: 320px) {
  .chat-messages {
    padding-top: 100px !important; /* Aún más espacio para pantallas muy pequeñas */
  }
  
  .chat-app.has-banner .chat-messages {
    padding-top: 230px !important;
  }
  
  .chat-app:not(.has-banner) .chat-messages {
    padding-top: 100px !important;
  }
}
   
   /* Chat header */
   .chat-header {
    background-color: var(--chat-bg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 1000 !important;
    transition: background-color 0.3s, border-color 0.3s;
  }
  
  /* Añadir un padding superior al contenedor de mensajes para compensar el header fijo */
  .chat-messages {
    padding-top: 64px !important;
  }
   
   .avatar-container {
     position: relative;
     margin-right: 12px;
   }
   
   .avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background-color: var(--chat-bg);
     display: flex;
     justify-content: center;
     align-items: center;
     overflow: hidden;
   }
   
   .avatar-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
   }
   
   .status-indicator {
     width: 12px;
     height: 12px;
     background-color: var(--success-color);
     border-radius: 50%;
     border: 2px solid var(--chat-bg);
     position: absolute;
     bottom: 0;
     right: 0;
     transition: border-color 0.3s;
     display: none;
   }
   
   .contact-info {
     flex: 1;
   }

   .contact-info h1 {
    font-size: 17px;
    font-weight: 500;
   }
   
   .contact-name {
     font-size: 16px;
     font-weight: 600;
     color: var(--dark-text);
     margin-bottom: 2px;
     transition: color 0.3s;
   }
   
   .contact-status {
     font-size: 12px;
     color: var(--primary-color);
     transition: color 0.3s;
   }
   
   .map-button,
   .settings-button {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background: none;
     border: none;
     display: flex;
     justify-content: center;
     align-items: center;
     color: var(--dark-text);
     cursor: pointer;
     transition: background-color 0.2s;
     margin-left: 8px;
   }
   
   .map-button:hover,
   .settings-button:hover {
     background-color: rgba(0, 0, 0, 0.05);
   }
   
   [data-theme="dark"] .map-button:hover,
   [data-theme="dark"] .settings-button:hover {
     background-color: rgba(255, 255, 255, 0.1);
   }
   
   /* Chat messages area */
   .chat-messages {
     flex: 1;
     width: 100%;
     padding: 8px 12px;
     overflow-y: auto;
     background-color: var(--chat-bg);
     display: flex;
     flex-direction: column;
     gap: 8px;
     transition: background-color 0.3s;
     position: relative;
     -webkit-overflow-scrolling: touch;
     height: calc(var(--app-height) - 120px);
     scrollbar-width: none; /* Para Firefox */
  -ms-overflow-style: none; /* Para Internet Explorer y Edge */
   }

   /* Para navegadores WebKit (Chrome, Safari, etc.) */
.chat-messages::-webkit-scrollbar {
  display: none;
}
   
   /* Message containers */
   .message-container {
     display: flex;
     max-width: 80%;
     animation: messageAppear 0.3s ease-out forwards;
   }
   
   .bot-container {
    flex-direction: row;
    align-items: flex-start;
     align-self: flex-start;
   }
   
   .user-container {
     align-self: flex-end;
     flex-direction: column;
   }
   
   /* Message styles */
   .message {
     padding: 8px 12px;
     border-radius: 18px;
     position: relative;
     margin-bottom: 2px;
     word-break: break-word;
   }
   
   .bot {
     background-color: var(--bot-message-bg);
     color: var(--dark-text);
     border-bottom-left-radius: 4px;
     transition: background-color 0.3s, color 0.3s;
   }
   
   .user {
     background-color: var(--user-message-bg);
     color: var(--light-text);
     border-bottom-right-radius: 4px;
     transition: background-color 0.3s;
   }
   
   .message-content {
     font-size: 14px;
     line-height: 1.4;
   }
   
   /* Quick reply styles */
   .quick-reply-section {
     width: 100%;
     display: flex;
     flex-direction: column;
     animation: messageAppear 0.3s ease-out forwards;
   }
   
   .quick-reply-divider {
     display: flex;
     flex-direction: column;
     text-align: center;
     margin-bottom: 5px;
   }
   
   .quick-reply-divider::before {
    content: "";
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px; /* Espacio entre la línea y el texto */
  }
  
  /* Eliminar este pseudo-elemento que crea la línea de abajo */
  .quick-reply-divider::after {
    content: none;
  }
  
  .quick-reply-divider span {
    padding: 0 10px;
    color: #9CA3AF;
    font-size: 0.75rem;
  }
   
   .quick-reply-buttons {
     display: flex;
     flex-direction: column;
     gap: 8px;
   }
   
   .quick-reply-button {
     background-color: #F3F4F6;
     color: var(--subtle-text);
     border: 1px solid var(--border-color);
     border-radius: 12px;
     padding: 10px 15px;
     font-size: 14px;
     text-align: center;
     cursor: pointer;
     transition: background-color 0.2s, transform 0.2s;
     width: 100%;
   }
   
   .quick-reply-button:hover {
     background-color: rgba(16, 185, 129, 0.1);
     transform: translateY(-2px);
   }
   
   .quick-reply-button:active {
     transform: translateY(0);
   }

   /* Modificar el divisor para ajustar el color del texto */
  .quick-reply-divider span {
    padding: 0 10px;
    color: #9CA3AF; /* Ajustar a un gris más claro para coincidir con la imagen */
    font-size: 0.75rem;
  }
   
   /* Chat input area */
   .chat-input-area {
    padding: 8px 12px;
    background-color: #F9F9F9;
    border-top: 1px solid #EAEAEA;
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 19;
  }
  
  /* Contenedor que incluye tanto el textarea como el botón de micrófono */
.input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #FFF;
  border-radius: 20px;
  border: 1px solid #EAEAEA;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Estilos para el campo de texto */
#chat-input {
  flex: 1;
  padding: 12px 40px 12px 15px; /* Padding derecho para dejar espacio al botón */
  border-radius: 20px;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  background-color: transparent;
  color: #333;
}

/* Estilos para el botón de micrófono dentro del campo */
.mic-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  color: #9CA3AF;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

/* Estilos para el botón de enviar */
.send-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #10B981;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Estilo para cuando está grabando */
.mic-button.recording {
  background-color: rgba(226, 82, 65, 0.1);
  color: #e25241;
}
   
   #chat-input::-webkit-scrollbar {
     display: none;
   }
   
   .mic-button:hover,
   .send-button:hover {
     opacity: 0.9;
   }

   
   /* Transcription UI */
   .transcription-container {
     display: flex;
     align-items: center;
     background-color: rgba(16, 185, 129, 0.1);
     border-radius: 18px;
     padding: 10px 15px;
     max-width: 80%;
     align-self: flex-end;
     margin-bottom: 8px;
     transition: background-color 0.3s;
   }
   
   .transcription-content {
     flex: 1;
     font-size: 14px;
     color: var(--dark-text);
     transition: color 0.3s;
   }
   
   .transcription-buttons {
     display: flex;
     gap: 8px;
     margin-left: 12px;
   }
   
   .transcription-edit,
   .transcription-send {
     background: none;
     border: none;
     cursor: pointer;
     width: 24px;
     height: 24px;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   
   .transcription-edit {
     color: var(--dark-text);
     transition: color 0.3s;
   }
   
   .transcription-send {
     color: var(--primary-color);
     transition: color 0.3s;
   }
   
   /* Typing indicator */
   .typing-indicator {
     display: flex;
     padding: 8px;
     background-color: var(--bot-message-bg);
     border-radius: 18px;
     max-width: 60px;
     align-self: flex-start;
     gap: 4px;
     transition: background-color 0.3s;
   }
   
   .typing-dot {
     width: 8px;
     height: 8px;
     background-color: var(--subtle-text);
     border-radius: 50%;
     animation: typing-animation 1.5s infinite ease-in-out;
     transition: background-color 0.3s;
   }
   
   .typing-dot:nth-child(1) {
     animation-delay: 0s;
   }
   
   .typing-dot:nth-child(2) {
     animation-delay: 0.3s;
   }
   
   .typing-dot:nth-child(3) {
     animation-delay: 0.6s;
   }
   
   /* ------------------------------------------------
      EDIT PREFERENCES SCREEN
      ------------------------------------------------ */
   .preferences-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 20px;
   }
   
   .close-button {
     background: none;
     border: none;
     cursor: pointer;
     color: var(--dark-text);
     padding: 8px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background-color 0.2s;
   }
   
   .close-button:hover {
     background-color: rgba(0, 0, 0, 0.05);
   }
   
   [data-theme="dark"] .close-button:hover {
     background-color: rgba(255, 255, 255, 0.1);
   }
   
   /* Estilos para la pantalla de edición de perfil */
#edit-preferences-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  height: 100vh;
  max-width: 500px;
  z-index: 1002;
  background-color: var(--chat-bg);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elegant);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
  overflow: hidden;
}

#edit-preferences-screen.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
}

.edit-preferences-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 30px;
}

.form-group {
  text-align: left;
  margin-bottom: 12px;
  background-color: #ffffff;
  border-radius: 8px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark-text);
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  background-color: #f9f9f9;
  color: #333333;
}

.save-profile-button {
  background-color: #10B981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-profile-button:hover {
  background-color: #0ea573;
}

.logout-button {
  margin-top: 12px;
  background: none;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

/* Modificar el área de contenido para que sea scrolleable */
.preferences-content.profile-content {
  flex: 1;
  overflow-y: auto !important; /* Forzar scroll vertical */
  max-height: calc(100vh - 60px); /* Restar altura del header */
  padding-bottom: 20px; /* Espacio extra después del último botón */
}

/* Estilos para Mi Perfil */
.profile-content {
  padding: 0 !important;
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f1f1;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.profile-user-info {
  text-align: left;
}

.profile-username {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 4px;
}

.profile-subtitle {
  font-size: 13px;
  color: #777777;
}

/* Mejorar los estilos de las notificaciones */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notification.success {
  background-color: #10B981;
  color: white;
}

.notification.error {
  background-color: #EF4444;
  color: white;
}

@media (max-width: 600px) {
  #edit-preferences-screen {
    max-width: 100%;
    border-radius: 0;
  }
}
   
   .edit-preferences-form select {
     padding: 10px 12px;
     border-radius: 12px;
     border: 1px solid var(--border-color);
     background-color: var(--input-bg);
     font-size: 14px;
     color: var(--dark-text);
     width: 100%;
     appearance: none;
     background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 12px center;
     background-size: 16px;
     transition: border-color 0.3s;
   }
   
   .edit-preferences-form select:focus {
     outline: none;
     border-color: var(--primary-color);
     box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
   }
   
   .logout-button {
     margin-top: 12px;
     background: none;
     border: 1px solid #e74c3c;
     color: #e74c3c;
     border-radius: 12px;
     padding: 1rem;
     font-size: 0.95rem;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     width: 100%;
   }
   
   .logout-button:hover {
     background-color: rgba(231, 76, 60, 0.1);
     transform: translateY(-2px);
   }
   
   .logout-button:active {
     transform: translateY(0);
   }
   
   /* ------------------------------------------------
      APP SETTINGS SCREEN
      ------------------------------------------------ */
   

/* Estilos para la pantalla de ajustes como página completa */
/* Asegura que el contenedor esté centrado */
#app-settings-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0; /* Esto ayuda con el centrado */
  margin: 0 auto; /* Centrado horizontal */
  width: 100%;
  height: 100vh;
  max-width: 500px;
  z-index: 1002;
  background-color: var(--chat-bg);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elegant);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

#app-settings-screen.active {
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s;
}


/* Mejora la apariencia en móviles */
@media (max-width: 600px) {
  #app-settings-screen {
    max-width: 100%;
    border-radius: 0;
  }
}

/* Botón de retroceso */
.back-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dark-text);
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 10px;
}

.back-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.preferences-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  width: 100%;
  max-width: 500px;
  background-color: #ffffff; /* Fondo gris claro */
  padding: 0; /* Eliminar padding */
}

/* Ajustar el header de preferencias */
.preferences-header {
  display: flex;
  align-items: center;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f1f1;
  padding: 10px 16px;
}


  /* Modificar la apariencia de las opciones de configuración */
.settings-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Reducir espacio entre opciones */
  padding: 10px 12px;
  gap: 6px; /* Menor espacio entre opciones */
  margin-top: 0;
  margin-bottom: 0;
}

.settings-option {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px; /* Bordes redondeados */
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea; /* Borde gris claro */
  margin-bottom: 6px; /* Espacio entre opciones */
  height: 48px; /* Altura fija más pequeña */
}

.settings-option:hover {
  background-color: #f9f9f9; /* Gris muy claro al pasar el ratón */
  transform: none; /* Eliminar la animación de elevación */
}

.settings-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  color: var(--primary-color);
}

.settings-option-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500; /* Menos negrita */
  color: #333333; /* Color más oscuro para el texto */
}

.settings-option-arrow {
  color: #cccccc; /* Gris claro para las flechas */
}

.settings-option-icon svg {
  stroke: var(--primary-color); /* Color del icono */
}
   
   /* ------------------------------------------------
      ANIMATIONS
      ------------------------------------------------ */
   @keyframes messageAppear {
     from {
       opacity: 0;
       transform: translateY(10px);
     }
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
   
   @keyframes typing-animation {
     0%, 60%, 100% {
       transform: translateY(0);
     }
     30% {
       transform: translateY(-4px);
     }
   }
   
   @keyframes pulse {
     0% {
       box-shadow: 0 0 0 0 rgba(226, 82, 65, 0.4);
     }
     70% {
       box-shadow: 0 0 0 10px rgba(226, 82, 65, 0);
     }
     100% {
       box-shadow: 0 0 0 0 rgba(226, 82, 65, 0);
     }
   }
   
   /* ------------------------------------------------
      MEDIA QUERIES AND RESPONSIVENESS
      ------------------------------------------------ */
   @media (max-width: 600px) {
     .chat-app {
       max-width: 100%;
       height: 100vh;
       max-height: 100vh;
       border-radius: 0;
     }
   
     .message-container {
       max-width: 85%;
     }
   
     .welcome-container,
     .onboarding-container,
     .preferences-container {
       width: 95%;
       padding: 1.5rem;
     }
   }
   
   @media (max-width: 320px) {
     .preferences-title {
       font-size: 1.25rem;
     }
     
     .preferences-container {
       padding: 1rem;
     }
     
     .form-field label {
       font-size: 0.8rem;
     }
     
     .form-field input,
     .form-field select {
       padding: 0.625rem;
       font-size: 0.875rem;
     }
     
     .chat-header {
       padding: 8px 12px;
     }
   
     .avatar {
       width: 32px;
       height: 32px;
     }
   
     .contact-name {
       font-size: 13px;
     }
   
     .message-content {
       font-size: 13px;
     }
   
     .chat-input-area {
       padding: 8px 12px;
     }
   
     #chat-input {
       padding: 8px 10px;
     }
   
     .mic-button,
     .send-button {
       width: 36px;
       height: 36px;
     }
   }
   
   @media (hover: none) {
     .button:hover,
     .option-button:hover,
     .nav-button:hover,
     .map-button:hover,
     .settings-button:hover {
       transform: none;
       box-shadow: none;
     }
   }
   
   @supports (height: 100dvh) {
     body,
     .chat-app {
       height: 100dvh;
     }
   }
   
   :root {
     --app-height: 100vh;
   }
   
   /* Dark theme adjustments */
   [data-theme="dark"] .app-download-banner {
     background: linear-gradient(135deg, var(--primary-dark), #065F46);
   }
   
   /* iOS specific fixes */
   @supports (-webkit-touch-callout: none) {
     .chat-app {
       height: -webkit-fill-available;
       max-height: var(--app-height);
       position: fixed;
       top: 0;
       left: 0;
       right: 0;
       bottom: 0;
       overflow: hidden;
     }
   
     #chat-input {
       font-size: 16px;
     }
   }
   
   /* avatar al lado del mensaje */
   /* Estilos para el avatar en mensajes */
.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 8px;
  flex-shrink: 0; /* Evita que el avatar se encoja */
  align-self: flex-end; /* Alinea el avatar con la parte superior del mensaje */
  margin-bottom: 0; /* Elimina el margen inferior */
  margin-top: auto;
}

.message-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modificar el contenedor de mensaje del bot para incluir el avatar */
.bot-container {
  display: flex;
  align-items: flex-end; /* Alinea los elementos en la parte superior */
  max-width: 80%;
  margin-bottom: 8px; /* Espacio entre mensajes */
}

/* Asegúrate de que el mensaje ocupe el espacio restante */
.bot-container .message {
  flex: 1;
}

/* Para los mensajes del usuario, mantén el alineamiento a la derecha */
.user-container {
  align-self: flex-end;
}

/* Estilos para el botón "Dejar de generar" */
.stop-generating-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 8px 0;
}

.stop-generating-button {
  display: flex;
  align-items: center;
  background-color: #f2f2f2;
  color: var(--dark-text);
  border: none;
  border-radius: 16px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stop-generating-button::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #10B981;
  border-radius: 3px;
  margin-right: 8px;
}

/* Estilos para botones de reacción */
.message-reactions {
  display: flex;
  gap: 5px;
  position: absolute;
  right: 8px;
  bottom: -26px; /* Posición justo debajo de la burbuja */
  padding: 3px 5px;
  padding-bottom: 3px;
  transition: opacity 0.2s;
  z-index: 10;
}

.message-reactions:hover {
  opacity: 1;
}

/* Ajustar el contenedor de mensaje para posicionamiento relativo */
.bot-container {
  position: relative;
  margin-bottom: 8px; /* Añadir espacio para los botones de reacción */
}

/* Añadir margen extra solo cuando tiene botones de reacción */
.bot-container:has(.message-reactions) {
  margin-bottom: 32px; /* Espacio para los botones */
}

.reaction-button {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  color: var(--subtle-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.reaction-button:hover {
  background-color: rgba(0,0,0,0.05);
  transform: scale(1.1);
}

/* Estilo para botones activos */
.reaction-button.active {
  color: var(--primary-color);
}

.reaction-button.active svg {
  fill: var(--primary-color);
}

/* Ajuste para temas oscuros */
[data-theme="dark"] .message-reactions {
  background-color: #2a2a2a;
}

[data-theme="dark"] .reaction-button:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ------------------------------------------------
   BANNER Y CARRUSEL
   ------------------------------------------------ */
  
  .banner-button {
    background-color: white;  /* Cambiar de var(--primary-color) a white */
    color: #10B981;  /* Cambiar de white a var(--primary-color) */
    padding: 8px 20px;  /* Aumentar el padding para hacerlo más espacioso */
    border-radius: 20px;  /* Aumentar el border-radius para esquinas más redondeadas */
    font-size: 14px;  /* Aumentar ligeramente el tamaño de la fuente */
    text-decoration: none;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    position: relative;
    z-index: 10;
    right: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* Agregar sombra sutil */
    border: 2px solid #10B981;
    margin-top: 0; /* Empuja el botón hacia abajo */
    align-self: center; /* Alinea el botón en la parte inferior */
    transform: translateY(10px); /* Baja el botón 10px más */
    transition: all 0.2s ease;
  }
  
  /* Agregar efecto hover (opcional) */
  .banner-button:hover {
    background-color: #f9f9f9;
    transform: translateY(3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  /* Carrusel de promociones */
  .promo-carousel {
    width: 100%;
    height: 120px;
    z-index: 1100; /* Mayor que el z-index del header (1000) */
    overflow: hidden;
    position: fixed; /* Cambiar a fixed para posicionarlo igual que el header */
    top: 0; /* Comienza en la parte superior */
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Capa semi-transparente negra */
    z-index: -1;
  }
  
  .carousel-slide.active {
    opacity: 1;
  }
  
  .carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(1px); /* Añade esta línea para crear el efecto de desenfoque */
  }
  
  .carousel-slide .banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    color: white;
    position: relative;
    z-index: 5;
    height: 100%; /* Asegurar que ocupe toda la altura */
  }
  
  .banner-text {
    display: flex;
    flex-direction: column;
    max-width: 65%;
    margin-top: 10px;
  }
  
  .banner-text h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
  }
  
  .banner-text p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
  }
  
  /* Navegación con puntos */
  .carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    display: none;
  }
  
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
  }
  
  .dot.active {
    background-color: white;
  }
  
 
/* Ajustar el header cuando hay banner visible */
.chat-app.has-banner .chat-header {
  top: 120px !important; /* Mover el header debajo del banner */
  transition: top 0.3s ease;
}

/* Ajustar el área de mensajes cuando hay banner */
.chat-app.has-banner .chat-messages {
  padding-top: 200px !important; /* Espacio para header (60px) + banner (120px) */
  transition: padding-top 0.3s ease;
}

/* Cuando solo está el header, sin banner */
.chat-app:not(.has-banner) .chat-messages {
  padding-top: 80px !important; /* Solo espacio para el header */
  transition: padding-top 0.3s ease;
}

/* Header cuando NO hay banner o cuando el teclado está abierto */
.chat-app:not(.has-banner) .chat-header,
.chat-app.keyboard-open .chat-header {
  top: 0 !important;
  transition: top 0.3s ease;
}

  /* Botón para cerrar el carrusel */
/* Botón para cerrar el carrusel - Diseño mejorado */
.close-carousel-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 102;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  opacity: 0;  /* Inicialmente invisible */
  visibility: hidden;  /* Inicialmente oculto */
  transition: opacity 0.5s ease, visibility 0s linear 0.5s, transform 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transform: scale(0.8);
}

/* Cuando está visible */
.close-carousel-button.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s, transform 0.3s ease;
  transform: scale(1);
}

.close-carousel-button:hover {
  background-color: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  color: #10B981;
}

.close-carousel-button:active {
  transform: rotate(90deg) scale(0.95);
}

/* Efecto de onda al hacer clic */
.close-carousel-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16,185,129,0.4) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s, opacity 0.5s;
}

.close-carousel-button:active::after {
  opacity: 1;
  transform: scale(1.5);
}

/* Clase para cuando se elimina el carrusel */
.chat-app.no-banner .chat-messages {
  height: calc(var(--app-height) - 60px); /* Ajustar solo para el alto del header */
}

/* Añade esto a tu styles.css */
@keyframes pulse-textarea {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

#chat-input.pulse-effect {
  animation: pulse-textarea 0.3s forwards;
}

/* Estilo para el botón de micrófono durante la transcripción */
.mic-button.transcribing {
  animation: pulse 1s infinite;
  color: var(--primary-color);
}

/* Animación de pulso para el micrófono */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
/* Estilos para navegación tipo mapa - Versión refinada */
.navigation-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #f5f5f7;
  border-radius: 16px;
  padding: 12px 14px; /* Padding reducido */
}

.navigation-header {
  display: flex;
  align-items: center;
  gap: 10px; /* Gap reducido */
  margin-bottom: 6px; /* Margen reducido */
  padding-left: 3px;
}

.header-dot {
  width: 10px; /* Más pequeño */
  height: 10px;
  background-color: #9CA3AF;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-title {
  font-size: 14px; /* Fuente más pequeña */
  font-weight: 600;
  color: #374151;
}

.steps-wrapper {
  position: relative;
  padding-left: 5px;
  padding-bottom: 14px;
}

/* Línea vertical punteada */
.steps-wrapper::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1.5px; /* Línea más delgada */
  background-image: linear-gradient(to bottom, #D1D5DB 50%, transparent 50%);
  background-size: 1.5px 6px; /* Puntos más pequeños */
  background-repeat: repeat-y;
}

.navigation-step {
  display: flex;
  align-items: flex-start;
  gap: 10px; /* Gap reducido */
  padding: 6px 0; /* Padding reducido */
  margin-left: 0;
  position: relative;
}

.direction-icon {
  width: 30px; /* Icono más pequeño */
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 8px; /* Radio reducido */
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: none;
  transition: all 0.2s ease;
}

.direction-icon svg {
  width: 18px; /* SVG más pequeño */
  height: 18px;
  stroke-width: 2.5;
}

/* Efecto hover opcional */
.direction-icon:hover {
  background-color: rgba(16, 185, 129, 0.15);
  transform: scale(1.05);
}

/* Estilos específicos para diferentes tipos de dirección */
.navigation-step:last-child .direction-icon {
  background-color: var(--primary-color);
  color: white;
}

.step-content {
  flex: 1;
  padding-top: 3px; /* Padding superior reducido */
}

.step-instruction {
  font-size: 14px; /* Fuente más pequeña */
  line-height: 1.3; /* Interlineado más compacto */
  color: #1F2937;
  margin-bottom: 2px; /* Margen reducido */
}

.step-distance {
  font-size: 12px; /* Fuente más pequeña */
  color: #6B7280;
  margin-top: 1px;
}

/* Último paso - punto de destino */
.navigation-step:last-child {
  padding-bottom: 8px;
}

/* Mejoras visuales adicionales */
.navigation-container {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Sombra sutil */
}

/* Para alinear mejor los iconos con el texto */
.navigation-step {
  align-items: center; /* Cambiar de flex-start a center */
}

.step-content {
  padding-top: 0; /* Quitar padding superior ya que está centrado */
}

/* Efecto visual mejorado para el último paso */
.navigation-step:last-child .direction-icon {
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Tema oscuro - ajustes para tamaños reducidos */
[data-theme="dark"] .navigation-container {
  background-color: #1F2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .header-title,
[data-theme="dark"] .step-instruction {
  color: #F9FAFB;
}

[data-theme="dark"] .step-distance {
  color: #9CA3AF;
}

[data-theme="dark"] .direction-icon {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
}

[data-theme="dark"] .navigation-step:last-child .direction-icon {
  background-color: var(--primary-color);
  color: white;
}

[data-theme="dark"] .steps-wrapper::before {
  background-image: linear-gradient(to bottom, #4B5563 50%, transparent 50%);
}

/* Ajustar el ancho del mensaje para que sea más similar a la imagen */
.bot-container:has(.navigation-container) {
  max-width: 90%;
}

/* Hacer el mensaje más ancho en móviles */
@media (max-width: 600px) {
  .bot-container:has(.navigation-container) {
    max-width: 95%;
  }
}

/* Transición suave cuando aparece el contenedor */
.navigation-container {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejorar la legibilidad con mejor contraste */
.step-instruction {
  font-weight: 500; /* Peso de fuente medio para mejor legibilidad */
}

/* Ajuste fino para el espaciado entre pasos */
.navigation-step:not(:last-child) {
  margin-bottom: 2px;
}

/* Estilo más moderno para el header */
.navigation-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

/* Ajuste para dispositivos pequeños */
@media (max-width: 400px) {
  .navigation-container {
    padding: 10px 12px;
  }
  
  .step-instruction {
    font-size: 13px;
  }
  
  .step-distance {
    font-size: 11px;
  }
}

/* Estilos para el carrusel de restaurantes */
.restaurant-carousel-container {
  width: 100%;
  margin: 8px 0;
  position: relative;
  overflow-x: hidden; /* Ocultar overflow del contenedor */
  padding-right: 0;
}


.restaurant-carousel {
  display: flex;
  overflow-x: auto; /* Permitir scroll horizontal */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 12px;
  padding: 0 8px 8px 0;
  scroll-behavior: smooth;
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
}

.restaurant-carousel::-webkit-scrollbar {
  display: none;
}
/* Tarjeta individual */
.restaurant-card {
  flex: 0 0 220px;
  min-width: 220px; /* Asegurar ancho mínimo */
  background-color: #F3F4F6;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.restaurant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Imagen del restaurante */
.restaurant-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.restaurant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido con fondo gris */
.restaurant-content {
  padding: 12px;
  background-color: #F3F4F6;
}

.restaurant-name {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-description {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer con horario y botón */
.restaurant-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.restaurant-schedule {
  font-size: 12px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-icon {
  font-size: 14px;
}

/* Botón de menú */
.restaurant-menu-button {
  background-color: white;
  color: #374151;
  border: 1px solid #D1D5DB;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.restaurant-menu-button:hover {
  background-color: #F9FAFB;
  border-color: #9CA3AF;
}

/* Contenedor de mensaje específico para carruseles */
/* Contenedor de mensaje específico para carruseles */
.carousel-message-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 8px;
  max-width: 100%;
  padding-left: 0;
  position: relative;
}

/* Avatar */
.carousel-message-container .message-avatar {
  flex-shrink: 0;
  margin-right: 8px;
  position: relative; /* Cambiado de sticky */
}

/* Contenedor de carrusel */
.carousel-message-container .restaurant-carousel-container {
  flex: 1;
  min-width: 0; /* Importante para permitir que flex funcione correctamente */
  max-width: calc(100% - 36px); /* Restar espacio del avatar */
}

/* Para dispositivos móviles */
@media (max-width: 600px) {
  .restaurant-carousel-container {
    width: 100%;
  }
  
  .restaurant-card {
    flex: 0 0 200px;
    min-width: 200px;
  }
  
  .carousel-message-container .restaurant-carousel-container {
    max-width: calc(100% - 36px);
  }
}

/* Para escritorio */
@media (min-width: 601px) {
  .restaurant-carousel-container {
    width: 100%;
    overflow-x: auto; /* Permitir scroll en escritorio */
  }
  
  /* Mostrar una sombra para indicar que hay más contenido */
  .restaurant-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, #ffffff);
    pointer-events: none;
    z-index: 1;
  }
  
  /* Sombra al inicio cuando hay scroll */
  .restaurant-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, transparent, #ffffff);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  /* Mostrar sombra izquierda cuando hay scroll */
  .restaurant-carousel-container.has-scroll::before {
    opacity: 1;
  }
}

/* Fix específico para iOS si es necesario */
@supports (-webkit-touch-callout: none) {
  .restaurant-carousel-container {
    transform: translateZ(0); /* Activar aceleración por hardware */
  }
  
  .restaurant-carousel {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
}

/* Fix adicional para evitar problemas de scroll */
.chat-messages {
  overflow-x: hidden; /* Prevenir scroll horizontal del chat */
  overflow-y: auto;
}

/* Asegurar que las tarjetas son visibles en móvil */
.restaurant-card {
  display: block; /* Asegurar display block */
  visibility: visible;
  opacity: 1;
}

/* Asegurar que el contenedor del bot mantenga su alineación */
.bot-container.carousel-message-container {
  max-width: 100%;
  margin-left: 0;
  align-self: flex-start;
  overflow: visible; /* Permitir que el contenido sea visible */
}

/* Fix adicional para evitar que el chat se mueva */
.chat-messages {
  overflow-x: hidden; /* Evitar scroll horizontal en el contenedor de mensajes */
}

/* Tema oscuro */
[data-theme="dark"] .restaurant-card {
  background-color: #1F2937;
}

[data-theme="dark"] .restaurant-content {
  background-color: #1F2937;
}

[data-theme="dark"] .restaurant-name {
  color: #F9FAFB;
}

[data-theme="dark"] .restaurant-description,
[data-theme="dark"] .restaurant-schedule {
  color: #D1D5DB;
}

[data-theme="dark"] .restaurant-menu-button {
  background-color: #374151;
  color: #F9FAFB;
  border-color: #4B5563;
}

[data-theme="dark"] .restaurant-menu-button:hover {
  background-color: #4B5563;
  border-color: #6B7280;
}

/* Estilos para el carrusel de tiendas */
.store-carousel-container {
  width: 100%;
  margin: 8px 0;
  position: relative;
  overflow-x: hidden;
  padding-right: 0;
}

.store-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 12px;
  padding: 0 8px 8px 0;
  scroll-behavior: smooth;
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
}

.store-carousel::-webkit-scrollbar {
  display: none;
}

/* Tarjeta individual de tienda */
.store-card {
  flex: 0 0 220px;
  min-width: 220px;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Contenedor de imagen con badge de descuento */
.store-image-wrapper {
  position: relative;
  width: 100%;
}

/* Imagen de la tienda */
.store-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background-color: #f8f8f8;
}

.store-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge de descuento superpuesto */
.store-discount-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* Contenido de la tarjeta */
.store-content {
  padding: 12px;
  background-color: #ffffff;
}

.store-name {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-description {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer de la tarjeta */
.store-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 4px;  /* Reducir gap */
  height: 32px;  /* Altura más compacta */
}

/* Si no hay indicador de precio, centrar el botón */
.store-footer:not(:has(.store-price-indicator)) .store-images-icon {
  margin-left: auto;
}

/* Indicador de precio */
.store-price-indicator {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Botón/Icono de ver imágenes */
.store-images-icon {
  height: 32px;
  min-height: 32px;
  flex: 1;  /* Tomar todo el espacio disponible */
  max-width: 80px;  /* Limitar el ancho máximo */
  border-radius: 16px;  /* Hacerlo más rectangular */
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 12px;  /* Añadir padding horizontal */
  position: relative;
  overflow: hidden;
}

.store-images-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.store-images-icon:hover::before {
  transform: translateX(100%);
}

.store-images-icon:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.store-images-icon:active {
  transform: scale(0.95);
}

.store-images-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}


.store-images-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.store-images-icon:disabled:hover {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  transform: scale(1);
  box-shadow: none;
}

/* Añadir múltiples iconos para indicar galería */
.store-images-icon svg:first-child {
  position: relative;
  z-index: 2;
}

/* Indicador de precio - ajustado */
.store-price-indicator {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 16px;
  flex-shrink: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Tema oscuro para el icono */
[data-theme="dark"] .store-images-icon {
  background-color: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .store-images-icon:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .store-images-icon {
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
  }
  
  .store-price-indicator {
    height: 28px;
    padding: 4px 10px;
  }
  
  .store-images-icon svg {
    width: 18px;
    height: 18px;
  }
}


/* Tema oscuro para tiendas */
[data-theme="dark"] .store-card {
  background-color: #1F2937;
}

[data-theme="dark"] .store-content {
  background-color: #1F2937;
}

[data-theme="dark"] .store-name {
  color: #F9FAFB;
}

[data-theme="dark"] .store-description {
  color: #D1D5DB;
}

[data-theme="dark"] .store-discount-badge {
  background-color: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .store-price-indicator {
  background-color: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

[data-theme="dark"] {
  background-color: var(--primary-color);
  color: white;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
  .store-card {
    flex: 0 0 200px;
    min-width: 200px;
  }
  
  .store-image {
    height: 120px;
  }
  
  .store-discount-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* Galería de imágenes a pantalla completa */
.product-images-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-images-gallery.show {
  display: flex;
  opacity: 1;
}

/* Header de la galería */
.gallery-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 16px 20px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.gallery-counter {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

.gallery-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s;
}

.gallery-close:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Contenedor principal de imágenes */
.gallery-main {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

/* Contenedor de imagen activa */
.gallery-image-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  user-select: none;
  -webkit-user-drag: none;
}

/* Indicadores de slide */
.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.gallery-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Botones de navegación */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

/* Ocultar navegación en primera/última imagen */
.gallery-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Transiciones de imagen */
.gallery-image-container {
  transition: transform 0.3s ease;
}

/* Efecto de swipe */
.gallery-image-container.swiping {
  transition: none;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
  }
  
  .gallery-nav.prev {
    left: 10px;
  }
  
  .gallery-nav.next {
    right: 10px;
  }
  
  .gallery-image-container {
    width: 95%;
    height: 70%;
  }
}

/* Animación de entrada */
@keyframes galleryImageIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-image {
  animation: galleryImageIn 0.3s ease;
}

/* Contenedor del carrusel de servicios */
.service-carousel-container {
  width: 100%;
  position: relative;
  margin: 10px 0;
}

.service-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-carousel::-webkit-scrollbar {
  display: none;
}

/* Tarjeta de servicio */
.service-card {
  flex: 0 0 280px;
  background: var(--card-bg, #ffffff);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #e0e0e0);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagen del servicio */
.service-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido de la tarjeta */
.service-content {
  padding: 20px;
}

.service-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text-primary, #333333);
  line-height: 1.3;
}

.service-description {
  font-size: 14px;
  color: var(--text-secondary, #666666);
  margin: 0 0 15px 0;
  line-height: 1.4;
}

/* Footer con botones híbridos */
.service-footer {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
}

.service-action-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.service-action-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.service-action-button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.service-action-button.secondary {
  background: transparent;
  color: #667eea;
  border: 1.5px solid rgba(102, 126, 234, 0.3);
}

.service-action-button.secondary:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #667eea;
}

.service-action-button svg {
  flex-shrink: 0;
}

.service-action-button span {
  white-space: nowrap;
}

/* Botones icono - NUEVO */
.service-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
}

/* Icono de acceso al servicio */
.service-icon-button.access-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.service-icon-button.access-icon:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Icono de más información */
.service-icon-button.info-icon {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.service-icon-button.info-icon:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: #667eea;
  transform: translateY(-2px) scale(1.05);
}

/* Efecto tooltip (opcional) */
.service-icon-button::before {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  margin-bottom: 5px;
}

.service-icon-button:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .service-card {
    flex: 0 0 250px;
  }
  
  .service-content {
    padding: 16px;
  }
  
  .service-name {
    font-size: 16px;
  }
  
  .service-description {
    font-size: 13px;
  }
  
  .service-footer {
    gap: 15px; /* Menos espacio en móvil */
  }
  
  .service-icon-button {
    width: 40px;
    height: 40px;
  }
}