.kc-kiosko-app {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.kc-header {
    text-align: center;
    margin-bottom: 30px;
}

.kc-main-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff176, #ffd54f, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.kc-student-summary {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    background: #f4f7ff;
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.kc-buttons-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.kc-action-btn {
    border: none;
    padding: 22px 20px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.kc-action-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 35px rgba(0,0,0,0.22);
}

.kc-btn-constancia {
    background: linear-gradient(135deg, #ff6a00, #ee0979);
}

.kc-btn-estadisticas {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
}

.kc-btn-matricula {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.kc-primary-btn {
    width: 100%;
    border: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
}

.kc-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.kc-modal.kc-show {
    display: block;
}

.kc-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10, 16, 38, 0.70);
    top: 0;
    left: 0;
}

.kc-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    margin: 5vh auto;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}

.kc-modal-small {
    width: 92%;
    max-width: 420px;
}

.kc-modal-large {
    width: 94%;
    max-width: 1100px;
    height: 86vh;
}

.kc-modal-content h3 {
    margin-top: 0;
    color: #162447;
    margin-bottom: 15px;
}

.kc-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f3f4f7;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
    color: #333;
}

.kc-close-hidden {
    visibility: hidden;
    pointer-events: none;
}

#kc-identificacion-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#kc-cedula-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d5dbe7;
    font-size: 16px;
}

.kc-msg {
    margin-top: 15px;
}

.kc-error {
    background: #ffe1e1;
    color: #a90000;
    padding: 12px 14px;
    border-radius: 10px;
}

.kc-loading,
.kc-empty {
    padding: 20px;
    text-align: center;
    font-size: 18px;
}

.kc-modal-body {
    margin-top: 15px;
    height: calc(100% - 50px);
    overflow: auto;
}

.kc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.kc-card {
    background: #f9fbff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 18px;
}

.kc-card h4,
.kc-card h5 {
    margin-top: 0;
    color: #1a2c5b;
}

.kc-stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kc-stat-list li {
    padding: 9px 0;
    border-bottom: 1px solid #e9edf5;
}

.kc-stat-list li:last-child {
    border-bottom: none;
}

.kc-table-wrap {
    overflow-x: auto;
}

.kc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.kc-table th,
.kc-table td {
    border: 1px solid #dfe5ef;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
}

.kc-table th {
    background: #edf3ff;
    color: #1a2c5b;
}

@media (max-width: 768px) {
    .kc-modal-large {
        width: 96%;
        height: 90vh;
        padding: 20px;
    }

    .kc-main-title {
        font-size: 28px;
    }

    .kc-action-btn {
        font-size: 16px;
        padding: 18px 14px;
    }
}