/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sise-logo {
    text-align: center;
    width: 100%;
}

.sise-logo h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sise-logo p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-card h2 {
    color: #ff8f00;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.search-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 500;
    color: #333;
    text-align: left;
}

.input-group input {
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.input-group input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.btn-search {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffc107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Student Info Card */
.student-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.student-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.student-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff3cd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ff8f00;
    position: relative;
    overflow: hidden;
}

.student-photo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cambiado de 'cover' a 'contain' para mostrar la imagen completa */
    object-position: center top; /* Centrado horizontal, parte superior visible */
    border-radius: 50%;
    display: block;
}

.student-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.photo-actions {
    margin-top: 10px;
}

.btn-photo {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-photo:hover {
    background: #ffb300;
    transform: translateY(-1px);
}

.btn-photo-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
}

.btn-photo-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-photo-refresh {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
}

.btn-photo-refresh:hover {
    background: #138496;
    transform: translateY(-1px);
}

.student-details h3 {
    color: #ff8f00;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.student-details p {
    color: #666;
    margin-bottom: 5px;
}

.student-info-compact {
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #ffc107;
}

.info-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 0.8rem;
    color: #ff8f00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .design-toggle {
        position: static;
        margin-left: auto;
    }

    .btn-toggle {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .student-info-compact {
        padding: 0;
        background: none;
        border: none;
        margin-top: 15px;
    }

    .info-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .info-compact {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        background: none;
        border: none;
        border-bottom: 1px solid #e9ecef;
    }

    .info-compact:last-child {
        border-bottom: none;
    }

    .info-label {
        font-size: 0.8rem;
        color: #666;
        text-transform: none;
        letter-spacing: normal;
        font-weight: 500;
    }

    .info-value {
        font-size: 0.9rem;
        background: none;
        border: none;
        padding: 0;
        text-align: right;
        font-weight: 600;
        color: #333;
    }
}

.student-details i {
    color: #ffc107;
    margin-right: 8px;
}

.design-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn-toggle {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-toggle:hover {
    background: #ffb300;
    transform: scale(1.05);
}

.btn-toggle i {
    font-size: 1rem;
}

/* Academic Performance Card */
.academic-performance-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.academic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.academic-header h3 {
    color: #ff8f00;
    font-size: 1.5rem;
}

.group-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.stat-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.stat-item.above-average {
    border-left-color: #4caf50;
    background: #e8f5e8;
    color: #2e7d32;
}

.stat-item.below-average {
    border-left-color: #f44336;
    background: #ffebee;
    color: #c62828;
}

.stat-item i {
    font-size: 1rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ffc107 #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    background: 
        linear-gradient(to right, white 30%, rgba(255,255,255,0)),
        linear-gradient(to left, white 30%, rgba(255,255,255,0)) 100% 0,
        radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.2), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.2), rgba(0,0,0,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 10px 100%, 10px 100%;
    background-attachment: local, local, scroll, scroll;
}

.table-responsive::after {
    content: "← Desliza para ver más →";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #333;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    pointer-events: none;
    white-space: nowrap;
    display: none; /* Oculto por defecto, se muestra solo en móviles */
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #ffb300;
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 800px; /* Asegura que la tabla mantenga su estructura */
}

.grades-table th {
    background: #ffc107;
    color: #333;
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

.grades-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
}

