/* ABOUT SECTION */
.about {
    background: var(--blue-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(184, 251, 60, 0.1) 0%, transparent 50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    position: relative;
    transition: var(--transition);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--card-purple);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px; /* AÑADIDO: Altura mínima para consistencia */
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: var(--transition-slow);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    background: rgba(120, 40, 200, 0.5);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(184, 251, 60, 0.4);
}

/* ===== ESTILOS PARA CONTADORES ANIMADOS ===== */

/* Contenedor para número y símbolo - MODIFICADO */
.stat-number-wrapper {
    position: relative;
    display: block;
    text-align: center;
    margin-bottom: 5px;
    width: 100%;
}

/* Número principal - MODIFICADO */
.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--accent);
    display: inline-block;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(184, 251, 60, 0.3);
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
    min-width: 100px; /* MODIFICADO: Más espacio para 1000+ */
    text-align: center;
}

/* Símbolo (+, %) - ELIMINADO (ya no se usa) */
.stat-symbol {
    display: none; /* Los símbolos ahora están incluidos en el número */
}

/* Clase para cuando está siendo animado */
.stat-number.counting {
    color: #B8FB3C;
}

/* Efecto cuando se completa la animación */
.stat-number.completed {
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(184, 251, 60, 0.6);
}

/* Animación de pulso al completar */
@keyframes counterPulse {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 0 rgba(184, 251, 60, 0);
    }
    50% { 
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(184, 251, 60, 0.8);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 10px rgba(184, 251, 60, 0.4);
    }
}

/* Efecto hover en los items */
.stat-item:hover .stat-number.completed {
    animation: counterPulse 0.8s ease;
}

.stat-text {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

/* Ajustes responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        min-height: 140px; /* Ajustado para móvil */
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
        min-width: 80px;
    }
}

/* Ajustes específicos para cada número */
.stat-item:nth-child(1) .stat-number { min-width: 110px; } /* Para 1000+ */
.stat-item:nth-child(2) .stat-number { min-width: 70px; }  /* Para 10+ */
.stat-item:nth-child(3) .stat-number { min-width: 70px; }  /* Para 50+ */
.stat-item:nth-child(4) .stat-number { min-width: 70px; }  /* Para 98% */