/* Estilos para la sección de Beneficios */
.benefits-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* Elementos de fondo sutiles */
.benefits-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #2fff00, #d4bd0d);
  top: -150px;
  left: -100px;
  animation: float 15s ease-in-out infinite;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #2fff00, #d4bd0d);
  bottom: -100px;
  right: -100px;
  animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(30px) scale(1.05);
  }
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Encabezado */
.benefits-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.benefits-header h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.benefits-header p {
  font-size: 1.1rem;
  color: rgb(255, 255, 255);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.header-accent {
  width: 80px;
  height: 3px;
  background: #2fff00;
  margin: 20px auto 0;
  position: relative;
}

/* Grid de beneficios */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

/* Tarjetas de beneficios */
.benefit-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  height: 250px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease-out;
  cursor: default;
}

.benefit-content {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.benefit-front,
.benefit-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.benefit-back {
  transform: rotateY(180deg);
  background-color: #111;
  text-align: center;
}

.benefit-card:hover .benefit-content {
  transform: rotateY(180deg);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2fff00, #d4bd0d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #000;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(0, 255, 157, 0.2);
}

.benefit-card h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.benefit-back p {
  font-size: 0.95rem;
  color: rgb(255, 255, 255);
  line-height: 1.5;
}

.card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.card-progress span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2fff00, #d4bd0d);
  transition: width 0.3s ease;
}

.benefit-card:hover .card-progress span {
  width: 100%;
}

/* Estadísticas */
.benefits-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .stats-item {
    text-align: center;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .stats-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 157, 0.1);
  }
  
  .stats-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2fff00, #d4bd0d);
  }
  
  .stat-icon {
    font-size: 28px;
    color: #2fff00;
    margin-bottom: 15px;
  }
  
  .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
  }
  
  .stats-number::after {
    content: '+';
    font-size: 1.5rem;
    position: absolute;
    top: 5px;
    right: -15px;
    color: #2fff00;
  }
  
  /* Quitar el signo + para porcentajes */
  .stats-item:first-child .stats-number::after {
    content: '+';
  }
  
  .stat-label {
    font-size: 1rem;
    color: #2fff00;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .stat-description {
    font-size: 0.9rem;
    color: rgb(255, 255, 255);
    line-height: 1.5;
  }

/* CTA */
.benefits-cta {
  text-align: center;
  padding: 40px 30px;
  background: rgb(255, 255, 255);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefits-cta p {
  font-size: 1.35rem;
  color: rgb(0, 0, 0);
  margin-bottom: 25px;
  font-weight: 600;
}

.btn-benefits {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #2fff00, #74d40d);
  color: #000;
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.35s ease-out;
}

.btn-benefits:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(111, 255, 0, 0.316);
  background: #000;
  color: #fff;
}

.btn-benefits i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-benefits:hover i {
  transform: translateX(5px);
}

/* ===== ESTILOS RESPONSIVOS MEJORADOS ===== */

