body {
    background-color: #f4f5f7;
    font-family: 'Inter', -apple-system, sans-serif;
}
.app-navbar {
    background: linear-gradient(90deg, #1a2233, #2c3550);
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: .3px;
}
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(20,20,40,0.08);
}
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2233, #37456b);
}
.login-wrapper .card {
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.stat-box {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(20,20,40,0.08);
    border-left: 4px solid #2c3550;
}

/* Galería de fotos del predio */
.galeria-predio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.galeria-predio img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e4ea;
    display: block;
}
.foto-item {
    position: relative;
}
.foto-item .foto-eliminar {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(20,20,30,0.75);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}
.foto-item .foto-eliminar:hover {
    background: #c0392b;
}

/* Línea de tiempo de avances del trámite */
.timeline {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid #dfe2ea;
}
.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2c3550;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #dfe2ea;
}
.timeline-fecha {
    font-size: 12px;
    color: #8a8f9c;
    margin-bottom: 2px;
}
.timeline-texto {
    background: #fff;
    border-radius: 8px;
    padding: .6rem .9rem;
    box-shadow: 0 1px 3px rgba(20,20,40,0.06);
}

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .75rem;
    border: 1px solid #e2e4ea;
    border-radius: 8px;
    margin-bottom: 6px;
}

/* Visor de fotos (lightbox) */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,12,20,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.activo {
    display: flex;
}
.lightbox-overlay img {
    max-width: 88%;
    max-height: 84vh;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-contador {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #cfd2da;
    font-size: 13px;
}
