body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            margin: 0;
            background: #f8f9fa;
            color: #333;
            position: relative;
            padding: 0;
            max-width: none; /* Override framework max-width */
        }
        
        /* Main content wrapper for centering */
        .main-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        .container {
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding: 30px;
            max-width: 450px;
            width: 100%;
            margin: 0 auto 20px;
            border: 1px solid #e1e8ed;
            position: relative;
        }
        h1 {
            text-align: center;
            color: #2c3e50;
            font-size: 2.5em;
            margin-bottom: 10px;
            font-weight: 700;
        }
        h2 {
            text-align: center;
            color: #2c3e50;
        }
        .calculator {
            margin-bottom: 20px;
        }
        #display {
            width: 100%;
            height: 60px;
            font-size: 24px;
            text-align: right;
            margin-bottom: 10px;
            padding: 10px;
            box-sizing: border-box;
            border: 2px solid #3498db;
            border-radius: 6px;
        }
        .buttons {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        button {
            padding: 15px;
            font-size: 18px;
            border: none;
            background-color: #ecf0f1;
            color: #2c3e50;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.1s;
            border-radius: 6px;
        }
        button:hover {
            background-color: #d0d3d4;
        }
        button:active {
            transform: scale(0.95);
        }
        .operator {
            background-color: #3498db;
            color: white;
        }
        .operator:hover {
            background-color: #2980b9;
        }
        #equals {
            background-color: #2ecc71;
            color: white;
        }
        #equals:hover {
            background-color: #27ae60;
        }
        .links-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 0;
            min-height: 400px; /* Prevent layout jumps */
        }
        .links-container.single-category {
            max-width: 600px;
            margin: 0 auto;
        }
        .link-category {
            background-color: #ffffff;
            border-radius: 16px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            padding: 25px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid #e1e8ed;
        }
        .link-category:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
        }
        .links {
            display: flex;
            flex-direction: column;
        }
        .link-category h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.4em;
            border-bottom: 3px solid #3498db;
            padding-bottom: 10px;
            position: relative;
        }
        .link-category h2::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, #3498db, #2ecc71);
        }
        .links {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        /* Two column layout for financial calculators */
        .link-category[data-category="financieras"] .links {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px 15px;
        }
        .links a {
            color: #34495e;
            text-decoration: none;
            padding: 10px 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            background: #f8f9fa;
        }
        .links a:hover {
            color: #3498db;
            background: #e3f2fd;
            border-left-color: #3498db;
            transform: translateX(5px);
        }
        
        .category-filter-wrapper {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto 20px;
        }
        
        .footer-wrapper {
            width: 100%;
            max-width: 1200px;
            margin: 40px auto 0;
        }
        
        @media (max-width: 1024px) {
            .links-container {
                grid-template-columns: 1fr !important;
                gap: 15px;
                padding: 0 15px;
            }
            .link-category {
                padding: 20px;
                margin: 0 10px;
            }
            /* Force all calculator sections to single column on medium screens */
            .link-category .links {
                grid-template-columns: 1fr !important;
                gap: 8px !important;
            }
            /* Override any grid-column spanning */
            .link-category {
                grid-column: span 1 !important;
            }
        }
        
        @media (max-width: 768px) {
            .links-container {
                grid-template-columns: 1fr !important;
                gap: 15px;
                padding: 0 15px;
            }
            .link-category {
                padding: 20px;
                margin: 0 10px;
            }
            /* Force all calculator sections to single column on tablets */
            .link-category .links {
                grid-template-columns: 1fr !important;
                gap: 8px !important;
            }
            /* Override any grid-column spanning */
            .link-category {
                grid-column: span 1 !important;
            }
            .container {
                margin: 15px;
                padding: 20px;
            }
            h1 {
                font-size: 2em;
            }
        }
        
        @media (max-width: 480px) {
            .links-container {
                padding: 0 10px;
            }
            .link-category {
                padding: 15px;
                margin: 0 5px;
            }
            /* Ensure all calculator sections are single column on phones */
            .link-category .links {
                grid-template-columns: 1fr !important;
                gap: 8px !important;
            }
            .links a {
                padding: 12px 15px;
                font-size: 0.95em;
            }
            .container {
                margin: 10px;
                padding: 20px;
            }
            .category-filter {
                padding: 0 15px !important;
            }
            .filter-buttons {
                gap: 8px !important;
            }
            .filter-btn {
                padding: 6px 12px !important;
                font-size: 0.8em !important;
            }
        }
