/* ========================================
   FLYNET HOMEPAGE ENHANCEMENTS
   Estilos personalizados para las mejoras de la página principal
   ======================================== */

/* Variables CSS para consistencia */
:root {
  --brand-blue: #2c5aa0;
  --brand-yellow: #fdd700;
  --brand-pink: #ee5586;
  --brand-green: #28a745;
  --brand-purple: #6f42c1;
  --text-muted: #6c757d;
  --border-radius: 12px;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

/* ========================================
   SECCIÓN SOLUCIONES INTEGRADAS
   ======================================== */

.integrated-solutions {
  position: relative;
  overflow: hidden;
}

.solution-card {
  padding: 2rem;
  border-radius: var(--border-radius);
  height: 100%;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255,255,255,0.1);
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.solution-card.featured {
  border: 2px solid var(--brand-yellow);
  position: relative;
}

.solution-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: var(--brand-yellow);
  color: #000;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: var(--shadow-light);
}

.solution-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.solution-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.solution-features li {
  padding: 0.4rem 0;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.solution-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-green);
  font-weight: bold;
  font-size: 1rem;
}

.solution-ctas {
  margin-top: 1.5rem;
}

.complementary-services {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  min-width: 120px;
  border: 1px solid rgba(255,255,255,0.1);
}

.service-item:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-light);
}

.service-item.featured {
  background: var(--brand-yellow);
  color: #000;
  font-weight: 600;
}

.service-item.featured:hover {
  background: #e6c200;
  color: #000;
}

.service-item i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-item span {
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.2;
}

/* ========================================
   SECCIÓN CASOS POR INDUSTRIA
   ======================================== */

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

.industry-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: var(--border-radius);
  height: 100%;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  border: 1px solid #e9ecef;
}

.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.industry-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.industry-card h5 {
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.industry-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.case-stats {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.stat {
  background: var(--brand-blue);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.industry-features {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
}

.industry-cta-section {
  background: rgba(44, 90, 160, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(44, 90, 160, 0.1);
}

.industry-cta-section h4 {
  color: var(--brand-blue);
  font-weight: 600;
}

/* ========================================
   CTA FINAL
   ======================================== */

.final-cta {
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 90, 160, 0.9) 0%, rgba(238, 85, 134, 0.9) 100%);
  z-index: 1;
}

.final-cta .container {
  position: relative;
  z-index: 2;
}

.cta-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.benefit-item {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.cta-buttons .btn {
  min-width: 180px;
  font-weight: 600;
}

.contact-info {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .solution-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .solution-icon {
    font-size: 2.5rem;
  }
  
  .services-grid {
    justify-content: space-around;
  }
  
  .service-item {
    min-width: 100px;
    padding: 0.8rem;
  }
  
  .service-item i {
    font-size: 1.3rem;
  }
  
  .service-item span {
    font-size: 0.8rem;
  }
  
  .industry-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .industry-icon {
    font-size: 2.5rem;
  }
  
  .case-stats {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  
  .cta-benefits {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .benefit-item {
    font-size: 0.85rem;
  }
  
  .final-cta .col-md-8,
  .final-cta .col-md-4 {
    text-align: center !important;
  }
  
  .cta-buttons .btn {
    min-width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .complementary-services {
    padding: 1.5rem 1rem;
  }
  
  .services-grid {
    gap: 0.5rem;
  }
  
  .service-item {
    min-width: 90px;
    padding: 0.6rem;
  }
  
  .industry-cta-section {
    padding: 1.5rem 1rem;
  }
  
  .industry-cta-section .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */

.solution-card:focus-within,
.industry-card:focus-within,
.service-item:focus {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

.service-item:focus {
  background: rgba(255,255,255,0.2);
}

/* Mejoras para lectores de pantalla */
.solution-badge,
.stat {
  font-weight: 600;
}

/* ========================================
   ANIMACIONES SUAVES
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.solution-card,
.industry-card {
  animation: fadeInUp 0.6s ease-out;
}

.solution-card:nth-child(2) {
  animation-delay: 0.1s;
}

.solution-card:nth-child(3) {
  animation-delay: 0.2s;
}

.industry-card:nth-child(2) {
  animation-delay: 0.1s;
}

.industry-card:nth-child(3) {
  animation-delay: 0.2s;
}

.industry-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* ========================================
   COMPATIBILIDAD CON TEMA ANTLER
   ======================================== */

/* Asegurar que los colores del tema se mantengan */
.solution-card .mergecolor,
.industry-card h5 {
  color: var(--brand-blue) !important;
}

.solution-card .seccolor,
.industry-card p {
  color: var(--text-muted) !important;
}

/* Mantener consistencia con botones del tema */
.solution-ctas .btn,
.industry-cta-section .btn,
.cta-buttons .btn {
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
}

/* Asegurar que los gradientes del tema funcionen */
.total-grad-pink-blue-intense {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-pink) 100%);
}
