/* Hero Section Enhancements */
.hero.dark-background {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero.dark-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero.dark-background img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}

.hero.dark-background .container {
  position: relative;
  z-index: 2;
}

.hero.dark-background .hero-tag {
  margin-bottom: 30px;
}

.hero.dark-background .hero-tag .tag-text {
  font-size: 18px;
}

.hero.dark-background .hero-headline {
  font-size: 3.5rem;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero.dark-background .hero-text {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f8f9fa;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero.dark-background .hero-cta {
  justify-content: center;
}

/* Stat Cards - Diseño mejorado */
.hero.dark-background .stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 15px 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero.dark-background .stat-card:hover {
  transform: translateY(-5px);
  background: rgba(22, 71, 189, 0.2);
  box-shadow: 0 8px 20px rgba(22, 71, 189, 0.4);
  border-color: rgba(22, 71, 189, 0.6);
}

.hero.dark-background .stat-card .stat-icon-wrap {
  margin-bottom: 8px;
}

.hero.dark-background .stat-card .stat-icon-wrap i {
  font-size: 1.8rem;
  color: #1647bd;
}

.hero.dark-background .stat-card .stat-info .stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.hero.dark-background .stat-card .stat-info .stat-title {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Service Cards Hover Effect */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(22, 71, 189, 0.4) !important;
}

/* Service Cards Orange Style */
.service-card-orange {
  background: linear-gradient(135deg, #1647bd 0%, #1038a3 100%);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 40px 30px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(22, 71, 189, 0.3);
  transition: transform 0.3s ease;
}

.service-card-orange .icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.service-card-orange .icon-wrapper i {
  font-size: 2.5rem;
  color: white;
}

.service-card-orange h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.service-card-orange p {
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  flex-grow: 1;
  line-height: 1.6;
}

.service-card-orange .btn {
  background: white;
  color: #1647bd;
  text-align: center;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid white;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.service-card-orange .btn:hover {
  background: transparent !important;
  color: white !important;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Enlaces de Interés - Diseño mejorado */
.enlaces-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.enlaces-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(22, 71, 189, 0.2);
  border-color: #1647bd;
}

.enlaces-card .icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1647bd 0%, #1038a3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(22, 71, 189, 0.3);
}

.enlaces-card .icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.enlaces-card h3 {
  color: #1e293b;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enlaces-card p {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.enlaces-card .service-link {
  color: #1647bd;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  justify-content: center;
}

.enlaces-card .service-link:hover {
  color: #1038a3;
  gap: 12px;
}

.enlaces-card .service-link i {
  font-size: 1.1rem;
}

/* Subrayado naranja para título de sección */
.section-title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #1647bd;
  margin: 15px auto 0;
}

/* Team Cards Hover Effect */
/* Nuevo diseño de tarjetas de equipo sin fotos */
.team-card-new {
  background: white;
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.team-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1647bd, #0f2e8a);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.team-card-new:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.team-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #1647bd, #0f2e8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(22, 71, 189, 0.3);
  transition: all 0.4s ease;
  position: relative;
}

.team-card-new:hover .team-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(22, 71, 189, 0.5);
}

.team-icon-wrapper i {
  font-size: 3rem;
  color: white;
  transition: transform 0.4s ease;
}

.team-card-new:hover .team-icon-wrapper i {
  transform: scale(1.1);
}

.member-badge-new {
  display: inline-block;
  background: linear-gradient(90deg, #1647bd, #0f2e8a);
  color: white;
  padding: 6px 20px;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(22, 71, 189, 0.2);
}

.team-card-new h4 {
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.team-card-new:hover h4 {
  color: #1647bd;
}

.member-role {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.team-social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: auto;
}

.team-social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1647bd;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.team-social-links a:hover {
  background: linear-gradient(135deg, #1647bd, #0f2e8a);
  color: white;
  transform: translateY(-3px);
  border-color: #1647bd;
  box-shadow: 0 5px 15px rgba(22, 71, 189, 0.3);
}

/* Estilo para el footer - Desarrollado por BROUTER */
.developed-by {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.developed-by strong {
  color: #1647bd;
  font-weight: 700;
}

/* Buttons Hover Effects */
.btn:hover {
  background: #1038a3 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(22, 71, 189, 0.3);
}

.cta-button:hover,
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

/* Form Message Styles - Hidden by default */
.sent-message,
.error-message,
.loading {
  display: none !important;
}

/* Services Detailed Section Background */
.services-detailed-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-detailed-section .section-title p:first-of-type {
  color: #1647bd;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.services-detailed-section .section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.services-detailed-section .section-title p:last-of-type {
  max-width: 800px;
  margin: 0 auto;
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero.dark-background .hero-headline {
    font-size: 2rem !important;
  }

  .hero.dark-background .hero-text {
    font-size: 1rem !important;
  }

  /* Stat cards más pequeñas en móvil */
  .hero.dark-background .stat-card {
    padding: 10px 8px;
    border-radius: 8px;
  }

  .hero.dark-background .stat-card .stat-icon-wrap {
    margin-bottom: 5px;
  }

  .hero.dark-background .stat-card .stat-icon-wrap i {
    font-size: 1.2rem;
  }

  .hero.dark-background .stat-card .stat-info .stat-value {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }

  .hero.dark-background .stat-card .stat-info .stat-title {
    font-size: 0.6rem;
  }

  .service-card,
  .team-card,
  .team-card-new,
  .service-card-orange,
  .enlaces-card {
    min-height: auto !important;
  }
}

@media (max-width: 576px) {
  /* Stat cards aún más pequeñas en pantallas muy pequeñas */
  .hero.dark-background .stat-card {
    padding: 8px 6px;
  }

  .hero.dark-background .stat-card .stat-icon-wrap i {
    font-size: 1rem;
  }

  .hero.dark-background .stat-card .stat-info .stat-value {
    font-size: 0.8rem;
  }

  .hero.dark-background .stat-card .stat-info .stat-title {
    font-size: 0.55rem;
  }
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

a,
button {
  transition: all 0.3s ease;
}

/* WhatsApp button - Solo icono */
.btn-whatsapp.icon-only {
  padding: 12px;
  min-width: auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-whatsapp.icon-only i {
  font-size: 1.5rem;
  margin: 0;
}

.btn-whatsapp.icon-only span {
  display: none;
}

@media (max-width: 992px) {
  .btn-whatsapp.icon-only {
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .btn-whatsapp.icon-only i {
    font-size: 1.3rem;
  }
}
