 /* CSS Variables - Sistema de Colores Eco-Friendly */
        :root {
            /* Colores Primarios */
            --primary-700: #2D5016;
            --primary-500: #4A7C59;
            --primary-100: #E8F0E8;
            
            /* Colores Neutrales */
            --neutral-900: #362F24;
            --neutral-600: #7A6A53;
            --neutral-100: #F0EDE6;
            --neutral-50: #FAFAF0;
            
            /* Colores de Superficie */
            --bg-page: #F5F5DC;
            --bg-surface: #FAFAF0;
            --bg-card: #FFFFFF;
            
            /* Colores de Acento */
            --accent-earth-500: #D4A574;
            --accent-water-500: #5F9EA0;
            --accent-success: #4A7C59;
            --accent-warning: #C19A6B;
            --accent-error: #B34040;
            
            /* Tipografía */
            --font-family: 'Poppins', sans-serif;
            --font-size-xs: 12px;
            --font-size-sm: 14px;
            --font-size-base: 16px;
            --font-size-lg: 20px;
            --font-size-xl: 24px;
            --font-size-2xl: 32px;
            
            /* Espaciado */
            --space-xs: 4px;
            --space-sm: 8px;
            --space-md: 16px;
            --space-lg: 24px;
            --space-xl: 32px;
            --space-xxl: 48px;
            --space-xxxl: 64px;
            
            /* Bordes y Sombras */
            --border-radius: 12px;
            --border-radius-full: 99px;
            --shadow-card: 0 4px 12px rgba(54, 47, 36, 0.08);
            --shadow-card-hover: 0 8px 24px rgba(54, 47, 36, 0.12);
            --shadow-focus: 0 0 0 3px rgba(74, 124, 89, 0.2);
        }

        /* Reset y Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-family);
            font-size: var(--font-size-base);
            line-height: 1.6;
            color: var(--neutral-900);
            background-color: var(--bg-page);
            overflow-x: hidden;
        }

        /* Layout Principal */
        .app-container {
            max-width: 1200px;
            margin: 0 auto;
            min-height: 100vh;
        }

        .header {
            background-color: var(--bg-surface);
            padding: var(--space-lg) var(--space-md);
            box-shadow: var(--shadow-card);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header h1 {
            font-size: var(--font-size-xl);
            font-weight: 700;
            color: var(--primary-700);
            text-align: center;
            margin-bottom: var(--space-md);
        }

        .header .subtitle {
            text-align: center;
            color: var(--neutral-600);
            font-size: var(--font-size-sm);
        }

        /* Navegación por Tabs */
        .nav-tabs {
            display: flex;
            background-color: var(--bg-surface);
            border-radius: var(--border-radius);
            padding: var(--space-xs);
            margin-top: var(--space-lg);
            overflow-x: auto;
            box-shadow: var(--shadow-card);
        }

        .nav-tab {
            flex: 1;
            min-width: 120px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 var(--space-md);
            background: transparent;
            border: none;
            border-radius: calc(var(--border-radius) - var(--space-xs));
            color: var(--neutral-600);
            font-size: var(--font-size-sm);
            font-weight: 500;
            cursor: pointer;
            transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            white-space: nowrap;
        }

        .nav-tab:hover {
            color: var(--primary-500);
            background-color: var(--primary-100);
        }

        .nav-tab.active {
            color: var(--primary-700);
            font-weight: 600;
            background-color: var(--bg-page);
        }

        .nav-tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--primary-700);
            border-radius: 1px;
        }

        /* Contenido Principal */
        .main-content {
            padding: var(--space-xl) var(--space-md);
        }

        .tab-content {
            display: none;
            animation: fadeIn 300ms ease-in-out;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Cards y Componentes Base */
        .card {
            background-color: var(--bg-card);
            border-radius: var(--border-radius);
            padding: var(--space-lg);
            box-shadow: var(--shadow-card);
            transition: transform 250ms ease, box-shadow 250ms ease;
        }

        .card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-card-hover);
        }

        .card h3 {
            font-size: var(--font-size-lg);
            font-weight: 600;
            color: var(--primary-700);
            margin-bottom: var(--space-sm);
        }

        /* Formularios */
        .form-group {
            margin-bottom: var(--space-lg);
        }

        .form-label {
            display: block;
            font-weight: 500;
            color: var(--neutral-900);
            margin-bottom: var(--space-sm);
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            height: 56px;
            padding: 0 var(--space-md);
            border: 1px solid #EAE6D9;
            border-radius: var(--border-radius);
            background-color: var(--bg-surface);
            color: var(--neutral-900);
            font-size: var(--font-size-base);
            transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
        }

        .form-textarea {
            height: 120px;
            padding: var(--space-md);
            resize: vertical;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: var(--primary-500);
            box-shadow: var(--shadow-focus);
        }

        /* Botones */
        .btn {
            height: 56px;
            padding: 0 var(--space-xl);
            border: none;
            border-radius: var(--border-radius);
            font-size: var(--font-size-base);
            font-weight: 500;
            cursor: pointer;
            transition: background-color 200ms ease, transform 150ms ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--space-sm);
        }

        .btn-primary {
            background-color: var(--primary-700);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-500);
        }

        .btn-primary:active {
            transform: scale(0.98);
        }

        .btn-secondary {
            background-color: var(--bg-surface);
            color: var(--primary-700);
            border: 2px solid var(--primary-700);
        }

        .btn-secondary:hover {
            background-color: var(--primary-700);
            color: white;
        }

        /* Tags y Etiquetas */
        .tag {
            display: inline-block;
            padding: var(--space-xs) var(--space-md);
            background-color: var(--accent-earth-500);
            color: white;
            font-size: var(--font-size-sm);
            font-weight: 500;
            border-radius: var(--border-radius-full);
            margin: var(--space-xs) var(--space-xs) var(--space-xs) 0;
        }

        .tag.water {
            background-color: var(--accent-water-500);
        }

        .tag.success {
            background-color: var(--accent-success);
        }

        .tag.warning {
            background-color: var(--accent-warning);
        }

        /* Grid Layout */
        .grid {
            display: grid;
            gap: var(--space-lg);
        }

        .grid-2 {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }

        .grid-3 {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        }

        /* Calculadora de Huella de Carbono */
        .calculator-section {
            background-color: var(--bg-card);
            border-radius: var(--border-radius);
            padding: var(--space-xl);
            margin-bottom: var(--space-xl);
        }

        .category-section {
            margin-bottom: var(--space-xl);
        }

        .category-title {
            font-size: var(--font-size-xl);
            font-weight: 600;
            color: var(--primary-700);
            margin-bottom: var(--space-lg);
            padding-bottom: var(--space-sm);
            border-bottom: 2px solid var(--primary-100);
        }

        .result-display {
            background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
            color: white;
            border-radius: var(--border-radius);
            padding: var(--space-xl);
            text-align: center;
            margin-top: var(--space-xl);
        }

        .result-value {
            font-size: var(--font-size-2xl);
            font-weight: 700;
            margin-bottom: var(--space-sm);
        }

        .result-unit {
            font-size: var(--font-size-base);
            opacity: 0.9;
        }

        .result-gauge {
            width: 200px;
            height: 200px;
            margin: var(--space-lg) auto;
            position: relative;
        }

        .gauge-circle {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: conic-gradient(var(--accent-success) 0deg, var(--primary-500) 120deg, var(--accent-warning) 240deg, var(--accent-error) 360deg);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .gauge-inner {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background-color: var(--bg-card);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        /* Mapa Interactivo */
        .map-container {
            position: relative;
            background-color: var(--bg-surface);
            border-radius: var(--border-radius);
            padding: var(--space-lg);
            min-height: 400px;
        }

        .map-marker {
            position: absolute;
            width: 24px;
            height: 24px;
            background-color: var(--accent-water-500);
            border-radius: 50%;
            cursor: pointer;
            transition: transform 200ms ease;
            border: 2px solid white;
            box-shadow: var(--shadow-card);
        }

        .map-marker:hover {
            transform: scale(1.2);
        }

        .map-marker::before {
            content: '';
            position: absolute;
            top: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-bottom: 8px solid var(--accent-water-500);
        }

        .map-tooltip {
            position: absolute;
            background-color: var(--bg-card);
            border-radius: var(--border-radius);
            padding: var(--space-md);
            box-shadow: var(--shadow-card);
            font-size: var(--font-size-sm);
            min-width: 200px;
            z-index: 1000;
            display: none;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .main-content {
                padding: var(--space-lg) var(--space-md);
            }

            .nav-tabs {
                flex-direction: column;
            }

            .nav-tab {
                min-width: unset;
                height: 48px;
            }

            .grid-2,
            .grid-3 {
                grid-template-columns: 1fr;
            }

            .result-gauge {
                width: 150px;
                height: 150px;
            }

            .gauge-inner {
                width: 100px;
                height: 100px;
            }
        }

        /* Utilidades */
        .text-center { text-align: center; }
        .text-success { color: var(--accent-success); }
        .text-warning { color: var(--accent-warning); }
        .text-error { color: var(--accent-error); }
        .mb-sm { margin-bottom: var(--space-sm); }
        .mb-md { margin-bottom: var(--space-md); }
        .mb-lg { margin-bottom: var(--space-lg); }
        .mb-xl { margin-bottom: var(--space-xl); }
        .mt-sm { margin-top: var(--space-sm); }
        .mt-md { margin-top: var(--space-md); }
        .mt-lg { margin-top: var(--space-lg); }
        .mt-xl { margin-top: var(--space-xl); }
        .hidden { display: none; }
        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .gap-sm { gap: var(--space-sm); }
        .gap-md { gap: var(--space-md); }
        .gap-lg { gap: var(--space-lg); }

        /* Loading y Estados */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid var(--primary-100);
            border-radius: 50%;
            border-top-color: var(--primary-700);
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }