/* ===== ESTILOS PARA CAJAS DESTACADAS ===== */

/* Variables */
:root {
  --primary-blue: #184a9a;
  --secondary-blue: #0dcaf0;
  --white: #ffffff;
  --dark-bg: #1e1e1e;
  --box-shadow-light: 0 20px 40px rgba(0, 0, 0, 0.05);
  --box-shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.2);
  --transition-base: all 0.3s ease;
}

/* Caja destacada principal */
.featured-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Soporte para Safari */
  border-radius: 24px;
  padding: 50px 30px;
  margin-top: 50px;
  box-shadow: var(--box-shadow-light);
  position: relative;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-base);
  overflow: hidden;
}

.featured-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(24, 74, 154, 0.02), rgba(13, 202, 240, 0.02));
  z-index: -1;
  opacity: 0;
  transition: var(--transition-base);
}

.featured-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.featured-box:hover::before {
  opacity: 1;
}

/* Título destacado */
.featured-title {
  position: relative;
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-blue);
  transition: var(--transition-base);
}

.featured-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 2px;
  transition: var(--transition-base);
}

.featured-box:hover .featured-title::after {
  width: 120px;
  background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
}

/* Modo oscuro */
.dark-mode .featured-box {
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--box-shadow-dark);
}

.dark-mode .featured-title {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Efecto de borde sutil */
.featured-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(24, 74, 154, 0.3), rgba(13, 202, 240, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-base);
}

.featured-box:hover::after {
  opacity: 1;
}

/* Responsive */
@media (max-width: 991.98px) {
  .featured-box {
    padding: 40px 25px;
    margin-top: 40px;
  }
  
  .featured-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .featured-title::after {
    bottom: -12px;
    height: 3px;
  }
}

@media (max-width: 767.98px) {
  .featured-box {
    padding: 30px 20px;
    margin-top: 30px;
    border-radius: 16px;
  }
  
  .featured-title {
    font-size: 22px;
    margin-bottom: 25px;
  }
  
  .featured-title::after {
    width: 60px;
    height: 2px;
    bottom: -10px;
  }
  
  .featured-box:hover .featured-title::after {
    width: 80px;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-box {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

/* Estilos para el texto dentro de feature-highlight */
.feature-highlight h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: var(--primary-blue);
}

.feature-highlight p {
  font-size: 14px;
  color: #6c757d;
  text-align: center;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Modo oscuro para el texto */
.dark-mode .feature-highlight p {
  color: #adb5bd;
}

/* Animación de pulso para iconos */
@keyframes pulse-icon {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Estilos para los elementos internos de la caja de características */
.feature-highlight {
  background: rgba(255, 255, 255, 0.8);
  padding: 30px;
  border-radius: 20px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-highlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: white;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-highlight:hover .feature-icon-wrapper {
  transform: rotate(10deg) scale(1.1);
}

.feature-icon-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: rgba(24, 74, 154, 0.2);
  border-radius: 22px;
  z-index: -1;
  animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.feature-highlight h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-blue);
}

.feature-highlight p {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Modo oscuro */
.dark-mode .feature-highlight {
  background: rgba(40, 40, 40, 0.8);
}

.dark-mode .feature-highlight h5 {
  color: #fff;
}

.dark-mode .feature-highlight p {
  color: #b0b0b0;
}

/* Efecto de brillo al pasar el mouse */
.feature-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: var(--transition-base);
  z-index: -1;
  border-radius: 20px;
}

.feature-highlight:hover::after {
  opacity: 1;
}

/* Ajustes responsivos adicionales */
@media (max-width: 991.98px) {
  .feature-highlight {
    padding: 25px 20px;
  }
  
  .feature-icon-wrapper {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}

@media (max-width: 767.98px) {
  .feature-highlight {
    margin-bottom: 20px;
  }
  
  .feature-highlight h5 {
    font-size: 16px;
  }
  
  .feature-highlight p {
    font-size: 13px;
  }
}
