/* --- Contenedor Admin --- */
.admin-container {
    max-width: 75rem;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Segoe UI', sans-serif;
}

.admin-header {
    text-align: center;
    color: #1e293b;
    margin-bottom: 2.5rem;
}

.admin-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.admin-header p {
    color: #94a3b8;
    font-size: 1rem;
}

.h1-admin {
    font-size: 1.8em;
    display: block;
    font-weight: bold;
    unicode-bidi: isolate;
    margin-top: 0rem;
}

.admin-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1rem;
    justify-content: center;
}

/* --- Tarjetas --- */
.admin-card {
    flex: 1 1 22rem; /* Ancho base de 240px (15rem) */
    max-width: 25rem;
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border: 0.0625rem solid #334155;
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.05);
    margin-bottom: 0.2rem;
}

/* Efecto al pasar el ratón (Hover) */
.admin-card:hover {
    transform: translateY(-0.25rem); /* Se eleva 4px */
    border-color: #3b82f6;
    box-shadow: 0 0.5rem 1.25rem rgba(59, 130, 246, 0.15); /* Sombra de 8px 20px */
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.529);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.card-body p {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.4;
}

.admin-card h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.2rem;
    border-bottom: 0.125rem solid #f1f5f9;
    padding-bottom: 0.75rem;
}

/* --- Zona de Carga (Dropzone) --- */
.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 2rem;
    border: 0.125rem dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    transition: 0.3s;
    margin-bottom: 1rem;
}

.file-drop-area:hover {
    border-color: #6366f1;
    background: #eff6ff;
}

.file-input {
    position: absolute;
    left: 0; top: 0; height: 100%; width: 100%;
    opacity: 0;
    cursor: pointer;
}

/* --- Botones --- */
.btn-primary, .btn-secondary, .btn-danger {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.btn-primary { background: #6366f1; color: white; }
.btn-secondary { background: #64748b; color: white; }
.btn-danger { background: #fee2e2; color: #991b1b; }

.alert {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 0.0625rem solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 0.0625rem solid #fecaca; }

.file-msg {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
    /* Esto evita que nombres de archivos muy largos rompan el diseño */
    word-break: break-all; 
    padding: 0 1rem;
}

.file-drop-area {
    position: relative; /* Importante para posicionar la X */
}

.boton-eliminar {
    position: absolute;
    right: 1rem;
    
    /* CAMBIO CLAVE: Empezar desde el centro exacto */
    top: 50%; 
    
    /* El transform ahora sí lo centra verticalmente respecto al padre */
    transform: translateY(-50%); 
    
    /* Alineación interna de la X dentro del círculo */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Dimensiones */
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.2rem; /* Bajamos un pelín el tamaño de la X para que no sature */
    
    /* Estética */
    color: #ef4444;
    background: #fee2e2;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease-in-out;
}

.boton-eliminar:hover {
    background: #fca5a5;
    color: white;
    transform: translateY(-50%) scale(1.1); /* Un pequeño efecto de aumento al pasar el ratón */
}

.caja-texto {
    border: 1px solid #fff; 
    padding: 1rem; 
    width: 100%; 
    border-radius: 0.8rem;
    background: #fff; 
    resize: vertical;
}

.caja-texto-pequeno {
    color: #fff; 
    font-size: 0.8rem; 
    display: block; 
    margin-top: 0.5rem;
}