/* Estilos personalizados para la plataforma del PAN */

/* Animaciones y transiciones */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Personalización de scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0039a6;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #002d80;
}

/* Sombreado y efectos */
.shadow-hover {
  transition: all 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 57, 166, 0.25);
}

/* Gradientes y colores de PAN */
.bg-pan-gradient {
  background: linear-gradient(145deg, #0039a6 0%, #0047d1 100%);
}

.text-pan-blue {
  color: #0039a6;
}

.bg-pan-blue {
  background-color: #0039a6;
}

/* Personalización de botones */
.btn-pan {
  background-color: #0039a6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-pan:hover {
  background-color: #002d80;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 57, 166, 0.25);
}

.btn-pan-outline {
  background-color: transparent;
  color: #0039a6;
  border: 2px solid #0039a6;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-pan-outline:hover {
  background-color: #0039a6;
  color: white;
}

/* Efectos para tarjetas */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Animaciones para elementos de navegación */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Animación para los iconos */
.icon-rotate {
  transition: transform 0.3s ease;
}

.icon-rotate:hover {
  transform: rotate(10deg);
}

/* Estilos para formularios */
.input-pan {
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-pan:focus {
  outline: none;
  border-color: #0039a6;
  box-shadow: 0 0 0 3px rgba(0, 57, 166, 0.1);
}

/* Animación de carga */
.loader {
  border: 4px solid rgba(0, 57, 166, 0.1);
  border-left-color: #0039a6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Estilos para modales */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  max-width: 500px;
  margin: 10vh auto;
  padding: 1.5rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-content.show {
  transform: translateY(0);
  opacity: 1;
}

/* Estilos para tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #0039a6;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Utilidades adicionales */
.pan-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 57, 166, 0.5);
}

.pan-shadow {
  box-shadow: 0 4px 6px rgba(0, 57, 166, 0.1);
}

/* Animaciones para elementos cuando entran en viewport */
.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
} 

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Animaciones suaves */
.transition-all {
    transition: all 0.3s ease;
}

/* Estilos para el botón flotante de soporte */
#floating-support-btn {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#floating-support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

#floating-support-btn:active {
    transform: scale(0.95);
}

/* Estilos para el chat de soporte pantalla completa */
#support-modal {
    animation: slideInFromBottom 0.3s ease-out;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Animación para mensajes nuevos */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chat-messages > div {
    animation: slideIn 0.4s ease-out;
}

/* Estilos mejorados para mensajes del chat */
#chat-messages .bg-blue-100 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

#chat-messages .bg-blue-800 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    border-bottom-right-radius: 4px;
}

/* Efecto de typing para el bot */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #e2e8f0;
    border-radius: 12px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #64748b;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mejoras para el modal */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Estilos para botones de navegación activos */
nav a.active {
    color: #93c5fd;
    border-bottom: 2px solid #93c5fd;
}

/* Mejoras para cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Estilos para el botón de soporte */
#soporte-btn, #soporte-btn-mobile {
    position: relative;
    overflow: hidden;
}

#soporte-btn::before, #soporte-btn-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#soporte-btn:hover::before, #soporte-btn-mobile:hover::before {
    left: 100%;
}

/* Responsive improvements */
@media (max-width: 768px) {
    #support-modal .bg-white {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    #chat-messages {
        max-height: 60vh;
    }
} 