.wp-block-gutenberg-test-statistics {
    padding: calc(var(--wp--custom--spacing--xl) * 2) 0;
}

.wp-block-gutenberg-test-statistics.background-gray {
    background-color: var(--wp--preset--color--gray);
}

.wp-block-gutenberg-test-statistics.background-white {
    background-color: var(--wp--preset--color--white);
}

.wp-block-gutenberg-test-statistics .container {
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
    padding: 0 var(--wp--style--block-gap);
}

.wp-block-gutenberg-test-statistics .header {
    text-align: center;
    margin-bottom: var(--wp--custom--spacing--xl);
}

.wp-block-gutenberg-test-statistics .header h2 {
    color: var(--wp--preset--color--primary);
    font-size: 2.5rem;
    margin-bottom: var(--wp--style--block-gap);
}

.wp-block-gutenberg-test-statistics .header p {
    font-size: 1.125rem;
    color: rgba(0, 0, 0, 0.7);
    max-width: 800px;
    margin: 0 auto;
}

.wp-block-gutenberg-test-statistics .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--wp--custom--spacing--lg);
}

@media (max-width: 992px) {
    .wp-block-gutenberg-test-statistics .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .wp-block-gutenberg-test-statistics .stats-grid {
        grid-template-columns: 1fr;
    }

    .wp-block-gutenberg-test-statistics .header h2 {
        font-size: 2rem;
    }
}

.wp-block-gutenberg-test-statistics .stat-card {
    text-align: center;
    padding: var(--wp--custom--spacing--lg);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.wp-block-gutenberg-test-statistics .stat-card.highlighted {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wp-block-gutenberg-test-statistics .stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--wp--preset--font-family--heading);
    margin-bottom: var(--wp--custom--spacing--sm);
}

.wp-block-gutenberg-test-statistics .stat-number.highlighted {
    color: var(--wp--preset--color--white);
}

.wp-block-gutenberg-test-statistics .stat-number:not(.highlighted) {
    color: var(--wp--preset--color--primary);
}

.wp-block-gutenberg-test-statistics .stat-label {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar delay a cada estadística */
.wp-block-gutenberg-test-statistics .stat-card:nth-child(1) { animation-delay: 0.1s; }
.wp-block-gutenberg-test-statistics .stat-card:nth-child(2) { animation-delay: 0.2s; }
.wp-block-gutenberg-test-statistics .stat-card:nth-child(3) { animation-delay: 0.3s; }
.wp-block-gutenberg-test-statistics .stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Editor styles */
.block-editor-block-list__block .wp-block-gutenberg-test-statistics .stat-card {
    opacity: 1;
    transform: none;
    animation: none;
}

.wp-block-gutenberg-test-statistics [data-rich-text-placeholder]::after {
    opacity: 0.5;
}