/* =============================================
   ID-CARD.CSS — Student ID Card Component
   ============================================= */

/* --- CARD BASE --- */
.id-card {
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 8px 30px -8px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
    background: #ffffff;
    min-height: 360px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.id-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 20px 50px -12px rgba(20, 48, 158, 0.22),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

/* --- LEFT PANEL (Red UCV accent) --- */
.id-card-left {
    width: 160px;
    min-width: 160px;
    background: linear-gradient(175deg, #14309E 0%, #0d2070 55%, #14309E 80%, #1a1060 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0.8rem;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.id-card-left::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.id-card-left::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

/* --- UCV LOGO & NAME --- */
.id-card-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.55rem 0.7rem 0.45rem;
    backdrop-filter: blur(4px);
}

.ucv-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    /* Sin filtro: muestra los colores reales del logo sobre el fondo azul */
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.ucv-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 0.3rem;
    width: 100%;
}

.ucv-name span {
    font-size: 0.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-align: center;
}

/* --- PHOTO --- */
.id-photo-container {
    width: 110px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(227, 5, 18, 0.4);
    z-index: 1;
    flex-shrink: 0;
}

.id-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Card type label */
.id-card-type {
    font-size: 0.48rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    z-index: 1;
    width: 100%;
}

/* --- RIGHT PANEL (info) --- */
.id-card-right {
    flex: 1;
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #ffffff;
    min-width: 0;
}

.id-student-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #14309E;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.id-role {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E30512;
}

/* --- INFO ROWS --- */
.id-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.id-info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.id-label {
    font-weight: 700;
    color: var(--text-muted);
    min-width: 80px;
    flex-shrink: 0;
}

.id-label::after {
    content: ' :';
}

.id-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- TECH TAGS ROW --- */
.id-techs-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-top: 0.1rem;
}

/* --- PROGRESS BAR --- */
.id-progress-bar {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.id-progress-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.id-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(185, 28, 28, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.id-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #b91c1c, #ef4444);
    border-radius: 999px;
    transition: width 1s ease;
}

.id-progress-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* --- BARCODE --- */
.id-barcode {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
}

.barcode-svg {
    width: 100%;
    max-width: 220px;
    height: 30px;
}

.barcode-number {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    font-family: 'Courier New', monospace;
}

/* --- PROFILE ACTION BUTTON --- */
.id-profile-action {
    margin-top: auto;
    align-self: flex-end;
    padding-top: 0.5rem;
}

.btn-visit-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #14309E 0%, #0d2070 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(20, 48, 158, 0.2);
    cursor: pointer;
}

.btn-visit-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 5, 18, 0.3);
    background: linear-gradient(135deg, #E30512 0%, #b91c1c 100%);
}

