:root {
    --brand-red: #cd1719;
    --brand-dark-blue: #1f4f9e;
    --brand-blue: #0671b9;
    --brand-light-gray: #a6a6a8;
    --brand-gray: #6a6a69;
    --brand-black: #000000;
    --brand-white: #FFFFFF;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: var(--brand-gray);
    font-family: var(--font-family-sans-serif);
}

.hero-section {
    background: linear-gradient(135deg, var(--brand-dark-blue), var(--brand-blue));
    padding: 4rem 2rem;
    border-radius: 0.5rem;
    color: var(--brand-white);
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    overflow: hidden; /* Added to contain the pseudo-element */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
    z-index: 1; /* Ensure it's above the background but below text */
}

.hero-section h1, .hero-section p {
    position: relative;
    z-index: 2; /* Ensure text is above the pseudo-element */
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.sticky-top-md {
    position: -webkit-sticky;
    position: sticky;
    top: 1.5rem;
    z-index: 1020;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.card-header {
    background-color: var(--brand-dark-blue);
    color: var(--brand-white);
    font-weight: 500;
}

.accordion-button {
    font-weight: 500;
    color: var(--brand-dark-blue);
}
.accordion-button:not(.collapsed) {
    background-color: rgba(6, 113, 185, 0.1);
    color: var(--brand-dark-blue);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(6, 113, 185, 0.25);
}

.course-item {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.course-item:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.2rem rgba(6, 113, 185, 0.25);
}

.course-item input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 0.75rem;
}

.course-item.selected {
    border-width: 2px;
    border-color: var(--brand-blue);
    background-color: rgba(6, 113, 185, 0.05);
}

.course-item .badge {
    font-size: 0.8rem;
}

.course-info-link {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--brand-blue);
}
.course-info-link:hover {
    text-decoration: underline;
}

.summary-card .card-body h4, .summary-card .card-body p {
    color: var(--brand-dark-blue);
    font-weight: 700;
}

.summary-card #total {
    font-size: 2.5rem;
}


.btn-primary {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
}

.btn-primary:hover {
    background-color: var(--brand-dark-blue);
    border-color: var(--brand-dark-blue);
}

.btn-secondary {
    background-color: var(--brand-gray);
    border-color: var(--brand-gray);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
}

.btn-secondary:hover {
    background-color: var(--brand-black);
    border-color: var(--brand-black);
}

.Pfooter {
    padding: 2rem 0;
    background-color: var(--brand-dark-blue);
    color: var(--brand-white);
    text-align: center;
}
.Pfooter a {
    color: var(--brand-white);
}

/* Custom AlertifyJS Dialog Styling */
body.alertify:not(.alertify-top) .ajs-dialog { 
    top: 15%; /* Mover mas arriba */
}
.alertify .ajs-dialog {
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    max-width: 900px; /* Mas grande */
    width: 95%;
}
.alertify .ajs-header {
    background-color: var(--brand-dark-blue);
    color: var(--brand-white);
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-size: 1.25rem;
}
.alertify .ajs-body {
    padding: 2rem; /* Mas padding */
    line-height: 1.6;
}
.alertify .ajs-footer {
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0 0.5rem 0.5rem;
}
.alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: var(--brand-white);
    font-weight: 500;
    border-radius: 0.25rem;
}
.alertify .ajs-dimmer{
    background-color: rgba(0,0,0,0.5);
}
.alertify .ajs-body p {
    margin-bottom: 1rem; /* Mas separacion */
}
.alertify .ajs-body p > i {
    color: var(--brand-blue);
}

/* Custom AlertifyJS Notifier (Toast) Styling */
.alertify-notifier .ajs-message {
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    display: flex;
    align-items: center;
}
.alertify-notifier .ajs-message.ajs-success {
    background-color: var(--brand-dark-blue);
    color: var(--brand-white);
}
.alertify-notifier .ajs-message.ajs-error {
    background-color: var(--brand-red);
    color: var(--brand-white);
}
.alertify-notifier .ajs-message::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.2rem;
    margin-right: 0.75rem;
}
.alertify-notifier .ajs-message.ajs-success::before {
    content: "\f058"; /* fa-circle-check */
}
.alertify-notifier .ajs-message.ajs-error::before {
    content: "\f071"; /* fa-triangle-exclamation */
}