 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f8f9fc 0%, #fef7f7 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .main-container {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            text-align: center;
        }

        .main-container h1 {
            color: #2d3e77;
            margin-bottom: 10px;
            font-size: 2.5em;
        }

        .main-container p {
            color: #5a6b9e;
            margin-bottom: 30px;
            font-size: 1.1em;
        }

        .open-button {
            background: linear-gradient(135deg, #d4ddf5 0%, #f0e6e6 100%);
            color: #2d3e77;
            border: 2px solid #c7d2ef;
            padding: 15px 30px;
            font-size: 1.1em;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(45, 62, 119, 0.15);
            font-weight: 600;
        }

        .open-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(45, 62, 119, 0.2);
            background: linear-gradient(135deg, #c7d2ef 0%, #ebd8d8 100%);
            border-color: #b5c4e8;
        }

        /* Estilos del Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 1000px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: slideIn 0.3s ease;
            box-shadow: 0 25px 50px rgba(0,0,0,0.2);
        }

        @keyframes slideIn {
            from { 
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .close {
            position: absolute;
            right: 20px;
            top: 20px;
            color: #999;
            font-size: 30px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
            z-index: 1001;
        }

        .close:hover {
            color: #2d3e77;
        }

        .modal-title {
            text-align: center;
            margin-bottom: 30px;
            color: #2d3e77;
            font-size: 2em;
        }

        /* Estilos de las secciones de año */
        .year-section {
            margin-bottom: 20px;
            border: 1px solid #e6ecf7;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            background: white;
        }

        .year-section:hover {
            box-shadow: 0 5px 15px rgba(45, 62, 119, 0.08);
            border-color: #d4ddf5;
        }

        .year-header {
            background: linear-gradient(135deg, #eef2fd 0%, #faf5f5 100%);
            color: #2d3e77;
            padding: 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            border-bottom: 1px solid #e6ecf7;
        }

        .year-header:hover {
            background: linear-gradient(135deg, #e6ecf7 0%, #f5eded 100%);
            box-shadow: 0 2px 8px rgba(45, 62, 119, 0.1);
        }

        .year-header h3 {
            margin: 0;
            font-size: 1.4em;
        }

        .year-subtitle {
            font-size: 0.9em;
            opacity: 0.9;
            margin-top: 5px;
        }

        .toggle-icon {
            font-size: 1.2em;
            transition: transform 0.3s ease;
        }

        .year-header.active .toggle-icon {
            transform: rotate(180deg);
        }

        .subjects-container {
            display: none;
            background: #fdfdff;
            padding: 20px;
            animation: expandDown 0.3s ease;
            border-top: 1px solid #f0f4f9;
        }

        @keyframes expandDown {
            from {
                opacity: 0;
                max-height: 0;
            }
            to {
                opacity: 1;
                max-height: 500px;
            }
        }

        .subjects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
        }

        .subject-item {
            background: white;
            padding: 15px;
            border-radius: 10px;
            border-left: 4px solid #c7d2ef;
            box-shadow: 0 2px 10px rgba(45, 62, 119, 0.08);
            transition: all 0.3s ease;
        }

        .subject-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(45, 62, 119, 0.12);
            border-left-color: #d4a5a5;
        }

        .subject-item span {
            color: #2d3e77;
            font-weight: 500;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .modal-content {
                width: 95%;
                padding: 20px;
                margin: 10px;
            }

            .subjects-grid {
                grid-template-columns: 1fr;
            }

            .year-header {
                padding: 15px;
            }

            .year-header h3 {
                font-size: 1.2em;
            }

            .main-container {
                padding: 30px;
            }

            .main-container h1 {
                font-size: 2em;
            }
        }

        /* Scrollbar personalizado */
        .modal-content::-webkit-scrollbar {
            width: 8px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #4d7af7 0%, #e75555 100%);
            border-radius: 10px;
        }

        .modal-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #3f74f0 0%, #e74242 100%);
        }