/* ========== HERO INNOVADOR ========== */
.hero-innovative {
  background: #053F5C;
}

.hero-bg-layer {
  background: linear-gradient(135deg, #053F5C 0%, #0a2a3a 50%, #053F5C 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-pulse-slow {
  animation: pulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.delay-1000 {
  animation-delay: 1s;
}

/* Glass Card Mejorada para contraste perfecto en Mobile y Desktop */
.glass-card {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  border-style: solid !important;
  color: #ffffff !important;
}

.glass-card p, 
.glass-card li, 
.glass-card span {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F6B128;
  color: #452a22;
  padding: 1rem 1.75rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(246, 177, 40, 0.35);
}

.btn-primary:hover {
  background: #f6e428;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(246, 177, 40, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: white;
  padding: 1rem 1.75rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  border: 1.5px solid rgba(255,255,255,0.6) !important;
  border-style: solid !important;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  background: #71A3CA;
  color: white;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #F6B128;
  color: #452a22;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(246, 177, 40, 0.3);
}

/* ========== HERO IMAGE ========== */
.hero-image-wrapper {
  position: relative;
  max-width: 520px;
  margin-left: auto;
}

.hero-image-frame {
  aspect-ratio: 4 / 5;
  max-height: 560px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ========== BENTO GRID ========== */
.bento-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1.5px solid #71A3CA !important;
  border-style: solid !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #F6B128 !important;
}

.icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1.5px solid #053F5C !important;
  border-style: solid !important;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F6B128, #429EBD);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #429EBD !important;
}

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

.service-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #fff8e7, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(246, 177, 40, 0.15);
  transition: all 0.3s ease;
}

.service-icon i {
  font-size: 1.75rem;
  color: #F6B128;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: #F6B128;
  transform: scale(1.1);
}

.service-card:hover .service-icon i {
  color: #452a22;
}

/* ========== STATS ========== */
.stat-item {
  transition: transform 0.3s ease;
}

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

.counter {
  background: linear-gradient(180deg, #fff 0%, #F6B128 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== CTA CARD ========== */
.cta-card {
  border: 1.5px solid #71A3CA !important;
  border-style: solid !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  border-color: #F6B128 !important;
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out both;
}

.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }

/* Responsive */
@media (max-width: 1023px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-image-wrapper {
    max-width: 420px;
    margin: 2rem auto 0;
  }
  
  .hero-image-frame {
    aspect-ratio: 3 / 4;
    max-height: 480px;
  }
}

@media (max-width: 639px) {
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 100%;
  }
}