/* CSS Personalizado para Osmafremx Trading - Diseño Moderno */

/* Variables CSS para colores corporativos */
:root {
  --primary-blue: #0066CC;
  --primary-orange: #FF6600;
  --dark-gray: #333333;
  --light-gray: #FAFAFA;
  --white: #ffffff;
  --shadow-light: rgba(0, 102, 204, 0.08);
  --shadow-medium: rgba(0, 102, 204, 0.15);
  --shadow-dark: rgba(0, 102, 204, 0.25);
  --glow-blue: rgba(0, 102, 204, 0.4);
  --glow-orange: rgba(255, 102, 0, 0.4);
}

/* Configuración base */
* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-gray);
  background-color: var(--light-gray);
  line-height: 1.6;
}

/* Utilidades personalizadas */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
}

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

.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.btn-primary-custom {
  background: var(--primary-blue);
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: white;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px var(--glow-blue);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg) translateY(100%);
  transition: transform 0.6s ease;
}

.btn-primary-custom:hover {
  background: var(--primary-orange);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px var(--glow-orange), 0 0 15px var(--glow-orange);
  color: white;
}

.btn-primary-custom:hover::after {
  transform: rotate(45deg) translateY(-100%);
}

.btn-secondary-custom {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-secondary-custom::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-blue);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-secondary-custom:hover {
  color: white;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px var(--glow-blue), 0 0 15px var(--glow-blue);
  border-color: transparent;
}

.btn-secondary-custom:hover::after {
  left: 0;
}

/* Efectos Glow para Formularios */
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15), 0 0 15px rgba(0, 102, 204, 0.25) !important;
  transition: all 0.3s ease;
}

/* Navbar moderno */
.navbar-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34, 149, 211, 0.1);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-modern.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px var(--shadow-light);
}

/* Hero section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 149, 211, 0.8) 0%, rgba(246, 162, 40, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

/* Carousel moderno */
.carousel-modern .carousel-item img {
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-modern .carousel-caption {
  bottom: 30%;
  left: 10%;
  right: 10%;
  text-align: left;
}

.carousel-modern .carousel-indicators {
  bottom: 5%;
}

.carousel-modern .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.carousel-modern .carousel-indicators button.active {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
}

/* Secciones */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

/* Cards modernas */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow-light);
  border: 1px solid rgba(34, 149, 211, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--shadow-medium);
  border-color: var(--primary-blue);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 2rem;
}

/* Footer moderno */
.footer-modern {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 0 20px;
}

.footer-modern .footer-logo {
  max-height: 60px;
  margin-bottom: 1rem;
}

.footer-modern .footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer-modern .footer-links a:hover {
  color: var(--primary-orange);
}

.footer-modern .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-modern .social-links a:hover {
  background: var(--primary-orange);
  transform: translateY(-2px);
}

/* Animaciones personalizadas */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .carousel-modern .carousel-caption {
    bottom: 20%;
    left: 5%;
    right: 5%;
  }

  .section-padding {
    padding: 60px 0;
  }
}

/* Utilidades adicionales */
.text-primary-custom {
  color: var(--primary-blue) !important;
}

.text-secondary-custom {
  color: var(--primary-orange) !important;
}

.bg-primary-custom {
  background-color: var(--primary-blue) !important;
}

.bg-secondary-custom {
  background-color: var(--primary-orange) !important;
}

.border-primary-custom {
  border-color: var(--primary-blue) !important;
}

.border-secondary-custom {
  border-color: var(--primary-orange) !important;
}


/* ==========================================================================
   ESTILOS PARA PÁGINAS DE MARCAS Y PRODUCTOS
   ========================================================================== */

/* Brand Cards */
.brand-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

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

.brand-logo-container {
  width: 100%;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: #f9fafb;
  border-radius: 0.75rem;
}

.brand-logo {
  height: 4rem;
  width: auto;
  object-fit: contain;
}

