/* ================================ */
/* Formularios de Registro Web */

.student-registration-form,
.university-registration-form {
    background: white;
    border-radius: 15px;
    padding: 0;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-control:valid {
    border-color: #28a745;
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.form-check {
    padding-left: 1.5rem;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
}

/* Validación Visual */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8l.4.4m0 0l.4.4m0 0l-.4-.4m0 0l-.4-.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73l.4-.4 1.4 1.4 3.4-3.4.4.4L3.7 9.17z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Responsive Form Design */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .student-registration-form,
    .university-registration-form {
        padding: 15px;
    }
}

/* Nuevas clases para la página de información */

.info-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}

.info-hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.info-hero .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.info-section {
    padding: 80px 0;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin: 0 auto 20px;
}

.program-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.program-card .card-header {
    border: none;
    padding: 30px;
}

.program-card .card-body {
    padding: 30px;
}

.program-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.program-card ul li:last-child {
    border-bottom: none;
}

.step-card {
    position: relative;
    padding: 30px 20px;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 300;
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons a {
    margin: 0 15px 15px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-hero {
        padding: 60px 0;
    }
    
    .info-hero h1 {
        font-size: 2.5rem;
    }
    
    .info-section {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        top: -10px;
    }
}

/* Existing student portal styles */
/* ================================ */

/* Portal Layout */
.student_portal_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.student_portal_header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.student_portal_title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.student_portal_subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation Tabs */
.student_portal_nav {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.student_portal_nav_item {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.student_portal_nav_item:hover,
.student_portal_nav_item.active {
    background: #667eea;
    color: white;
}

.student_portal_nav_item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.student_portal_nav_item.active::after {
    transform: scaleX(1);
}

/* Content Cards */
.student_portal_card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student_portal_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.student_portal_card_title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.student_portal_card_icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    font-size: 14px;
}

/* Profile Section */
.student_profile_section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: start;
}

.student_profile_avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.student_profile_info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.student_profile_field {
    margin-bottom: 15px;
}

.student_profile_label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.student_profile_value {
    color: #666;
    font-size: 1.1rem;
}

/* Application Cards */
.student_application_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.student_application_card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 5px solid #667eea;
    transition: all 0.2s ease;
}

.student_application_card:hover {
    border-left-color: #5a67d8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.student_application_status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.student_application_status.draft {
    background: #e3f2fd;
    color: #1976d2;
}

.student_application_status.submitted {
    background: #fff3e0;
    color: #f57c00;
}

.student_application_status.approved {
    background: #e8f5e8;
    color: #388e3c;
}

.student_application_status.rejected {
    background: #ffebee;
    color: #d32f2f;
}

.student_application_status.in_progress {
    background: #f3e5f5;
    color: #7b1fa2;
}

.student_application_status.completed {
    background: #e0f2f1;
    color: #00695c;
}

/* Progress Tracking */
.student_progress_section {
    margin-top: 20px;
}

.student_progress_item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.student_progress_icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 12px;
    color: white;
}

.student_progress_icon.completed {
    background: #28a745;
}

.student_progress_icon.pending {
    background: #ffc107;
}

.student_progress_icon.not_started {
    background: #6c757d;
}

/* Documents Section */
.student_documents_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.student_document_item {
    background: white;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.student_document_item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.student_document_icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.student_document_title {
    font-weight: 600;
    margin-bottom: 5px;
}

.student_document_status {
    font-size: 0.9rem;
    color: #666;
}

/* Action Buttons */
.student_portal_btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 5px;
}

.student_portal_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

.student_portal_btn.secondary {
    background: #6c757d;
}

.student_portal_btn.success {
    background: #28a745;
}

.student_portal_btn.warning {
    background: #ffc107;
    color: #333;
}

/* Notifications */
.student_notification {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.student_notification.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.student_notification.success {
    background: #d4edda;
    border-color: #c3e6cb;
}

.student_notification.error {
    background: #f8d7da;
    border-color: #f1aeb5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .student_portal_container {
        padding: 10px;
    }
    
    .student_portal_title {
        font-size: 2rem;
    }
    
    .student_portal_nav {
        flex-direction: column;
    }
    
    .student_profile_section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .student_application_grid {
        grid-template-columns: 1fr;
    }
    
    .student_documents_grid {
        grid-template-columns: 1fr;
    }
}

/* Loading and Empty States */
.student_loading_state {
    text-align: center;
    padding: 50px;
    color: #666;
}

.student_empty_state {
    text-align: center;
    padding: 40px;
    color: #999;
    background: #f8f9fa;
    border-radius: 10px;
}

.student_empty_state_icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

/* Form Enhancements */
.student_form_group {
    margin-bottom: 20px;
}

.student_form_label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.student_form_control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.student_form_control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Additional styles for website forms */
.student_portal_btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.student_portal_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.student_portal_btn.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Success/Error Icons */
.student_success_icon,
.student_error_icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.student_success_icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.student_error_icon {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

/* Document Icons */
.student_document_icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-primary { background-color: #007bff; color: white; }
.badge-secondary { background-color: #6c757d; color: white; }
.badge-success { background-color: #28a745; color: white; }
.badge-danger { background-color: #dc3545; color: white; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: #17a2b8; color: white; }

/* Tables */
.table-borderless td,
.table-borderless th {
    border: 0;
}

/* Form Check */
.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    position: absolute;
    margin-top: 0.3rem;
    margin-left: -1.25rem;
}

.form-check-label {
    margin-bottom: 0;
}
