/* ==============================
   BASE
   ============================== */

body {
    font-size: 0.95rem;
}

.card:hover {
    transform: scale(1.03);
    transition: 0.2s;
}

input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* ==============================
   MARCO AUTOMÁTICO FOTO DNI
   ============================== */

.dni-frame-container {
    display: flex;
    justify-content: center;
}

.dni-frame {
    position: relative;
    width: 320px;
    aspect-ratio: 1.586; /* Proporción DNI */
    border: 3px dashed #0d6efd;
    border-radius: 12px;
    background-color: #e9ecef;
    overflow: hidden;
}

.dni-frame::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(13,110,253,.5);
    border-radius: 8px;
}

.dni-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

#preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==============================
   IMAGEN DNI MOSTRADA
   ============================== */

.dni-img {
    display: block;
    width: 100%;
    max-width: 280px;   /* tamaño desktop */
    height: auto;
    margin: 20px auto;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ==============================
   SOLO MOBILE
   ============================== */
@media (max-width: 576px) {
    .dni-img {
        max-width: 180px;
    }
}

/* Mensaje validación DNI */
#dniMsg {
    font-size: 0.9em;
    padding: 4px 6px;
    margin-top: 4px;
    font-weight: 500;
}

#dniMsg.ok {
    color: #198754; /* verde bootstrap */
}

#dniMsg.error {
    color: #dc3545; /* rojo bootstrap */
}

/* Cards del dashboard */
.dashboard-card {
  transition: all 0.25s ease;
  border-radius: 14px;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,.15);
}

.dashboard-icon {
  opacity: 0.9;
}

/* Títulos más firmes */
.dashboard-card h5 {
  font-weight: 600;
}

/* Separadores de sección */
.section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6c757d;
  margin: 2rem 0 1rem;
}