.grades-table .subject-name {
    text-align: left;
    font-weight: 600;
    color: #333;
    max-width: 150px;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.grades-table .teacher-name {
    text-align: left;
    font-weight: 500;
    color: #333;
    max-width: 120px;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.grades-table tr:nth-child(even) {
    background: #f8f9fa;
}

.grades-table tr:hover {
    background: #e3f2fd;
}

.grade-cell {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    min-width: 30px;
}

.grade-excellent {
    background: #4caf50;
    color: white;
}

.grade-good {
    background: #8bc34a;
    color: white;
}

.grade-average {
    background: #ff9800;
    color: white;
}

.grade-poor {
    background: #f44336;
    color: white;
}

.grade-ac {
    background: #2196f3;
    color: white;
}

.grade-group-average {
    background: #ff6b35 !important;
    color: white !important;
    font-weight: 600;
}

/* Charts Section */
.charts-section {
    margin-top: 40px;
}

.chart-container {
    display: flex;
    justify-content: center;
}

.chart-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 500px;
    position: relative;
    width: 100%;
    max-width: 800px;
}

.chart-card canvas {
    max-height: 400px !important;
    width: 100% !important;
}

.chart-card h3 {
    color: #ff8f00;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
.footer {
    background: #ffc107;
    color: #333;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-disclaimer {
    flex: 1;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #333;
    color: #ffc107;
}

/* Authorization Message Styles */
.authorization-message {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.auth-icon {
    margin-bottom: 20px;
}

.auth-icon i {
    font-size: 4rem;
    color: #ff9800;
    opacity: 0.8;
}

.authorization-message h3 {
    color: #e65100;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.authorization-message p {
    color: #bf360c;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.auth-instructions {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #ff9800;
}

.auth-instructions p {
    color: #5d4037;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.auth-instructions i {
    color: #ff9800;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .institutional-info {
        text-align: center;
    }
    
    .search-card {
        padding: 30px 20px;
    }
    
    .student-header {
        flex-direction: column;
        text-align: center;
    }
    
    .academic-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .group-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-item {
        justify-content: center;
    }
    
    .grades-table {
        font-size: 0.85rem;
        min-width: 700px;
    }
    
    .grades-table th,
    .grades-table td {
        padding: 6px 4px;
        white-space: nowrap;
    }
    
    .grades-table .subject-name {
        max-width: 100px;
        font-size: 0.75rem;
        white-space: normal;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .grades-table .teacher-name {
        max-width: 80px;
        font-size: 0.7rem;
        white-space: normal;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .grade-cell {
        padding: 3px 6px;
        min-width: 25px;
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 0 20px;
    }
    
    .chart-card {
        height: 400px;
        padding: 20px;
    }
    
    .chart-card canvas {
        max-height: 300px !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-actions {
        justify-content: center;
    }
    
    .documents-container {
        grid-template-columns: 1fr;
    }
    
    .documento-card {
        padding: 20px;
    }
    
    .documento-actions {
        flex-direction: column;
    }
    
    .btn-documento {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .search-card {
        padding: 20px 15px;
    }
    
    .student-info-card,
    .academic-performance-card,
    .chart-card {
        padding: 20px 15px;
    }
    
    .grades-table {
        font-size: 0.75rem;
        min-width: 600px;
    }
    
    .grades-table th,
    .grades-table td {
        padding: 4px 2px;
        white-space: nowrap;
    }
    
    .grade-cell {
        padding: 2px 4px;
        min-width: 20px;
        font-size: 0.7rem;
    }
    
    .table-responsive {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .table-responsive::after {
        display: block;
    }
    
    .academic-performance-card {
        margin-bottom: 50px; /* Espacio para el indicador */
    }
    
    .chart-card {
        height: 350px;
        padding: 15px;
    }
    
    .chart-card canvas {
        max-height: 250px !important;
    }
}

/* Diseño original (tarjetas) */
.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.info-item strong {
    color: #ff8f00;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.info-item i {
    color: #ffc107;
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Versión ultra-minimalista para móviles pequeños */
@media (max-width: 480px) {
    .student-info-compact {
        margin-top: 10px;
    }

    .info-compact {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .info-label {
        font-size: 0.75rem;
        color: #888;
    }

    .info-value {
        font-size: 0.85rem;
        font-weight: 500;
    }
}

/* Estilos para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .info-row {
        gap: 15px;
    }

    .info-compact {
        gap: 4px;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 1rem;
        padding: 6px 10px;
    }
}

/* Documents Section */
.documents-section {
    margin-top: 40px;
}

.documents-header {
    text-align: center;
    margin-bottom: 30px;
}

.documents-header h3 {
    color: #ff8f00;
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.documents-header p {
    color: #666;
    font-size: 1.1rem;
}

.documents-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.documento-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #ffc107;
}

.documento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.documento-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.documento-icon {
    font-size: 2.5rem;
    color: #ff8f00;
    width: 50px;
    text-align: center;
}

.documento-info h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.documento-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.documento-meta span {
    display: inline-block;
    margin-right: 15px;
}

.documento-meta i {
    margin-right: 5px;
    color: #ffc107;
}

.documento-descripcion {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.documento-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-documento {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-documento:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.btn-documento.secondary {
    background: #6c757d;
    color: white;
}

.btn-documento.secondary:hover {
    background: #5a6268;
}

.documento-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 10px;
}

.badge-todos {
    background: #d4edda;
    color: #155724;
}

.badge-grado {
    background: #fff3cd;
    color: #856404;
}

.no-documents {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-documents i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-section {
        order: 2;
    }
    
    .sise-logo {
        order: 1;
    }
    
    .sise-logo h2 {
        font-size: 2.2rem;
    }
    
    .sise-logo p {
        font-size: 0.9rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .search-section,
    .footer,
    .btn-secondary {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .student-info-card,
    .academic-performance-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .charts-section,
    .documents-section {
        display: none;
    }
}

/* Modal de Subida de Fotos */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.photo-upload-modal {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.show .photo-upload-modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    color: #ff8f00;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.photo-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #ffc107;
}

.photo-instructions h4 {
    color: #ff8f00;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.photo-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.photo-instructions li {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.photo-upload-section {
    margin-bottom: 25px;
}

.file-input-container {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #ffc107;
}

.file-input-label {
    display: inline-block;
    background: #ffc107;
    color: #333;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.file-input-label:hover {
    background: #ffb300;
    transform: translateY(-2px);
}

.file-input-label i {
    margin-right: 8px;
}

#photoFile {
    display: none;
}

.file-info {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.photo-examples {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.example-frame {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

.example-guide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
    color: white;
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border-radius: 8px;
    width: 100%;
}

.guide-text {
    text-align: center;
    font-weight: 600;
    padding: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.example-photo {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.photo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    height: 100%;
}

.photo-preview i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-upload {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-upload:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .photo-upload-modal {
        padding: 20px;
        width: 95%;
        margin: 10px;
    }

    .modal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .photo-examples {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .example-frame {
        height: 150px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-upload,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para la sección de fotos desplegable */
.photo-upload-section-page {
    background: white;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-upload-header {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #333;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-upload-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-close-section {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-close-section:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.photo-upload-content {
    padding: 30px;
}

.photo-instructions-page {
    background: #fff3cd;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #ffc107;
}

.photo-instructions-page h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.photo-instructions-page ol {
    margin: 0;
    padding-left: 25px;
}

.photo-instructions-page li {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.5;
    font-size: 1rem;
}

.photo-upload-area {
    margin-bottom: 30px;
}

.file-input-container-page {
    text-align: center;
    padding: 20px;
    border: 3px dashed #ffc107;
    border-radius: 12px;
    background: #fffbf0;
    transition: all 0.3s ease;
}

.file-input-container-page:hover {
    border-color: #ffb300;
    background: #fff8e1;
}

.file-input-label-page {
    display: inline-block;
    background: #ffc107;
    color: #333;
    padding: 18px 35px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.file-input-label-page:hover {
    background: #ffb300;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.file-input-container-page input[type="file"] {
    display: none;
}

.file-info-page {
    margin-top: 15px;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.photo-examples-page {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 30px;
}

.example-frame-page {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 200px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* Formato vertical para credencial */
    aspect-ratio: 2/3;
}

/* Nuevos estilos para las imágenes guía */
.guide-image {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.guide-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Contenedor para la vista previa central */
.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
    width: 200px;
    aspect-ratio: 2/3;
    transition: all 0.3s ease;
}

.preview-container:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.example-frame-page:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.example-guide-page {
    width: 100%;
}

.guide-text-page {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 500;
}

.photo-preview-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    width: 100%;
    height: 100%;
}

.photo-preview-page i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ccc;
}

.photo-preview-page p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.preview-img-page {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-actions-page {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-upload-page {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.btn-upload-page:hover:not(:disabled) {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-upload-page:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-cancel-page {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.btn-cancel-page:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Responsive para la sección de fotos */
@media (max-width: 768px) {
    .photo-upload-content {
        padding: 20px;
    }
    
    .photo-upload-header {
        padding: 15px 20px;
    }
    
    .photo-upload-header h3 {
        font-size: 1.3rem;
    }
    
    .photo-examples-page {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-actions-page {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-upload-page,
    .btn-cancel-page {
        width: 100%;
        max-width: 300px;
    }
    
    .file-input-label-page {
        padding: 15px 25px;
        font-size: 1rem;
    }
}

/* Responsive para el header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .sise-logo h2 {
        font-size: 2.2rem;
    }
    
    .sise-logo p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .sise-logo h2 {
        font-size: 1.8rem;
    }
    
    .sise-logo p {
        font-size: 0.9rem;
        padding: 0 15px;
    }
}

/* Reportes Section */
.reportes-section {
    margin-top: 40px;
}

.reportes-header {
    text-align: center;
    margin-bottom: 30px;
}

.reportes-header h3 {
    color: #ff8f00;
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reportes-header p {
    color: #666;
    font-size: 1.1rem;
}

.reportes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reportes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reporte-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #ffc107;
}

.reporte-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.reporte-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reporte-info h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.reporte-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.reporte-meta span {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reporte-meta i {
    color: #ffc107;
}

.reporte-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-leve {
    background: #d4edda;
    color: #155724;
}

.badge-moderado {
    background: #fff3cd;
    color: #856404;
}

.badge-grave {
    background: #f8d7da;
    color: #721c24;
}

.badge-muy_grave {
    background: #f5c6cb;
    color: #721c24;
}

.reporte-descripcion {
    margin-bottom: 15px;
}

.reporte-descripcion p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.reporte-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.reporte-estado {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.estado-activo {
    color: #dc3545;
}

.estado-en_seguimiento {
    color: #ffc107;
}

.estado-resuelto {
    color: #28a745;
}

.estado-archivado {
    color: #6c757d;
}

.reporte-reportador {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.no-reportes {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-reportes i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-reportes h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.no-reportes p {
    font-size: 1.1rem;
    color: #666;
}

/* Points Indicator Styles */
.points-indicator-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
}

.points-indicator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.points-header {
    text-align: center;
    margin-bottom: 20px;
}

.points-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.points-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.points-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border: 4px solid #e1e5e9;
}

.points-circle.excellent {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.points-circle.warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.points-circle.danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.points-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.points-label {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.points-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.status-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.status-icon {
    font-size: 2rem;
}

.points-info {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.points-info p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Design for Points */
@media (max-width: 768px) {
    .points-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .points-circle {
        width: 100px;
        height: 100px;
    }
    
    .points-number {
        font-size: 2rem;
    }
}