/* Custom Styles for Microfal Paraguay */

/* Colores de Marca Oficial Microfal */
:root {
  --microfal-azul-oscuro: #005CA9;
  --microfal-azul-claro: #56BBE9;
  --microfal-amarillo: #F4D05C;
  --microfal-azul-hover: #004A8A;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Hero Section con colores Microfal */
.hero-gradient {
  background: linear-gradient(135deg, var(--microfal-azul-oscuro) 0%, var(--microfal-azul-claro) 100%);
}

/* Service Cards Hover Effect */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 92, 169, 0.15), 0 10px 10px -5px rgba(0, 92, 169, 0.1);
}

/* Brand Logos */
.brand-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Button Animations */
.btn-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Dropdown Menu Transitions */
.group:hover .group-hover\:opacity-100 {
  transition-delay: 0.1s;
}

/* Lazy Loading Placeholder */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

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

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbar con colores Microfal */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--microfal-azul-oscuro);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--microfal-azul-hover);
}

/* Print Styles */
@media print {
  header, footer, .no-print {
    display: none !important;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  input, textarea, select {
    font-size: 16px; /* Prevent zoom on focus */
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles for Accessibility con colores Microfal */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--microfal-azul-claro);
  outline-offset: 2px;
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 1000px;
}

/* Blog Card Styles */
.blog-card {
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 92, 169, 0.1);
}

.blog-card img {
  transition: transform 0.3s ease;
}

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

/* Performance Optimization */
.will-change-transform {
  will-change: transform;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