/* Pantallas grandes (1400px y superiores) */
@media (min-width: 1400px) {
  .benefits-container {
    max-width: 1320px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .benefits-header h2 {
    font-size: 3rem;
  }
  
  .benefits-header p {
    font-size: 1.25rem;
    max-width: 800px;
  }
  
  .benefit-card {
    height: 280px;
  }
  
  .benefit-icon {
    width: 85px;
    height: 85px;
    font-size: 34px;
  }
  
  .benefit-card h3 {
    font-size: 1.6rem;
  }
  
  .benefit-back p {
    font-size: 1.05rem;
  }
  
  .benefits-stats {
    padding: 50px 30px;
    gap: 30px;
  }
  
  .stats-number {
    font-size: 3rem;
  }
  
  .stat-label {
    font-size: 1.1rem;
  }
  
  .stat-description {
    font-size: 1rem;
  }
}

/* Pantallas de escritorio (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
  .benefits-container {
    max-width: 1140px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  
  .benefits-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Pantallas de laptop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .benefits-container {
    max-width: 960px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .benefits-header h2 {
    font-size: 2.5rem;
  }
  
  .benefits-header p {
    font-size: 1.15rem;
  }
  
  .benefits-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 35px 25px;
  }
  
  .stats-item {
    padding: 25px 20px;
  }
  
  .stats-number {
    font-size: 2.5rem;
  }
  
  .stat-icon {
    font-size: 26px;
  }
  
  .benefit-card {
    height: 260px;
  }
}

/* Pantallas de tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .benefits-section {
    padding: 70px 0;
  }
  
  .benefits-container {
    max-width: 720px;
  }
  
  .benefits-header h2 {
    font-size: 2.2rem;
  }
  
  .benefits-header p {
    font-size: 1.1rem;
    max-width: 600px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .benefit-card {
    height: 240px;
  }
  
  .benefit-icon {
    width: 65px;
    height: 65px;
    font-size: 26px;
  }
  
  .benefit-card h3 {
    font-size: 1.3rem;
  }
  
  .benefit-back p {
    font-size: 0.95rem;
  }
  
  .benefits-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 20px;
  }
  
  .stats-item {
    padding: 20px 15px;
  }
  
  .stats-number {
    font-size: 2.3rem;
  }
  
  .stat-label {
    font-size: 0.95rem;
  }
  
  .stat-description {
    font-size: 0.85rem;
  }
  
  .benefits-cta {
    padding: 35px 25px;
  }
  
  .benefits-cta p {
    font-size: 1.15rem;
  }
  
  .btn-benefits {
    padding: 12px 28px;
  }
}

/* Pantallas de móvil grandes (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .benefits-section {
    padding: 60px 0;
  }
  
  .benefits-container {
    max-width: 540px;
  }
  
  .benefits-header {
    margin-bottom: 40px;
  }
  
  .benefits-header h2 {
    font-size: 2rem;
  }
  
  .benefits-header p {
    font-size: 1rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .benefit-card {
    height: 220px;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .benefit-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .benefit-card h3 {
    font-size: 1.25rem;
  }
  
  .benefit-back p {
    font-size: 0.9rem;
    padding: 0 10px;
  }
  
  .benefits-stats {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px 20px;
    margin-bottom: 40px;
  }
  
  .stats-item {
    padding: 20px 15px;
    max-width: 400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon number"
      "icon label"
      "description description";
    text-align: left;
    gap: 5px 15px;
    align-items: center;
  }
  
  .stat-icon {
    grid-area: icon;
    font-size: 32px;
    margin-bottom: 0;
  }
  
  .stats-number {
    grid-area: number;
    font-size: 2.2rem;
    margin-bottom: 0;
    text-align: left;
  }
  
  .stat-label {
    grid-area: label;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-align: left;
  }
  
  .stat-description {
    grid-area: description;
    font-size: 0.85rem;
    text-align: left;
    margin-top: 5px;
  }
  
  .benefits-cta {
    padding: 30px 20px;
  }
  
  .benefits-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }
  
  .btn-benefits {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
}

/* Pantallas de móvil pequeñas (hasta 575px) */
@media (max-width: 575px) {
  .benefits-section {
    padding: 50px 0;
  }
  
  .benefits-container {
    padding: 0 15px;
  }
  
  .benefits-header {
    margin-bottom: 35px;
  }
  
  .benefits-header h2 {
    font-size: 1.8rem;
  }
  
  .benefits-header p {
    font-size: 0.95rem;
  }
  
  .header-accent {
    width: 60px;
    height: 3px;
    margin-top: 15px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 35px;
  }
  
  .benefit-card {
    height: 200px;
  }
  
  .benefit-front,
  .benefit-back {
    padding: 20px 15px;
  }
  
  .benefit-icon {
    width: 55px;
    height: 55px;
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .benefit-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }
  
  .benefit-back p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .benefits-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 15px;
    margin-bottom: 35px;
  }
  
  .stats-item {
    padding: 15px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon number"
      "icon label"
      "description description";
    text-align: left;
    gap: 3px 12px;
    align-items: center;
  }
  
  .stat-icon {
    grid-area: icon;
    font-size: 28px;
    margin-bottom: 0;
  }
  
  .stats-number {
    grid-area: number;
    font-size: 1.8rem;
    margin-bottom: 0;
    text-align: left;
  }
  
  .stat-number::after {
    font-size: 1.2rem;
    right: -12px;
    top: 3px;
  }
  
  .stat-label {
    grid-area: label;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-align: left;
  }
  
  .stat-description {
    grid-area: description;
    font-size: 0.8rem;
    text-align: left;
    margin-top: 5px;
  }
  
  .benefits-cta {
    padding: 25px 15px;
  }
  
  .benefits-cta p {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  
  .btn-benefits {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
  
  /* Ajustes para pantallas muy pequeñas */
  @media (max-width: 360px) {
    .benefits-header h2 {
      font-size: 1.6rem;
    }
    
    .benefit-card {
      height: 190px;
    }
    
    .benefit-icon {
      width: 50px;
      height: 50px;
      font-size: 20px;
    }
    
    .benefit-card h3 {
      font-size: 1.1rem;
    }
    
    .stats-number {
      font-size: 1.6rem;
    }
    
    .stat-icon {
      font-size: 24px;
    }
  }
}

/* Ajustes para orientación horizontal en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .benefits-section {
    padding: 40px 0;
  }
  
  .benefits-header {
    margin-bottom: 30px;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 30px;
  }
  
  .benefit-card {
    height: 180px;
  }
  
  .benefit-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .benefits-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Ajustes para pantallas de alta densidad de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .benefit-icon::before {
    filter: blur(8px);
  }
  
  .header-accent {
    height: 2px;
  }
  
  .header-accent::before,
  .header-accent::after {
    height: 2px;
  }
  
  .card-progress {
    height: 2px;
  }
  
  .stats-item::before {
    width: 3px;
  }
}

/* Ajustes para modo oscuro del sistema */
@media (prefers-color-scheme: dark) {
  .benefits-section {
    background-color: #050505;
  }
  
  .benefit-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .benefit-back {
    background-color: #0a0a0a;
  }
}

/* Ajustes para preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .benefit-card,
  .benefit-content,
  .benefit-icon,
  .btn-benefits,
  .card-progress span,
  .stat-item {
    transition: none !important;
    animation: none !important;
  }
  
  .bg-circle {
    animation: none !important;
  }
  
  .header-accent::before,
  .header-accent::after {
    animation: none !important;
  }
  
  .cta-accent {
    animation: none !important;
  }
}

