/* ========================================
   EFECTOS VISUALES - NotIA Design System
   ======================================== */

/* ========================================
   SOMBRAS Y PROFUNDIDAD
   ======================================== */

/* Sombras base */
.shadow-soft {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.shadow-colored {
  box-shadow: 0 4px 16px rgba(13, 92, 99, 0.2);
}

.shadow-colored-success {
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
}

.shadow-colored-warning {
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.shadow-colored-danger {
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2);
}

/* Sombras de texto */
.text-shadow-soft {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-medium {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.text-shadow-strong {
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* ========================================
   GRADIENTES
   ======================================== */

/* Gradientes base */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.gradient-success {
  background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
}

.gradient-info {
  background: linear-gradient(135deg, var(--info-color) 0%, #6f42c1 100%);
}

.gradient-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 100%);
}

.gradient-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #e83e8c 100%);
}

/* Gradientes sutiles */
.gradient-subtle {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
}

/* Gradientes de texto */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   EFECTOS DE VIDRIO (GLASSMORPHISM)
   ======================================== */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-primary {
  background: rgba(13, 92, 99, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(13, 92, 99, 0.2);
}

/* ========================================
   BORDES Y OUTLINES
   ======================================== */

/* Bordes redondeados */
.rounded-soft {
  border-radius: 0.375rem;
}

.rounded-medium {
  border-radius: 0.5rem;
}

.rounded-strong {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 50rem;
}

/* Bordes con gradiente */
.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--primary-color), var(--primary-light)) border-box;
}

.border-gradient-success {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, var(--success-color), #20c997) border-box;
}

/* Outlines personalizados */
.outline-primary {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.outline-success {
  outline: 2px solid var(--success-color);
  outline-offset: 2px;
}

.outline-warning {
  outline: 2px solid var(--warning-color);
  outline-offset: 2px;
}

.outline-danger {
  outline: 2px solid var(--danger-color);
  outline-offset: 2px;
}

/* ========================================
   EFECTOS DE HOVER AVANZADOS
   ======================================== */

/* Hover con elevación */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Hover con escala */
.hover-scale {
  transition: all 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Hover con rotación */
.hover-rotate {
  transition: all 0.3s ease;
}

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

/* Hover con brillo */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(13, 92, 99, 0.4);
}

/* Hover con deslizamiento */
.hover-slide {
  position: relative;
  overflow: hidden;
}

.hover-slide::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;
}

.hover-slide:hover::before {
  left: 100%;
}

/* ========================================
   EFECTOS DE FOCUS
   ======================================== */

/* Focus con anillo */
.focus-ring {
  transition: all 0.3s ease;
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.25);
  transform: scale(1.02);
}

/* Focus con borde animado */
.focus-border {
  position: relative;
  transition: all 0.3s ease;
}

.focus-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.focus-border:focus::after {
  width: 100%;
}

/* ========================================
   EFECTOS DE CARGA
   ======================================== */

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Shimmer effect */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ========================================
   EFECTOS DE PARTÍCULAS
   ======================================== */

/* Efecto de partículas en botones */
.btn-particle {
  position: relative;
  overflow: hidden;
}

.btn-particle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-particle:active::before {
  width: 300px;
  height: 300px;
}

/* ========================================
   EFECTOS DE TEXTO
   ======================================== */

/* Texto con efecto de máquina de escribir */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  animation: typewriter 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

/* Texto con efecto de fade in */
.fade-in-text {
  opacity: 0;
  animation: fadeInText 1s ease-in-out forwards;
}

@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

/* ========================================
   EFECTOS DE FONDO
   ======================================== */

/* Patrón de puntos */
.bg-dots {
  background-image: radial-gradient(circle, rgba(13, 92, 99, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Patrón de líneas */
.bg-lines {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(13, 92, 99, 0.05) 10px,
    rgba(13, 92, 99, 0.05) 20px
  );
}

/* Patrón de cuadrícula */
.bg-grid {
  background-image: 
    linear-gradient(rgba(13, 92, 99, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 92, 99, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ========================================
   EFECTOS DE SCROLL
   ======================================== */

/* Scroll personalizado */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--background-light);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: var(--background-light);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ========================================
   EFECTOS DE MODAL Y OVERLAY
   ======================================== */

/* Overlay con blur */
.overlay-blur {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Modal con efecto de escala */
.modal-scale {
  animation: modalScaleIn 0.3s ease-out;
}

@keyframes modalScaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   EFECTOS DE NOTIFICACIÓN
   ======================================== */

/* Notificación con slide */
.notification-slide {
  animation: slideInRight 0.5s ease-out;
}

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

/* Notificación con bounce */
.notification-bounce {
  animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   EFECTOS DE TABLA
   ======================================== */

/* Tabla con hover en filas */
.table-hover-effect tbody tr {
  transition: all 0.2s ease;
}

.table-hover-effect tbody tr:hover {
  background: linear-gradient(90deg, rgba(13, 92, 99, 0.05) 0%, rgba(13, 92, 99, 0.1) 100%);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   EFECTOS DE CARD
   ======================================== */

/* Card con efecto de flip */
.card-flip {
  perspective: 1000px;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front, .card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-flip-back {
  transform: rotateY(180deg);
}

/* ========================================
   UTILIDADES DE EFECTOS
   ======================================== */

/* Opacidad */
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Blur */
.blur-1 { filter: blur(1px); }
.blur-2 { filter: blur(2px); }
.blur-3 { filter: blur(3px); }
.blur-4 { filter: blur(4px); }
.blur-5 { filter: blur(5px); }

/* Brightness */
.brightness-50 { filter: brightness(0.5); }
.brightness-75 { filter: brightness(0.75); }
.brightness-100 { filter: brightness(1); }
.brightness-125 { filter: brightness(1.25); }
.brightness-150 { filter: brightness(1.5); }

/* Contrast */
.contrast-50 { filter: contrast(0.5); }
.contrast-75 { filter: contrast(0.75); }
.contrast-100 { filter: contrast(1); }
.contrast-125 { filter: contrast(1.25); }
.contrast-150 { filter: contrast(1.5); }

/* Saturate */
.saturate-0 { filter: saturate(0); }
.saturate-50 { filter: saturate(0.5); }
.saturate-100 { filter: saturate(1); }
.saturate-150 { filter: saturate(1.5); }
.saturate-200 { filter: saturate(2); }
