.biocarbon-stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.crd.cont-1 {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.crd.cont-1:hover {
    transform: translateY(-5px);
}

.stat-title {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.title-est {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: #2c5282;
}

.biocarbon-initiatives-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.initiatives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.initiative-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.initiative-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.initiative-item a:hover {
    color: #3498db;
}

.biocarbon-error {
    color: #ff0000;
    padding: 10px;
    border: 1px solid #ff0000;
    margin: 10px 0;
}

/* Mantener las clases específicas por compatibilidad */
.title-est-1h, .title-est-2, .title-est-3, .title-est-4 {
    font-family: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .crd.cont-1 {
        padding: 1.5rem;
    }
    
    .title-est {
        font-size: 2rem;
    }
}

.biocarbon-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    background-color: #55B7E5;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-content {
    flex-grow: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748B;
    font-size: 1rem;
    line-height: 1.5;
}

.stat-sublabel {
    color: #55B7E5;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .biocarbon-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

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

.stat-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Mantener compatibilidad con clases antiguas */
.title-est-1h, .title-est-2, .title-est-3, .title-est-4 {
    font-family: inherit;
}

.biocarbon-stat-number h1 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.biocarbon-stat-number .unit {
    font-size: 0.6em;
    display: block;
    margin-top: 0.2em;
    font-weight: normal;
}

/* Indicador de carga sutil */
[id^="stats-"].loading {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* ========================================
   ESTILOS ESPECÍFICOS PARA INICIATIVAS
   ======================================== */

.biocarbon-initiative-item {
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.biocarbon-initiative-item:hover {
    background: #ffffff;
    border-color: #55B7E5;
    box-shadow: 0 4px 12px rgba(85, 183, 229, 0.15);
    transform: translateY(-2px);
}

.biocarbon-initiative-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #2C3E50;
    transition: color 0.3s ease;
}

.biocarbon-initiative-link:hover {
    color: #55B7E5;
}

.biocarbon-initiative-name {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

.biocarbon-initiative-arrow {
    color: #55B7E5;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.biocarbon-initiative-link:hover .biocarbon-initiative-arrow {
    transform: translateX(4px);
}

.biocarbon-initiatives-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* Responsive para iniciativas */
@media (max-width: 768px) {
    .biocarbon-initiative-link {
        padding: 0.875rem 1rem;
    }
    
    .biocarbon-initiative-name {
        font-size: 0.9rem;
    }
} 