:root {
            --primary-color: #003b50;
            --secondary-color: #667eea;
            --accent-color: #764ba2;
        }

        /* Reseteo general de estilos */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* ========================================
           CONFIGURACIÓN DEL BODY
        ======================================== */
        body {
            font-family: 'Poppins', sans-serif;
            background: #f8f9fa;
            padding-top: 80px; /* Espacio para navbar fijo */
            min-height: 100vh;
        }

        /* ========================================
           BARRA DE NAVEGACIÓN
        ======================================== */
        .navbar-custom {
            background: linear-gradient(135deg, var(--primary-color) 0%, #005a7a 100%);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            padding: 1rem 0;
            transition: all 0.3s ease;
        }

        /* Logo de la marca */
        .navbar-brand {
            font-size: 1.8rem;
            font-weight: 700;
            color: white !important;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: transform 0.3s ease;
        }

        .navbar-brand:hover {
            transform: scale(1.05);
        }

        /* Ícono del logo */
        .logo-icon {
            width: 45px;
            height: 45px;
            background: white;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: var(--primary-color);
        }

        /* Enlaces de navegación */
        .nav-link {
            color: rgba(255, 255, 255, 0.9) !important;
            font-weight: 500;
            margin: 0 10px;
            padding: 8px 16px !important;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
        }

        /* Línea animada bajo los enlaces */
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: white;
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white !important;
        }

        .nav-link:hover::after {
            width: 80%;
        }

        /* Menú desplegable */
        .dropdown-menu {
            background: white;
            border: none;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            border-radius: 12px;
            padding: 10px;
        }

        .dropdown-item {
            border-radius: 8px;
            padding: 10px 16px;
            transition: all 0.3s ease;
        }

        .dropdown-item:hover {
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            color: white;
            transform: translateX(5px);
        }

        /* ========================================
           CONTENEDOR PRINCIPAL
        ======================================== */
        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
        }

        /* ========================================
           ENCABEZADO DE BIENVENIDA
        ======================================== */
        .project-header {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
            border-left: 4px solid var(--secondary-color);
        }

        .project-header h1 {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .project-header p {
            color: #6c757d;
            margin: 0.5rem 0;
            font-size: 0.95rem;
        }

        /* ========================================
           TARJETAS DE ACCIÓN RÁPIDA
        ======================================== */
        .action-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        /* Tarjeta individual con hover */
        .action-card {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        /* Efecto de fondo en hover */
        .action-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 0;
        }

        .action-card:hover::before {
            opacity: 0.05;
        }

        .action-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
            border-color: var(--secondary-color);
        }

        /* Contenido de la tarjeta */
        .action-card * {
            position: relative;
            z-index: 1;
        }

        .action-card i {
            font-size: 3rem;
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
        }

        .action-card h3 {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .action-card p {
            color: #6c757d;
            font-size: 0.95rem;
            margin: 0;
        }

        /* ========================================
           ÁREAS DE CONTENIDO DINÁMICO
        ======================================== */
        .content-area {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            min-height: 400px;
            display: none; /* Oculto por defecto */
            animation: fadeIn 0.3s ease;
        }

        /* Animación de aparición */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .content-area h2 {
            font-size: 1.8rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border-bottom: 2px solid #e0e0e0;
            padding-bottom: 1rem;
        }

        /* ========================================
           BOTONES PERSONALIZADOS
        ======================================== */
        .btn-secondary-custom {
            background: #6c757d;
            color: white;
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-secondary-custom:hover {
            background: #5a6268;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-danger-custom {
            background: #dc3545;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-danger-custom:hover {
            background: #c82333;
            transform: scale(1.05);
        }

        .btn-success-custom {
            background: #28a745;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-right: 0.5rem;
        }

        .btn-success-custom:hover {
            background: #218838;
            transform: scale(1.05);
        }

        /* ========================================
           LISTAS DE CÁLCULOS Y RECURSOS
        ======================================== */
        .calculos-list {
            display: grid;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        /* Item individual de cálculo/recurso */
        .calculo-item {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 10px;
            border-left: 4px solid var(--secondary-color);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .calculo-item:hover {
            background: #e9ecef;
            transform: translateX(5px);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }

        .calculo-item h4 {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .calculo-item p {
            color: #6c757d;
            margin: 0;
            font-size: 0.95rem;
        }

        /* ========================================
           LISTA DE PROYECTOS
        ======================================== */
        .proyecto-item {
            background: white;
            padding: 1.5rem;
            border-radius: 10px;
            border-left: 4px solid var(--accent-color);
            margin-bottom: 1rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .proyecto-item:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .proyecto-content {
            flex: 1;
            cursor: pointer;
        }

        .proyecto-item h4 {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .proyecto-item p {
            color: #6c757d;
            margin: 0.25rem 0;
            font-size: 0.9rem;
        }

        .proyecto-actions {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        /* Proyectos eliminados (basurero) */
        .basurero-item {
            background: #fff3cd;
            border-left-color: #ffc107;
        }

        /* Mensaje cuando no hay proyectos */
        .no-proyectos {
            text-align: center;
            padding: 3rem;
            color: #6c757d;
        }

        .no-proyectos i {
            font-size: 4rem;
            color: #ccc;
            margin-bottom: 1rem;
            display: block;
        }

        /* ========================================
           RESPONSIVE DESIGN
        ======================================== */
        @media (max-width: 768px) {
            body {
                padding-top: 70px;
            }

            .project-header h1 {
                font-size: 1.5rem;
            }

            .action-cards {
                grid-template-columns: 1fr;
            }

            .content-area {
                padding: 1.5rem;
            }

            .proyecto-item {
                flex-direction: column;
                align-items: flex-start;
            }

            .proyecto-actions {
                margin-top: 1rem;
                width: 100%;
            }
        }