.brand-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.specialty-tag {
  background-color: rgba(34, 149, 211, 0.1);
  color: var(--primary-blue);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-brand:hover {
  background-color: rgba(34, 149, 211, 0.9);
  color: white;
  text-decoration: none;
}

/* Product Cards */
.product-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

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

.product-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-icon i {
  font-size: 1.5rem;
}

/* Category Cards */
.category-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.category-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.category-icon i {
  color: white;
  font-size: 1.25rem;
}

/* Industry Cards */
.industry-card {
  text-align: center;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 0.75rem;
  transition: background-color 0.3s ease;
}

.industry-card:hover {
  background-color: rgba(34, 149, 211, 0.05);
}

.industry-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.industry-icon i {
  color: white;
  font-size: 1.5rem;
}

/* Advantage Cards */
.advantage-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.advantage-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.advantage-icon i {
  color: white;
  font-size: 1.5rem;
}

/* Service Cards - Actualización */
.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  transition: all 0.3s ease;
}

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

.service-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon i {
  color: white;
  font-size: 1.5rem;
}

.btn-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-service:hover {
  background-color: rgba(34, 149, 211, 0.9);
  color: white;
  text-decoration: none;
}

/* Special styling for FESTO brand color */
.text-festo-blue {
  color: #0066CC;
}

.bg-festo-blue {
  background-color: #0066CC;
}

/* Hover effects for brand logos */
.brand-card:hover .brand-logo {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .brand-card,
  .product-card,
  .category-card,
  .industry-card,
  .advantage-card,
  .service-card {
    padding: 1rem;
  }

  .brand-logo-container {
    height: 5rem;
  }

  .brand-logo {
    height: 3rem;
  }

  .product-icon,
  .category-icon,
  .industry-icon,
  .advantage-icon,
  .service-icon {
    width: 3rem;
    height: 3rem;
  }

  .product-icon i,
  .advantage-icon i,
  .service-icon i {
    font-size: 1.25rem;
  }

  .category-icon i,
  .industry-icon i {
    font-size: 1rem;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1030;
  transition: 0.2s ease-in-out;
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.whatsapp-float .material-icons {
  color: #FFFFFF;
  font-size: 1.5rem;
}

/* ===== EFECTOS TECH-FOCUSED ===== */

/* Fondo de cuadrícula para secciones */
.section-padding {
  padding: 4rem 0;
  position: relative;
}

.section-padding::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(90deg, rgba(8, 41, 118, 0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 41, 118, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Secciones con efecto de enfoque flotante */
.section-focus {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.section-focus::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(8, 41, 118, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -50px;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.section-focus::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(237, 115, 15, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
  animation: float 8s ease-in-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}

/* Animación flotante */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(30px);
  }
}

/* Tarjetas mejoradas */
.service-card {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow-light);
  border: 1px solid rgba(8, 41, 118, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(8, 41, 118, 0.15), 0 0 20px rgba(8, 41, 118, 0.05);
  border-color: rgba(8, 41, 118, 0.15);
}

.service-card .service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-orange);
}

/* Botones con efecto mejorado */
.btn-primary-custom {
  position: relative;
  overflow: hidden;
}

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

.btn-primary-custom:hover::before {
  width: 300px;
  height: 300px;
}

/* Texto con gradiente */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards con efecto glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(8, 41, 118, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-blue);
  box-shadow: 0 8px 32px rgba(8, 41, 118, 0.1);
}

/* Líneas decorativas */
.divider-line {
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange), transparent);
  margin: 2rem 0;
}

/* Badges modernas */
.badge-modern {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.badge-modern:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(8, 41, 118, 0.3);
}

/* Tablas estilizadas */
.table-modern {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-modern thead {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
  color: white;
}

.table-modern th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.table-modern td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.table-modern tbody tr:hover {
  background: rgba(8, 41, 118, 0.05);
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}