*{
    box-sizing: border-box;
    margin:0;
    padding:0;
    font-family: 'Poppins', sans-serif;
}
 body {
        font-family: 'Poppins', sans-serif;
        background-color: #f9fafb;
        color: #1f2937;
        min-height: 100vh;
        line-height: 1.5;
    }
    
    button {
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
    }
    
    input, select, textarea {
        font-family: 'Poppins', sans-serif;
    }
    
    /* Variables de color */
    :root {
        --primary: #1F7956;
        --primary-light: #329457;
        --primary-dark: #0C533A;
        --secondary: #09AC81;
        --secondary-dark: #1B676B;
        --gray-50: #f9fafb;
        --gray-100: #f3f4f6;
        --gray-200: #e5e7eb;
        --gray-300: #d1d5db;
        --gray-400: #9ca3af;
        --gray-500: #6b7280;
        --gray-600: #4b5563;
        --gray-700: #374151;
        --gray-800: #1f2937;
        --gray-900: #111827;
        --red-500: #ef4444;
        --red-600: #dc2626;
        --red-700: #b91c1c;
        --green-500: #10b981;
        --green-600: #059669;
        --yellow-500: #f59e0b;
        --orange-500: #f97316;
    }
    
    /* Layout */
    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    /* Header */
    header {
        background-color: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    
    .logo {
        display: flex;
        align-items: center;
    }
    
    .logo svg {
        width: 2rem;
        height: 2rem;
        color: var(--primary);
    }
    
    .logo-text {
        margin-left: 0.5rem;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary);
    }
    
    .reset-button {
        background: none;
        border: none;
        color: var(--gray-500);
        font-size: 0.875rem;
        transition: color 0.2s;
    }
    
    .reset-button:hover {
        color: var(--primary);
    }
    
    /* Main content */
    main {
        padding: 2rem 1rem;
    }
    
    .page-title {
        font-size: 1.875rem;
        font-weight: 700;
        color: var(--primary-dark);
        margin-bottom: 0.5rem;
    }
    
    .page-subtitle {
        color: var(--gray-600);
        margin-bottom: 2rem;
    }
    
    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        border-radius: 0.5rem;
        font-weight: 500;
        transition: all 0.2s;
        border: none;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        color: white;
        box-shadow: 0 4px 6px rgba(31, 121, 86, 0.25);
    }
    
    .btn-primary:hover {
        box-shadow: 0 6px 8px rgba(31, 121, 86, 0.35);
    }
    
    .btn-secondary {
        background-color: rgba(31, 121, 86, 0.1);
        color: var(--primary);
        font-weight: 500;
    }
    
    .btn-secondary:hover {
        background-color: rgba(31, 121, 86, 0.2);
    }
    
    .btn-outline {
        border: 1px solid var(--gray-300);
        background-color: white;
        color: var(--gray-700);
    }
    
    .btn-outline:hover {
        background-color: var(--gray-50);
    }
    
    .btn-danger {
        background-color: var(--red-600);
        color: white;
    }
    
    .btn-danger:hover {
        background-color: var(--red-700);
    }
    
    .btn-icon {
        margin-right: 0.5rem;
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .btn-full {
        width: 100%;
    }
    
    /* Add subject button */
    .add-subject-wrapper {
        margin-bottom: 2rem;
    }
    
    /* Subjects grid */
    .subjects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    @media (min-width: 768px) {
        .subjects-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (min-width: 1024px) {
        .subjects-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    /* Subject card */
    .subject-card {
        background-color: white;
        border-radius: 0.75rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s, box-shadow 0.3s;
    }
    
    .subject-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px -5px rgba(31, 121, 86, 0.4);
    }
    
    .subject-card-content {
        padding: 1.5rem;
    }
    
    .subject-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    
    .subject-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-dark);
    }
    
    .subject-actions {
        display: flex;
        gap: 0.5rem;
    }
    
    .action-button {
        background: none;
        border: none;
        color: var(--gray-500);
        transition: color 0.2s;
        padding: 0.25rem;
    }
    
    .action-button:hover {
        color: var(--primary);
    }
    
    .action-button.delete:hover {
        color: var(--red-500);
    }
    
    .action-button svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    /* Grade display */
    .grade-display {
        margin-bottom: 1rem;
    }
    
    .grade-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.25rem;
    }
    
    .grade-label {
        font-size: 0.875rem;
        color: var(--gray-600);
    }
    
    .grade-value {
        font-weight: 600;
    }
    
    .grade-value.high {
        color: var(--green-500);
    }
    
    .grade-value.medium {
        color: var(--yellow-500);
    }
    
    .grade-value.low {
        color: var(--orange-500);
    }
    
    .grade-value.fail {
        color: var(--red-500);
    }
    
    .progress-container {
        width: 100%;
        background-color: var(--gray-200);
        border-radius: 9999px;
        height: 0.625rem;
    }
    
    .progress-bar {
        height: 0.625rem;
        border-radius: 9999px;
        transition: width 0.5s ease-in-out;
    }
    
    .progress-bar.high {
        background-color: var(--green-500);
    }
    
    .progress-bar.medium {
        background-color: var(--yellow-500);
    }
    
    .progress-bar.low {
        background-color: var(--orange-500);
    }
    
    .progress-bar.fail {
        background-color: var(--red-500);
    }
    
    .progress-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.25rem;
    }
    
    .progress-text {
        font-size: 0.75rem;
        color: var(--gray-500);
    }
    
    /* Criteria list */
    .criteria-section {
        margin-bottom: 1.5rem;
    }
    
    .criteria-title {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--gray-700);
        margin-bottom: 0.5rem;
    }
    
    .criteria-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .criteria-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .criteria-name {
        font-size: 0.875rem;
    }
    
    .criteria-info {
        display: flex;
        align-items: center;
    }
    
    .criteria-grade {
        font-size: 0.875rem;
        font-weight: 500;
    }
    
    .criteria-percentage {
        font-size: 0.75rem;
        color: var(--gray-500);
        margin-left: 0.5rem;
    }
    
    /* No subjects message */
    .no-subjects {
        background-color: white;
        padding: 2rem;
        border-radius: 0.75rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    
    .no-subjects-icon {
        width: 4rem;
        height: 4rem;
        color: var(--gray-300);
        margin: 0 auto 1rem;
    }
    
    .no-subjects-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--gray-500);
        margin-bottom: 0.5rem;
    }
    
    .no-subjects-text {
        color: var(--gray-400);
        margin-bottom: 1.5rem;
    }
    
    .no-subjects-button {
        background: none;
        border: none;
        color: var(--primary);
        font-weight: 500;
        transition: color 0.2s;
    }
    
    .no-subjects-button:hover {
        color: var(--primary-dark);
    }
    
    /* Modal */
    .modal-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 50;
    }
    
    .modal {
        background-color: white;
        border-radius: 0.75rem;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        width: 100%;
        max-width: 28rem;
        margin: 0 1rem;
    }
    
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary-dark);
    }
    
    .modal-title.danger {
        color: var(--red-600);
    }
    
    .close-modal {
        background: none;
        border: none;
        color: var(--gray-400);
        transition: color 0.2s;
        padding: 0.25rem;
    }
    
    .close-modal:hover {
        color: var(--gray-600);
    }
    
    .close-modal svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    /* Form elements */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--gray-700);
        margin-bottom: 0.25rem;
    }
    
    .form-input {
        width: 100%;
        padding: 0.5rem 1rem;
        border: 1px solid var(--gray-300);
        border-radius: 0.5rem;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    
    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(31, 121, 86, 0.2);
    }
    
    .form-help {
        font-size: 0.75rem;
        color: var(--gray-500);
        margin-top: 0.25rem;
    }
    
    /* Criteria form */
    .criteria-form-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .criteria-form-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
    }
    
    .add-criteria-button {
        display: flex;
        align-items: center;
        background: none;
        border: none;
        color: var(--primary);
        font-size: 0.875rem;
        font-weight: 500;
        transition: color 0.2s;
    }
    
    .add-criteria-button:hover {
        color: var(--primary-dark);
    }
    
    .add-criteria-button svg {
        width: 1rem;
        height: 1rem;
        margin-right: 0.25rem;
    }
    
    .total-percentage {
        font-size: 0.875rem;
        color: var(--gray-500);
    }
    
    .total-percentage.valid {
        color: var(--green-600);
        font-weight: 500;
    }
    
    .total-percentage.invalid {
        color: var(--red-500);
    }
    
    .remove-criteria-button {
        background: none;
        border: none;
        color: var(--gray-400);
        transition: color 0.2s;
        padding: 0.25rem;
    }
    
    .remove-criteria-button:hover {
        color: var(--red-500);
    }
    
    .remove-criteria-button svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    /* Alert boxes */
    .alert {
        padding: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .alert-yellow {
        background-color: #fef9c3;
        border: 1px solid #fde047;
    }
    
    .alert-yellow p {
        color: #854d0e;
    }
    
    .alert-green {
        background-color: #dcfce7;
        border: 1px solid #86efac;
    }
    
    .alert-green p {
        color: #166534;
    }
    
    .alert-red {
        background-color: #fee2e2;
        border: 1px solid #fca5a5;
    }
    
    .alert-red p {
        color: #b91c1c;
    }
    
    /* Calculation result */
    .calculation-result {
        background-color: #ecfdf5;
        padding: 1rem;
        border-radius: 0.5rem;
        border: 1px solid #a7f3d0;
    }
    
    .calculation-title {
        font-weight: 600;
        color: var(--primary-dark);
        margin-bottom: 0.5rem;
    }
    
    .calculation-box {
        padding: 0.75rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .calculation-box.success {
        background-color: #d1fae5;
    }
    
    .calculation-box.error {
        background-color: #fee2e2;
    }
    
    .calculation-value {
        font-weight: 500;
    }
    
    .calculation-value.success {
        color: #065f46;
    }
    
    .calculation-value.error {
        color: #b91c1c;
    }
    
    .calculation-note {
        font-size: 0.875rem;
        color: var(--gray-600);
        margin-top: 0.5rem;
    }
    
    /* Remaining criteria */
    .remaining-criteria {
        background-color: var(--gray-50);
        padding: 1rem;
        border-radius: 0.5rem;
    }
    
    .remaining-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }
    
    .remaining-item:last-child {
        margin-bottom: 0;
    }
    
    .remaining-name {
        font-size: 0.875rem;
    }
    
    .remaining-percentage {
        font-size: 0.75rem;
        color: var(--gray-500);
    }
    
    /* Utilities */
    .hidden {
        display: none !important;
    }


    /*HEADEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEER*/

    /*Estilos de la barra de navegacion*/

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: white;
    z-index: 2;
    padding: 5px 10%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    cursor: default;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

#logo img{
    width: 70px;
    height: auto;
    transition: all 0.3s;
    cursor: pointer;
}

