@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variables CSS para la nueva paleta de ONE Social */
:root {
    /* Colores ONE Social */
    --one-cream: #F0EAE9;
    --one-orange-primary: #FF5600;
    --one-orange-secondary: #FF3D03;
    --one-pink-primary: #EF2686;
    --one-pink-light: #FF6075;
    --one-pink-lighter: #FF929E;
    --one-purple-dark: #400C2A;
    --one-purple-medium: #7B3B8B;
    --one-purple-light: #CA66FB;
    --one-white: #FFFFFF;
    --one-text-dark: #2D2D2D;
    --one-text-light: #6B7280;
    
    /* Colores de sistema actualizados */
    --primary-color: var(--one-orange-primary);
    --primary-light: rgba(255, 86, 0, 0.1);
    --primary-dark: var(--one-orange-secondary);
    --secondary-color: var(--one-pink-primary);
    --tertiary-color: var(--one-purple-medium);
    --accent-color: var(--one-pink-light);
    --text-dark: var(--one-text-dark);
    --text-light: var(--one-text-light);
    --text-secondary: #64748b;
    --bg-light: var(--one-cream);
    --bg-white: var(--one-white);
    --border-color: rgba(255, 86, 0, 0.15);
    
    /* Sombras actualizadas */
    --shadow-sm: 0 1px 2px 0 rgba(255, 86, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(255, 86, 0, 0.1), 0 1px 2px 0 rgba(255, 86, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(255, 86, 0, 0.1), 0 2px 4px -1px rgba(255, 86, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(255, 86, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(255, 86, 0, 0.2);
    
    /* Radios */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Layout */
    --sidebar-width: 250px;
    --header-height: 64px;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--one-cream) 0%, var(--one-white) 100%);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--one-white) 0%, var(--one-cream) 100%);
    border-right: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.logo-container {
    padding: 2rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--one-orange-primary), var(--one-pink-primary));
    color: white;
}

.logo-container h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-container h1 span {
    color: var(--one-cream);
}

.sidebar-nav {
    padding: 1.5rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav ul li {
    margin-bottom: 0.5rem;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
}

.sidebar-nav ul li a svg {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

.sidebar-nav ul li.active a {
    color: var(--one-orange-primary);
    background: linear-gradient(135deg, var(--primary-light), rgba(239, 38, 134, 0.05));
    font-weight: 600;
    border-left: 4px solid var(--one-orange-primary);
    transform: translateX(4px);
}

.sidebar-nav ul li:not(.active) a:hover {
    background: rgba(255, 86, 0, 0.05);
    color: var(--one-orange-primary);
    transform: translateX(4px);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background: rgba(255, 86, 0, 0.02);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.75rem;
    border: 2px solid var(--one-orange-primary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

/* Header */
.main-header {
    height: var(--header-height);
    background: linear-gradient(135deg, var(--one-white), var(--one-cream));
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 5;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
}

.main-header.expanded {
    left: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#sidebar-toggle {
    background: var(--one-orange-primary);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

#sidebar-toggle:hover {
    background: var(--one-orange-secondary);
    transform: scale(1.05);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filters-container {
    display: flex;
    gap: 1rem;
}

.filter {
    display: flex;
    flex-direction: column;
}

.filter label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.filter select {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.filter select:focus {
    outline: none;
    border-color: var(--one-orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 86, 0, 0.1);
}

.btn-export {
    background: linear-gradient(135deg, var(--one-orange-primary), var(--one-pink-primary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.btn-export svg {
    width: 1rem;
    height: 1rem;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Page Content */
.page-content {
    padding: 2rem;
}

.page-content.hidden {
    display: none;
}

/* Welcome Message */
.welcome-message {
    margin-bottom: 2rem;
}

.welcome-message h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    font-size: 1.1rem;
    color: white;
}

.welcome-message p strong {
    color: var(--one-orange-primary);
    font-weight: 700;
}

/* KPI Cards */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background: var(--one-white);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--one-orange-primary), var(--one-pink-primary), var(--one-purple-light));
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--one-orange-primary);
}

.kpi-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--one-orange-primary), var(--one-pink-primary));
}

.kpi-icon svg {
    color: white;
    width: 1.5rem;
    height: 1.5rem;
}

.kpi-content {
    flex: 1;
}

.kpi-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.kpi-trend svg {
    width: 1rem;
    height: 1rem;
}

.kpi-trend.positive {
    color: var(--one-orange-primary);
}

.kpi-trend.negative {
    color: var(--one-pink-primary);
}

.kpi-trend.neutral {
    color: var(--text-light);
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-wrapper {
    background: var(--one-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.chart-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.chart-wrapper.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--one-cream), var(--one-white));
}

.chart-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.chart-body {
    padding: 1.5rem;
    height: 300px;
    position: relative;
}

/* Section Container */
.section-container {
    background: var(--one-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    overflow: hidden;
}

.section-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--one-orange-primary), var(--one-pink-primary));
    color: white;
}