#logo {
    margin-right: auto;
}

#logo img:hover{
    transform: scale(1.2);
}

.nav{
    list-style: none;
}

.nav li{
    display: inline-block;
    padding: 0 20px;
    transition: all 0.1s;
}

.nav a{
    font-size: 700;
    color: black;
    text-decoration: none;
}

.nav li:hover{
    transform: scale(1.1);
    color: red;
}

/*Boton de "inicia" en navbar*/

#inicia, #menu{
    font-weight: 700;
    color: white;
    padding: 10px 25px;
    background: linear-gradient(#329457, #09ac81);
    border-radius: 25px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;

}

#inicia:hover{
    transform: scale(1.1);
    border-color: #329457;
    border: 2px solid #329457;
    background: white;
    color: #329457;
}

/*Estilos responsive de la nav*/
#menu-responsive{
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    background-color: rgba(33, 49, 63, .95);
    overflow: hidden;
    transition: all 0.3s;
}

#header-responsive{
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#header-responsive a{
    padding: 15px;
    font-size: 36px;
    display: block;
    transition: all 0.3s;
    color:aliceblue;
    font-weight: 700;
}

#header-responsive a:focus{
    color:yellow;

}

#cerrar{
    position: absolute;
    top:20px;
    right: 45px;
    font-size: 65px;
}

@media screen and (max-height:450px){
    #header-responsive a{
        font-size:20px;
    }

    #cerrar{
        font-size: 40px;
        top:15px;
        right:35px;
    }
}
#menu{
    display: none;
}

@media screen and (max-width: 800px){
    .nav, #inicia{
        display: none;
    }

    #menu {
        display: inherit;
    }
}

main{
    padding-top: 100px;
}