.section-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-body {
    padding: 2rem;
}

/* Environmental Metrics */
.environmental-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.eco-metric-card {
    background: var(--one-white);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.eco-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.eco-metric-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--one-orange-primary), var(--one-pink-primary));
    color: white;
}

.eco-metric-content {
    text-align: center;
}

.eco-metric-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.eco-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--one-orange-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.prev-value {
    color: var(--text-light);
}

.arrow {
    margin: 0 0.5rem;
    color: var(--one-pink-primary);
}

.current-value {
    color: var(--one-orange-primary);
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--one-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
}

.page-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-container {
    position: relative;
}

.search-container svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 1rem;
    height: 1rem;
}

.search-container input {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: var(--one-orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 86, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--one-orange-primary), var(--one-pink-primary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
}

.btn-primary svg {
    width: 1rem;
    height: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Projects Container */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--one-white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--one-orange-primary);
}

.project-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem;
    /* El gradiente se aplica via style inline desde JS */
}

.project-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.project-category {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
    position: relative;
}

.project-status {
    background: rgba(255, 255, 255, 0.95);
    color: #27ae60;
    padding: 0.4rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
    position: relative;
}

/* Estados específicos */
.project-status.status-en-ejecución {
    background: rgba(39, 174, 96, 0.9);
    color: white;
}

.project-status.status-completado {
    background: rgba(52, 152, 219, 0.9);
    color: white;
}

.project-status.status-en-preparación {
    background: rgba(241, 196, 15, 0.9);
    color: white;
}

.project-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.project-org {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.org-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--one-orange-primary);
}

.project-org span {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.project-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-body {
    padding: 1.5rem;
    flex: 1;
}

.project-card-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.project-card-body p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-details-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.detail-item svg {
    color: var(--one-orange-primary);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.project-metrics {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.metric i {
    color: var(--one-orange-primary);
    width: 1rem;
    height: 1rem;
}

.metric strong {
    color: var(--text-dark);
}

.project-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-view-details {
    background: linear-gradient(135deg, var(--one-orange-primary), var(--one-pink-primary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    box-shadow: var(--shadow);
}

.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-view-details i {
    transition: transform 0.3s ease;
}

.btn-view-details:hover i {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-header {
        left: 0;
    }
    
    .charts-container,
    .kpi-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card-image {
        height: 150px;
    }
}

/* ==============================
   ESTILOS PARA COMPARATIVO
   ============================== */

.project-selector {
    background: var(--one-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.selector-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.selector-controls select {
    flex: 1;
    min-width: 250px;
}

.selector-controls .btn {
    white-space: nowrap;
}

.selected-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.selected-project-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.selected-project-card:hover {
    border-color: var(--one-orange-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.project-info h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.project-info p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.comparison-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--one-orange-primary);
    background: var(--bg-light);
}

.tab-btn.active {
    color: var(--one-orange-primary);
    border-bottom-color: var(--one-orange-primary);
    background: var(--bg-light);
}

.comparison-content {
    background: var(--one-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.comparison-table-container {
    overflow-x: auto;
    max-width: 100%;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: var(--one-white);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table .metric-label {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
    min-width: 200px;
}

.comparison-table td {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comparison-table tr:hover {
    background: var(--bg-light);
}

/* Responsive para comparativo */
@media (max-width: 768px) {
    .selector-controls {
        flex-direction: column;
    }
    
    .selector-controls select {
        min-width: auto;
    }
    
    .selected-projects {
        grid-template-columns: 1fr;
    }
    
    .comparison-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }
    
    .tab-btn.active {
        border-bottom-color: var(--one-orange-primary);
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .comparison-table .metric-label {
        min-width: 150px;
    }
}

/* Environmental Impact Card */
.environmental-impact-card {
    background: var(--one-white);
    color: var(--one-text-dark);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--one-cream);
}

.environmental-impact-card .card-header {
    padding: 2rem;
    border-bottom: 1px solid var(--one-cream);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.earth-day-counter {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--one-cream);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
}

.earth-icon {
    font-size: 2rem;
}

.earth-day-text {
    text-align: left;
}

.earth-day-text .counter {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.earth-day-text .label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.environmental-story {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.story-section {
    background: var(--one-cream);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 86, 0, 0.1);
}

.story-section:hover {
    transform: translateY(-5px);
    background: var(--one-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.story-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.story-icon {
    font-size: 2rem;
}

.story-header h5 {
    font-size: 1.25rem;
    font-weight: 700;
}

.eco-metric {
    text-align: center;
}

.eco-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--one-orange-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.eco-label {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--one-text-dark);
    font-weight: 600;
}

.eco-impact {
    font-size: 0.875rem;
    color: var(--one-text-light);
    font-style: italic;
}

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

.kpi-card,
.chart-wrapper,
.project-card,
.story-section {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }